Request body
enabledbooleanWhether the webhook is enabled. When disabled, no events will be sent to the webhook.
default trueurlstringrequiredReceives the events. Must be https and a public host.
e.g. "https://example.com/hooks/mynth"eventsstring[]requiredThe events to send.
["all"]sends every event, including ones added later.task.completedandtask.failedcover every task type.≥ 1 itemsapi_key_idsstring[] | nullTasks created with these API keys are sent. Omitted or null: every key, including keys created later. An empty list: no key.
≤ 1000 itemsinclude_session_tasksbooleanAlso send tasks created without an API key: playground runs and other signed-in (OAuth) sessions. Tasks the CLI creates carry its API key, so
api_key_idsdecides those.default false
Response
Webhook 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.