Send a message
Sends a message to one or more recipients using a template. Supports multi-channel broadcast — when multiple channels are specified (e.g. ["sms", "whatsapp"]), a separate message is created for each (recipient, channel) pair. To choose which of your own numbers a send goes out from, use 'channels': {"sms": [{"from": ["+12125550000", "+14155550000"]}]}. Each channel holds a list of entries, each with 'from' and optionally 'country' and 'strategy'; 'country' and 'strategy' are stored but not acted on yet, so every entry's numbers apply to every recipient on that channel. Every number listed must be an active sender on your account. Like the other account-level preconditions below, that is checked per message rather than when the request is received: the request is still accepted with 202, and each affected message is reported as BLOCKED with error code BUSINESS_029 on GET /messages/{id} and the message.blocked webhook. Each channel's numbers restrict which numbers that channel may use; it does not choose channels — 'channel' does, and the two can be combined. With 'channel' left at auto-detect, a recipient best served by a channel you listed no numbers for still goes out on it. Where several of the listed numbers could serve a recipient, routing prefers the one whose area code matches theirs. Keys: sms, whatsapp, rcs, mms. Returns immediately with per-recipient message IDs for async tracking via webhooks or the GET /messages/{id} endpoint. Sends gated before any delivery attempt do not reject the request — an account-level precondition such as insufficient balance, a template not approved for sending, or free-form content with no open conversation with the contact. The send is accepted with 202 and the affected messages are reported as BLOCKED on GET /messages/{id} and the message.blocked webhook. To send later, set scheduled_at (ISO-8601 with an explicit UTC offset; a value without one is rejected) between 1 minute and 30 days ahead: the response is a ScheduledSendMessageResponse (the same fields plus scheduled_at; status is still QUEUED), each message then moves to SCHEDULED, is held and released at that time (within a few minutes), and a message.scheduled webhook fires once it is held. Balance and template approval are evaluated at release, not at acceptance. Quiet hours are not checked when the request is accepted: if the time falls inside a legally protected quiet-hours window for a recipient, that message is moved to the next allowed time at release and a second message.scheduled webhook reports the new scheduled_at. An account may hold at most 1,000,000 scheduled messages at once: a message scheduled past that is reported as BLOCKED (LIMIT_001) instead of being held.
Idempotency-Key?stringUnique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.
^[a-zA-Z0-9_-]+$length <= 255x-profile-id?stringProfile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.
uuidapplication/json- body
Request to send a message (v3 SDK-style with multi-recipient and multi-channel broadcast)
sandbox?booleanSandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution
to?array<string>List of recipient phone numbers in E.164 format (multi-recipient fan-out)
channel?array<string>|Channels to broadcast on, e.g. ["whatsapp", "sms"]. Each channel produces a separate message per recipient. "sent" = auto-detect. Defaults to ["sent"] (auto-detect) if omitted.
channels?|Which of your own numbers to send from, keyed by channel, each channel holding a list of entries: {"sms": [{"country": "US", "from": ["+12125550000", "+14155550000"]}, {"from": ["+447700800001"]}]}. Any real channel may be a key; sent, which is auto-detect rather than a channel, is rejected. country and strategy are accepted and stored but not acted on yet: every entry's numbers apply to every recipient on that channel.
This does not choose channels — Channel does, and the two combine: "channel": ["sms"] with an sms list sends on SMS from those numbers. Each list only narrows which of its own channel's routes may win, so with Channel left at auto-detect a recipient best served by a channel with no list still goes out on it. Routing itself is unchanged: the same rules are scored and ranked the same way, with routes pinned to numbers you did not list removed from the running.
Each channel's list is independent: an sms list does not restrict MMS. To choose the numbers a message may go out from as MMS, name them under mms. MMS sends from your SMS numbers, so an mms list may name any of your active SMS numbers whose market carries MMS — the ones listed under mms in your channels.
Every number must be an active sender on your account. The request itself is still accepted (202) if one is not — like every other send-time rule, that is decided per message, so each affected message is recorded BLOCKED with error code BUSINESS_029 and reported on GET /v3/messages and the status webhook.
template?|nullTemplate reference (by id or name, with optional parameters). Optional — provide either Template or Message.
text?|Plain-text (free-form) message body. Provide either Template or this.
media_urls?array<string>|Attachments for this send, as publicly fetchable https URLs. Used by the MMS channel and ignored by every other one.
Supplying these replaces the media on the template's mms body rather than adding to it, so a template can hold a default creative while a caller still sends something recipient-specific.
Their presence is also what makes a message eligible for MMS on an auto-detect send: a message with nothing attached is delivered as SMS, because an MMS with no media is a more expensive text message. For the same reason a send that names mms in channel with nothing attached, here or on the template, is refused with a 400.
The recipient's carrier fetches each URL after the send is accepted, so it must stay publicly reachable — a link that expires, or one behind auth, arrives as a failed message.
subject?|Subject line for this send, overriding the template's. MMS only; ignored on every other channel. Most handsets render it above the body, some ignore it entirely.
scheduled_at?|Optional future send time as an ISO-8601 timestamp with an explicit UTC offset, e.g. 2026-10-01T09:00:00+02:00 or 2026-10-01T07:00:00Z. A value without an offset is rejected (400) rather than read in the server's zone. The offset only fixes the instant: it is stored and echoed in UTC as scheduled_at. Omit to send now. Must be at least one minute ahead and at most 30 days ahead. Accepted messages report SCHEDULED and are released for delivery at this time. Quiet hours, balance and template approval are evaluated at release, not at acceptance: a message whose time falls inside a recipient's protected quiet-hours window is moved to the next allowed time and a second message.scheduled webhook reports the new scheduled_at.
date-timeMessage accepted for processing (QUEUED). data is a SendMessageResponse, or for a request that carried scheduled_at a ScheduledSendMessageResponse: the same fields plus scheduled_at. Status is QUEUED in both, and each scheduled message moves to SCHEDULED once it is held
application/json- response
Standard API response envelope for all v3 endpoints
success?booleanIndicates whether the request was successful
data?|nullThe response data (null if error)
error?|nullError details (null if successful)
meta?Metadata about the request and response
curl -X POST 'https://api.sent.dm/v3/messages' \ -H 'Idempotency-Key: req_abc123_retry1' \ -H 'Content-Type: application/json' \ -d '{ "to": [ "+14155551234", "+14155555678" ], "channel": [ "sms", "whatsapp" ], "template": { "id": "7ba7b820-9dad-11d1-80b4-00c04fd430c8", "name": "order_confirmation", "parameters": { "name": "John Doe", "order_id": "12345" } }, "sandbox": false}'{ "success": true, "data": { "status": "QUEUED", "template_id": "7ba7b820-9dad-11d1-80b4-00c04fd430c8", "template_name": "order_confirmation", "recipients": [ { "message_id": "8ba7b830-9dad-11d1-80b4-00c04fd430c8", "to": "+14155551234", "channel": "sms", "body": "Hi John Doe, your order #12345 has been confirmed." }, { "message_id": "8ba7b831-9dad-11d1-80b4-00c04fd430c8", "to": "+14155551234", "channel": "whatsapp", "body": "Hi John Doe, your order #12345 has been confirmed." }, { "message_id": "9ba7b840-9dad-11d1-80b4-00c04fd430c8", "to": "+14155555678", "channel": "sms", "body": "Hi John Doe, your order #12345 has been confirmed." }, { "message_id": "9ba7b841-9dad-11d1-80b4-00c04fd430c8", "to": "+14155555678", "channel": "whatsapp", "body": "Hi John Doe, your order #12345 has been confirmed." } ] }, "error": null, "meta": { "request_id": "req_7X9zKp2jDw", "timestamp": "2026-11-27T23:31:12.856679+00:00", "version": "v3" }}Glossary of Sent Messaging, Compliance, and API Terms
Definitions of the messaging, compliance, and API terms used across the Sent platform, from channels, contacts, and Sender Profiles to templates and webhooks
Get message status GET
Retrieves the current status and details of a message by ID. Includes delivery status, timestamps, and error information if applicable. A message that is or was held for a later time (a send you scheduled with scheduled_at, a quiet-hours hold, or a message you cancelled while it was held) is returned as a ScheduledMessageResponse: the same fields plus scheduled_at, the instant it is held for in UTC — or, on a CANCELLED message, the instant that was called off. A message sent immediately has no scheduled_at key.