POST/v1/webhooks

Create a webhook endpoint

Registers an https endpoint (at most 20 per organisation) with the event subscription (types, families such as item.*, or *) and optional filters on Postflow, Postbatch and test mode. The response carries the signing secret once.

Scope webhooks.manage

Body

urlstringrequiredmax length 2000
descriptionstringmax length 200
eventsarray of stringrequiredmin items 1max items 60
filtersobject
4 fields
postflowIdstringmin length 1max length 40
postbatchIdstringmin length 1max length 40
isTestboolean
integrationInstallationIdstringmin length 1max length 40
activeboolean

Returns

13 fields of the 201 answer
idstringrequired
urlstringrequired
descriptionstring or nullrequired
eventsarray of stringrequired
filtersobjectrequired
4 fields
postflowIdstring
postbatchIdstring
isTestboolean
integrationInstallationIdstring
activebooleanrequired
failureStreakintegerrequired
disabledAtdate-time or nullrequired
lastDeliveryAtdate-time or nullrequired
lastStatusenum or nullrequired
SUCCEEDEDFAILEDEXHAUSTED
createdAtdate-timerequired
updatedAtdate-timerequired
secretstringrequired

Responses

201Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)