Skip to main content

Webhooks

Current Support

We currently support webhooks for Autodesk Build, BIM 360, HubSpot, Pipedrive, Procore, QuickBooks Online, and SharePoint Online.

To request other Source Systems, let us know at api-support@agaveapi.com.

API Endpoint

To learn more about requests that are supported, see Webhooks.

https://api.agaveapi.com/webhooks

Request Header

As with other API requests, you need to include an API-Version, Client-Id, Client-Secret, and Account-Token. If you are creating a Project-level webhook, you will need to include Project-Id as well. To learn more, see Headers.

Body Parameters

KeyTypeDescriptionExampleRequired
callback_urlStringThe URL to send events to.
You can generate a callback URL from webhook.site for testing and change it to your own server's endpoint to receive events.
"https://webhook.site/58eb2c6a-2fce-4e61-88ad-c9a354819737"Required
authorization_headerStringIf provided, all webhooks POST requests delivered by Agave will contain this Authorization information in the request header"Bearer 9tk5GuTqqcOt7P0spZ7fJZoN8eqtYx" or "Basic S3CRET!" or emptyOptional
eventStringThe event to subscribe to."CREATE", "UPDATE", or "DELETE"Required
typeStringThe type of data to subscribe to."file", "folder", "rfi", "submittal", "vendor", etc.Required

Example Request

curl --request POST https://api.agaveapi.com/webhooks \
--header 'API-Version: 2021-11-21' \
--header 'Client-Id: your_client_id' \
--header 'Client-Secret: your_client_secret' \
--header 'Account-Token: procore_account_token' \
--header 'Include-Source-Data: true' \
--header 'Project-Id: your_optional_project_id' \
--header 'Content-Type: application/json' \
--data-raw '{
"callback_url": "https://your-website.com/webhook-callback",
"authorization_header": "Bearer 9tk5GuTqqcOt7P0spZ7fJZoN8eqtYx"
"event": "CREATE",
"type": "file"
}'

Response

Body Parameters

KeyTypeDescription
source_idStringThe ID of the event in the Source System.
callback_urlStringThe URL you specified in the request to send events to.
eventStringThe event you specified in the request to subscribe to.
project_idStringThe UUID of the Project assigned by Agave. This is only present for Project-level events.
targetStringThe ID that you can use to tie events back to what's in your system. This includes the webhook event type (e.g. "file"), followed by either the Agave-generated UUID for a specific data object or a "*" for all data objects for the requested type.
typeStringThe type of data you specified in the request to subscribe to.

Example Response

{
"id": "8c6309d7-4d44-517b-a5e0-42ff993d7b08",
"source_id": "198402",
"callback_url": "https://your-website.com/webhook-callback",
"event": "CREATE",
"project_id": "your_optional_project_id",
"target": "file:*",
"type": "file"
}

Example Webhook Event

This is an example webhook event that Agave will asynchronously send to your registered callback endpoint. Note that the project_id and target fields have been converted to Agave UUIDs.

If you provided an authorization_header header when creating the webhook, all events delivered by Agave will include it as the Authorization header.

{
"id": "61ce34a3-db8f-5a3b-a900-f929ca8f325b",
"source_id": "17a674cc-5c71-4d0c-8017-7be022ed9f87",
"callback_url": "https://your-website.com/webhook-callback",
"event": "UPDATE",
"project_id": "a573cb23-0ca0-5b1e-95b2-c0a502f948cd",
"target": "e2061d61-300b-5346-bbf6-91fe649b85c4",
"type": "file",
"source_data": {
"path": "",
"content_type": "application/json",
"data": {
"version": "1.0",
"resourceUrn": "urn:adsk.wipprod:fs.file:vf.-R7wYazIQXu4Xwd-CcY0tA?version=1",
"hook": {
"hookId": "27405e40-769f-4cab-ac72-9b3962325912",
"tenant": "urn:adsk.wipprod:fs.folder:co.r6BFGteUT_aVtMrAgCbjow",
"callbackUrl": "https://example.com",
"createdBy": "89X4MqIR0tdPs1eLmX9Av7u2vGYPLn7j",
"event": "dm.version.modified",
"createdDate": "2024-01-03T22:09:55.338+00:00",
"lastUpdatedDate": "2024-01-03T22:09:55.338+00:00",
"system": "data",
"creatorType": "Application",
"status": "active",
"scope": {
"folder": "urn:adsk.wipprod:fs.folder:co.r6BFGteUT_aVtMrAgCbjow"
},
"hookAttribute": {
"agaveProjectId": "a53cb723-0ca0-5b1e-95b2-c0a48c502f9d",
"agaveAccountId": "a7cc2306-c637-4c41-8dc6-a2bb7471a291",
"agaveClientId": "80e9bedf-6e20-5197-b195-fcbd26a544e0"
},
"autoReactivateHook": true,
"urn": "urn:adsk.webhooks:events.hook:27405e40-769f-4cab-ac72-9b3962325912",
"callbackWithEventPayloadOnly": false,
"projectId": "b.177f427a-c623-4686-bfce-02159f42a57a",
"__self__": "/systems/data/events/dm.version.modified/hooks/27405e40-769f-4cab-ac72-9b3962325912"
},
"payload": {
"ext": "png",
"modifiedTime": "2024-01-04T00:27:18+0000",
"lineageUrn": "urn:adsk.wipprod:dm.lineage:-R7wYazIQXu4Xwd-CcY0tA",
"sizeInBytes": 47872,
"hidden": false,
"indexable": true,
"source": "urn:adsk.wipprod:fs.file:vf.-R7wYazIQXu4Xwd-CcY0tA?version=1",
"version": "1",
"modification_flags": "{\"newVersion\":false,\"accessDefOrScopeChange\":false,\"metadataOnly\":true}",
"contentURL": "urn:adsk.objects:os.object:wip.dm.prod/867688dd-48ed-49b1-ac4f-669e18e10831.png",
"user_info": {
"id": "XPGWRSENBMAX"
},
"name": "test-file.png",
"context": {
"lineage": {
"reserved": false,
"reservedUserName": null,
"reservedUserId": null,
"reservedTime": null,
"unreservedUserName": null,
"unreservedUserId": null,
"unreservedTime": null,
"createUserId": "XPGWRSENBMAX",
"createTime": "2024-01-04T00:27:16+0000",
"createUserName": "Agave Sandbox",
"lastModifiedUserId": "XPGWRSENBMAX",
"lastModifiedTime": "2024-01-04T00:27:17+0000",
"lastModifiedUserName": "Agave Sandbox"
},
"operation": "UpdateCustomProperties"
},
"modifiedBy": "XPGWRSENBMAX",
"state": "CONTENT_AVAILABLE",
"parentFolderUrn": "urn:adsk.wipprod:fs.folder:co.Xwm0ehMpRKG2WykrJYnydw",
"ancestors": [
{
"name": "9b150bab-70f3-4b54-87fb-7d2e84c65613-account-root-folder",
"urn": "urn:adsk.wipprod:fs.folder:co.4m9GnY6VTRG1X53D3AHnhA"
},
{
"name": "177f427a-c623-4686-bfce-02159f42a57a-root-folder",
"urn": "urn:adsk.wipprod:fs.folder:co.r6BFGteUT_aVtMrAgCbjow"
},
{
"name": "Project Files",
"urn": "urn:adsk.wipprod:fs.folder:co.rzdTdcf5S6mGQ5UbdEXtaQ"
},
{
"name": "SZ test",
"urn": "urn:adsk.wipprod:fs.folder:co.UhsZ3FykQyCyqiAn7MqbMQ"
},
{
"name": "subfolder rename again",
"urn": "urn:adsk.wipprod:fs.folder:co.dKHU6wWxRHObCgxyMfCKEA"
},
{
"name": "subsubfolder",
"urn": "urn:adsk.wipprod:fs.folder:co.Xwm0ehMpRKG2WykrJYnydw"
}
],
"project": "177f427a-c623-4686-bfce-02159f42a57a",
"tenant": "9b150bab-70f3-4b54-87fb-7d2e84c65613",
"custom-metadata": {
"dm_sys_id": "a536b810-0eed-4272-9fe0-4831577f2662",
"file_name": "test-file.png",
"lineageTitle": null,
"dm:sourceVersionUrn": "urn:adsk.wipprod:fs.file:vf.-R7wYazIQXu4Xwd-CcY0tA?version=1",
"dm_command:id": "1228b155-3853-4944-a0f7-1998b09929a7",
"forge.type": "versions:autodesk.bim360:File-1.0",
"storm:entity-type": "SEED_FILE",
"storm:process-state": "EXTRACTION_PENDING",
"storm:bubble-seed-urn": "urn:adsk.wipprod:fs.file:vf.-R7wYazIQXu4Xwd-CcY0tA?version=1",
"dm_command:version": "2.1.0",
"fileName": "test-file.png"
}
},
"XDEBUG_SESSION_START": "1"
}
}
}