Skip to main content
POST
Register a webhook endpoint and show its signing secret once.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

application/json
url
string<uri>
required
Maximum string length: 2048
Pattern: ^https://
events
enum<string>[]
required
Required array length: 1 - 11 elements

The message.sent, message.delivered, message.failed and message.received types describe those transitions. Other emitted message lifecycle changes use message.updated. A completed call emits call.completed. Other emitted call transitions use call.updated. Number acquisition, routing, campaign assignment, activation and release emit number.updated. Registration changes emit brand.updated and campaign.updated with their public resource. A top-up request, hosted link, payment, failure or recorded expiry emits top_up.updated. A clock-only expiry is visible on GET.

Available options:
message.sent,
message.delivered,
message.failed,
message.received,
message.updated,
call.updated,
call.completed,
brand.updated,
campaign.updated,
number.updated,
top_up.updated
enabled
boolean
default:true

Response

Metadata from an equal retry.

id
string<uuid>
required
url
string<uri>
required
Maximum string length: 2048
Pattern: ^https://
events
enum<string>[]
required
Required array length: 1 - 11 elements

The message.sent, message.delivered, message.failed and message.received types describe those transitions. Other emitted message lifecycle changes use message.updated. A completed call emits call.completed. Other emitted call transitions use call.updated. Number acquisition, routing, campaign assignment, activation and release emit number.updated. Registration changes emit brand.updated and campaign.updated with their public resource. A top-up request, hosted link, payment, failure or recorded expiry emits top_up.updated. A clock-only expiry is visible on GET.

Available options:
message.sent,
message.delivered,
message.failed,
message.received,
message.updated,
call.updated,
call.completed,
brand.updated,
campaign.updated,
number.updated,
top_up.updated
enabled
boolean
required
created_at
string<date-time>
required

RFC 3339, UTC.

updated_at
string<date-time>
required

RFC 3339, UTC.