Create Webhook

Create a new Webhook.

Limit of 75 registrations per triggerType, per site.

Access to this endpoint requires a bearer token from a Data Client App.
Required scope | sites:write

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The Webhook registration object
idstringOptionalformat: "objectid"
Unique identifier for the Webhook registration
triggerTypeenumOptional

The type of event that triggered the request. See the the documentation for details on supported events.

urlstringOptional
URL to send the Webhook payload to
workspaceIdstringOptionalformat: "objectid"
Unique identifier for the Workspace the Webhook is registered in
siteIdstringOptionalformat: "objectid"
Unique identifier for the Site the Webhook is registered in
filterobjectOptional

Only supported for the form_submission trigger type. Filter for the form you want Webhooks to be sent for.

lastTriggeredstringOptionalformat: "date-time"
Date the Webhook instance was last triggered
createdOnstringOptionalformat: "date-time"
Date the Webhook registration was created

Response

Request was successful
idstring or nullformat: "objectid"
Unique identifier for the Webhook registration
triggerTypeenum or null

The type of event that triggered the request. See the the documentation for details on supported events.

urlstring or null
URL to send the Webhook payload to
workspaceIdstring or nullformat: "objectid"
Unique identifier for the Workspace the Webhook is registered in
siteIdstring or nullformat: "objectid"
Unique identifier for the Site the Webhook is registered in
filterobject or null

Only supported for the form_submission trigger type. Filter for the form you want Webhooks to be sent for.

lastTriggeredstring or nullformat: "date-time"
Date the Webhook instance was last triggered
createdOnstring or nullformat: "date-time"
Date the Webhook registration was created

Errors