curl --request PATCH \
--url https://api.zavu.dev/v1/senders/{senderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"setAsDefault": true,
"webhookUrl": "<string>",
"webhookEvents": [
"message.queued"
],
"webhookActive": true,
"emailReceivingEnabled": true
}
'{
"id": "sender_12345",
"name": "Primary sender",
"phoneNumber": "+13125551212",
"isDefault": false,
"webhook": {
"url": "https://api.example.com/webhooks/zavu",
"events": [
"message.queued"
],
"active": true,
"secret": "whsec_abc123..."
},
"whatsapp": {
"phoneNumberId": "<string>",
"displayPhoneNumber": "+14155551234",
"paymentStatus": {
"setupStatus": "COMPLETE",
"methodStatus": "VALID",
"canSendTemplates": true
}
},
"emailReceivingEnabled": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
HTTPS URL for webhook events. Set to null to remove webhook.
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 = failedInbound events:
message.inbound: New message received from a contact. Reactions are delivered as message.inbound with messageType='reaction'message.unsupported: Received a message type that is not supportedBroadcast 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 changedmessage.queued, message.sent, message.delivered, message.read, message.failed, message.inbound, message.unsupported, broadcast.status_changed, conversation.new, template.status_changed Whether the webhook is active.
Enable or disable inbound email receiving for this sender.
Sender updated.
"sender_12345"
"Primary sender"
Phone number in E.164 format.
"+13125551212"
Whether this sender is the project's default.
Webhook configuration for the sender.
Show child attributes
WhatsApp Business Account information. Only present if a WABA is connected.
Show child attributes
Whether inbound email receiving is enabled for this sender.
curl --request PATCH \
--url https://api.zavu.dev/v1/senders/{senderId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"setAsDefault": true,
"webhookUrl": "<string>",
"webhookEvents": [
"message.queued"
],
"webhookActive": true,
"emailReceivingEnabled": true
}
'{
"id": "sender_12345",
"name": "Primary sender",
"phoneNumber": "+13125551212",
"isDefault": false,
"webhook": {
"url": "https://api.example.com/webhooks/zavu",
"events": [
"message.queued"
],
"active": true,
"secret": "whsec_abc123..."
},
"whatsapp": {
"phoneNumberId": "<string>",
"displayPhoneNumber": "+14155551234",
"paymentStatus": {
"setupStatus": "COMPLETE",
"methodStatus": "VALID",
"canSendTemplates": true
}
},
"emailReceivingEnabled": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}