Create Webhook

This endpoint will create a webhook for your account. If a webhook exists for your account, it will be recreated with the URL provided. In order to obtain the secret for your webhook, please contact support. Note: be cautious when using this webhook, as it will replace any active webhook with a new one with a new secret.

Controlled Errors

These are the error codes that will be returned when the hasErrors property is equal to true.

Error CodeError Message
error_account_not_foundThe account associated with the session Id provided was not found.
error_webhook_not_addedFailed to create the account webhook.
Body Params
string

The target webhook URL.

Headers
string
required

The session Id generated using the Authentication endpoint.

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json