Send a message
Changed onSend a message to a recipient via SMS or WhatsApp.
Channel selection:
- If channel is omitted and messageType is text, defaults to SMS
- If messageType is anything other than text, WhatsApp is used automatically
WhatsApp 24-hour window:
- Free-form messages (non-template) require an open 24h window
- Window opens when the user messages you first
- Use template messages to initiate conversations outside the window
Plan allowances and email billing:
- WhatsApp, Telegram, Instagram and Messenger share an allowance of 2,000 messages per month on Free. It counts messages in both directions: a message a contact sends you consumes one unit exactly as a message you send them does, so a project that has sent 300 and received 1,700 has used the whole allowance. Messages you send from the WhatsApp Business App on your own phone under coexistence are mirrored into your inbox but never counted, and neither are failed sends. Pay as you go: a Free team that has added funds to its balance is not stopped at the allowance. Past it, each started block of 1,000 messages is prepaid from the balance at $4 ($0.004 a message, either direction); only when the balance cannot cover the next block does the rule below apply. Otherwise, over the allowance, sends return 429 with code a2p_limit_exceeded and upgrade details, and inbound messages on those channels are held: kept, but not shown in the inbox and no message.inbound webhook until the team adds funds or moves to a paid plan (or, for a pay-as-you-go team stopped by its spend cap, raises the cap). Held messages are then delivered in arrival order with their original providerTimestamp, counted like any other, and an AI agent does not reply to them. Up to 1,000 are held per team, each for 30 days; past either limit they are refused and not delivered later. The month resetting does not release them. The counter resets on the 1st of each month. Paid plans have no message caps
- Email is billed from your prepaid balance in 1,000-message blocks: $0.40 per 1,000 transactional emails, $0.80 per 1,000 marketing (broadcast) emails. A block is charged when your monthly count crosses each 1,000 boundary, and at zero balance email sends return 402 with code insufficient_balance. Free teams start with $2 of credit and additionally cap at 3,000 emails/month (lifted once the team has added funds: past it, email keeps billing from the balance in the same blocks) and 100/day. Email broadcasts (marketing email) need a paid plan: Free cannot send them, see POST /v1/broadcasts/{broadcastId}/send. Teams on earlier plans keep their original email quotas instead
- SMS and voice are billed per message from your balance on every plan
Daily limits:
- An account sends on every channel from its first minute, to any destination. Verification is not a permission to send: identity verification and business verification (KYB) raise the ceilings below. That includes sms_oneway: it sends without verification, within the SMS ceiling, and every message passes the risk review below. KYB is still required to register a 10DLC brand and campaign, which every US and Canadian (+1) SMS destination needs — a carrier rule, answered separately with 403 ten_dlc_required
- Daily ceilings apply per channel group and rise with verification. An account that has verified nothing: 25/day across sms + sms_oneway, 5/day for voice, 100/day across WhatsApp, Telegram, Instagram and Messenger combined. Past that floor: 200/day for SMS, or 10,000/day once identity or business verification is approved (or a higher limit agreed for your account); 50/day voice and 250/day conversational on Free. Paid plans have no voice or conversational daily ceiling, and neither does a Free team that has added funds on conversational (voice keeps 50/day). Over a ceiling, sends return 429 with code daily_limit_exceeded and details.limit; the count resets at 00:00 UTC
- The daily ceiling never reduces the monthly allowance: 100/day on the conversational group still reaches the 2,000 monthly A2P messages Free includes
- Email: a sender with a verified domain sends from day one, within the plan quota (100/day and 3,000/month on Free). Over the daily quota it returns 429 with code daily_limit_exceeded
- Every plan, paid ones included, also has a rolling email ceiling by account age: 200 per hour and 1,000 per 24 hours for the first 7 days, 1,000 per hour and 10,000 per 24 hours until day 30, then 5,000 per hour and 50,000 per 24 hours. Past it the request is accepted and the message then fails with errorCode EMAIL_RATE_LIMIT_HOURLY or EMAIL_RATE_LIMIT_DAILY, visible on GET /v1/messages/{messageId} and the message.failed webhook. It does not reset at 00:00 UTC: it counts the last hour and the last 24 hours
- Full reference: https://www.zavu.dev/docs/concepts/sending-limits
Risk review: Every outbound sms, sms_oneway, email and voice message is read before it is sent — the content, and how this account has been sending. What is checked is the message, not who you are.
- A message can be held for a short review. It stays queued while it waits: no new status exists for this, and MessageStatus is unchanged. When it is approved it sends normally.
- A message that is not approved moves to failed and fires message.failed. errorCode says which happened: RISK_REJECTED (a reviewer refused it), RISK_REVIEW_EXPIRED (the review window closed first — it is a couple of hours, because a code that arrives late is worse than one that does not arrive), or RISK_BLOCKED (refused outright, without a hold). An SMS that fails this way is not charged; the prepaid amount is returned.
- A call is never held. POST /v1/calls fails a call the review stops rather than placing it hours late.
- A message whose content cannot be read — the check is briefly unavailable — is held rather than sent. An account with an approved business verification is unaffected, and so is one that has verified something, already sends real traffic, and has a clean recent record.
- Repeated refusals suspend an account's sending. While it is suspended every send is refused with 403 and code sending_suspended, details.dashboardUrl points at support, and a message already queued fails with errorCode SENDING_SUSPENDED.
- A broadcast is read once, on the broadcast itself, rather than per recipient — see POST /v1/broadcasts/{broadcastId}/send.
Email recipient pre-flight: Email messages are validated automatically before dispatch. Sends that would be a guaranteed hard bounce are failed instead of sent, protecting your bounce rate: the message transitions to failed (visible via GET /v1/messages/{messageId} and the message.failed webhook) with errorCode set to EMAIL_INVALID_RECIPIENT (malformed address), EMAIL_DOMAIN_NOT_FOUND (recipient domain has no MX or A records), or EMAIL_RECIPIENT_SUPPRESSED (address is on your suppression list after a previous bounce or complaint). Advisory signals (role addresses, disposable domains) do not block sends — check them beforehand with POST /v1/introspect/email.
Request
- Base URLhttps://api.zavu.dev
- AuthHTTP bearer
Headers
Optional sender profile ID. If omitted, the project's default sender will be used.
Request body
Example request
{
"to": "+56912345678",
"text": "Your verification code is 123456.",
"content": {
"mediaUrl": "https://example.com/image.jpg",
"mimeType": "image/jpeg",
"filename": "invoice.pdf",
"ctaDisplayText": "See Dates",
"ctaUrl": "https://example.com/schedule",
"footerText": "Dates subject to change.",
"templateVariables": {
"1": "John",
"2": "ORD-12345"
},
"templateButtonVariables": {
"0": "abc-report-token"
},
"templateHeaderVariables": {
"1": "Jorge y Laura"
},
"templateHeaderMediaUrl": "https://files.example.com/invoices/INV-1042.pdf?sig=abc123",
"templateHeaderFilename": "invoice-1042.pdf",
"referral": {
"sourceId": "120210000000000000",
"ctwaClid": "ARIzZm9vYmFyY3R3YWNsaWQ"
}
},
"subject": "Your order confirmation",
"replyTo": "support@example.com",
"idempotencyKey": "msg_01HZY4ZP7VQY2J3BRW7Z6G0QGE",
"voiceLanguage": "es-ES",
"attachments": [
{
"filename": "invoice.pdf",
"content_type": "application/pdf",
"content_id": "logo"
}
]
}Response
Message accepted for delivery.
Example response
{
"message": {
"id": "jd7x2k3m4n5p6q7r8s9t0",
"to": "+56912345678",
"from": "+13125551212",
"senderId": "sender_12345",
"content": {
"mediaUrl": "https://example.com/image.jpg",
"mimeType": "image/jpeg",
"filename": "invoice.pdf",
"ctaDisplayText": "See Dates",
"ctaUrl": "https://example.com/schedule",
"footerText": "Dates subject to change.",
"templateVariables": {
"1": "John",
"2": "ORD-12345"
},
"templateButtonVariables": {
"0": "abc-report-token"
},
"templateHeaderVariables": {
"1": "Jorge y Laura"
},
"templateHeaderMediaUrl": "https://files.example.com/invoices/INV-1042.pdf?sig=abc123",
"templateHeaderFilename": "invoice-1042.pdf",
"referral": {
"sourceId": "120210000000000000",
"ctwaClid": "ARIzZm9vYmFyY3R3YWNsaWQ"
}
},
"conversationId": "js723987cyghwqxxaxcf590qd18axd95"
}
}Changes
- info
added the new optional request property
content/templateHeaderFilename - info
added the new optional request property
content/templateHeaderMediaUrl - info
added the optional property
message/content/templateHeaderFilenameto the response with the status
3 more changes in this revision
- info