JavaScript
Webhooks
Create webhook
POST
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Minimum string length:
1Example:
"fleet_abc123"
Body
application/json
HTTPS endpoint that will receive webhook deliveries.
Example:
"https://example.com/webhook"
Event names to deliver. Omit to subscribe to all non-test events.
webhook.test is reserved for the test endpoint and cannot be subscribed to.
Available options:
agent.created, agent.updated, agent.deleted, thread.created, thread.status.changed, thread.completed, thread.failed, turn.created, turn.completed, turn.failed, message.created, approval.requested, approval.resolved, approval.granted, schedule.created, schedule.deleted, schedule.triggered, connection.attached, connection.detached Response
Webhook subscription created. The one-time signing secret is returned as secret.
Webhook subscription response for create and rotate. Includes the one-time secret field.
Available options:
agent.created, agent.updated, agent.deleted, thread.created, thread.status.changed, thread.completed, thread.failed, turn.created, turn.completed, turn.failed, message.created, approval.requested, approval.resolved, approval.granted, schedule.created, schedule.deleted, schedule.triggered, connection.attached, connection.detached, webhook.test One-time webhook signing secret returned only by create and rotate responses. The field name is secret.
Example:
"whsec_abc123"