Create a webhook
POST
/webhooks授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
请求体
必填application/jsonendpointstring<uri>必填最大长度 2048
eventsstring[]必填最少 1 项
inbox_idsstring<uuid>[] | nullBillionSend extension: inbox events and email.received reach this endpoint only for these inboxes of the team (at most 100). null means every inbox. Omitted: every inbox.
最多 100 项
signing_secretstringSigning secret to use instead of minting one: whsec_ followed by base64 of 24-64 bytes (the Standard Webhooks format). An existing secret carried over keeps the receiver verifying unchanged; when omitted, a new one is generated.
响应
200
Webhook created; signing_secret is also retrievable via GET /webhooks/{id}
objectstring必填允许值:
webhookidstring<uuid>必填signing_secretstring必填401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填403
Plan webhook endpoint limit reached
statusCodenumber必填namestring必填messagestring必填422
Validation error
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填