Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer rw_....

Required scope: project:webhooks:write.

Body

application/json
events
enum<string>[]
required

Event types that should be delivered to this webhook.

Minimum array length: 1
Available options:
sms.otp,
message.sent,
message.batch,
message.queued,
message.failed,
message.canceled,
message.delivered,
message.received,
message.scheduled
Example:
endpoint
string<uri>
required

Must be HTTPS in production. http://localhost/... is also accepted. Query strings and fragments are rejected.

Maximum string length: 255
Example:

"https://example.com/rewrite/webhooks"

name
string

Friendly name shown in the dashboard and logs.

Required string length: 1 - 32
Example:

"delivery-events"

secret
string

Accepted formats: whsec_<base64>, raw base64, or legacy rw_whsec_....

Required string length: 16 - 128
Example:

"whsec_dGVzdF9zZWNyZXRfdmFsdWU="

delivery
object

Optional delivery tuning for timeout and retry behavior.

Response

200 - application/json

Successful response

ok
boolean
required
data
object
required