Registers an endpoint that Mynth POSTs to when a task settles. Deliveries are
signed with the wbs_ secret in this response. The API returns it only here,
so store it now. The dashboard also shows it on the endpoint's page.
Webhooks has the signature check, events, and sources. Webhook payloads has the body of each event.
Request body#
eventsarray | stringrequiredThe events to send to the webhook. When 'all', all events will be sent to the webhook.
"all"urlstringrequiredThe URL to send the webhook to. Must be a valid URL.
oauthEnabledbooleanWhether tasks authenticated with OAuth (playground and CLI sessions) deliver to this webhook.
default falseenabledbooleanWhether the webhook is enabled. When disabled, no events will be sent to the webhook.
default trueapiKeyIdsstring[] | nullAPI keys this webhook is scoped to. When empty or null, every API key delivers to it.
≤ 1000 items
Response#
201Webhook created
dataobjectrequired
Errors#
A failed call names what went wrong in code, with a sentence in message. The codes, which of them are worth retrying, and how to read a validation failure are on Errors.