Skip to navigation

Create a webhook subscription

The URL must be HTTPS and resolve to a public address. The signing secret is returned once, in this response; store it.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired1-255 characters
urlstringRequiredformat: "uri">=1 character
eventenumRequired
custom_headersmap from strings to any or nullOptional
descriptionstring or nullOptional
api_version"1"OptionalDefaults to 1

Response

The subscription with its signing secret (shown only once).

webhook_idinteger
namestring
urlstring
eventenum or any
statusenum or any
api_versionstring
failure_countinteger
created_atdatetime
updated_atdatetime
descriptionstring or nullOptional
custom_header_nameslist of strings or nullOptional
last_failure_atdatetime or nullOptional
last_success_atdatetime or nullOptional
last_status_codeinteger or nullOptional
last_delivery_atdatetime or nullOptional
secretstring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error