API Reference
Create sender
POST
Create sender
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
HTTPS URL for webhook events.
Events to subscribe to.
Type of event that triggers the webhook.
Message lifecycle events:
message.queued: Message created and queued for sending.data.status=queuedmessage.sent: Message accepted by the provider.data.status=sentmessage.delivered: Message delivered to recipient.data.status=deliveredmessage.read: Message was read by the recipient (WhatsApp only).data.status=readmessage.failed: Message failed to send.data.status=failed
Inbound events:
message.inbound: New message received from a contact. Reactions are delivered asmessage.inboundwithmessageType='reaction'message.unsupported: Received a message type that is not supported
Broadcast events:
broadcast.status_changed: Broadcast status changed (pending_review, approved, rejected, sending, completed, cancelled)
Other events:
conversation.new: New conversation started with a contacttemplate.status_changed: WhatsApp template approval status changed
Partner events:
invitation.status_changed: A partner invitation status changed (pending, in_progress, completed, cancelled)
Custom domain events:
domain.verified: A custom email domain passed verification (DKIM, and SPF/DMARC/MAIL FROM if enhanced records are enabled)domain.failed: A custom email domain failed verification or is partially verified
Available options:
message.queued, message.sent, message.delivered, message.read, message.failed, message.inbound, message.unsupported, broadcast.status_changed, conversation.new, template.status_changed, invitation.status_changed, domain.verified, domain.failed Response
Sender created.
Example:
"sender_12345"
Example:
"Primary sender"
Phone number in E.164 format.
Example:
"+13125551212"
Whether this sender is the project's default.
Webhook configuration for the sender.
WhatsApp Business Account information. Only present if a WABA is connected.
Whether inbound email receiving is enabled for this sender.
