Skip to main content
POST
Send SMS Message
Enterprise Feature - SMS is only available on Enterprise plans. Contact your Bland representative for access.

Headers

string
required
Your API key for authentication.
string
A unique key to prevent duplicate message sends. When provided, repeated requests with the same key will return successfully but will not send an additional message or incur extra charges. Useful for safely retrying failed requests without risk of double-sending.

Body Parameters

string
required
The E.164 formatted phone number of the user receiving the message.
string
required
The E.164 formatted phone number used to send the message (must belong to the authenticated account).
string
The content of the SMS message to send. If not passed in, this generates a response using the pathway/prompt the conversation has been setup with.
object
Optional metadata to associate with the conversation or message. Used for custom routing or analytics.
boolean
Allows you to create a new conversation, archiving the existing conversation and ignores existing sms messages.
string
UUID of a persona to use for this conversation. When provided, the persona’s configuration is applied instead of the number’s SMS config. Use persona_version to select which version to use.Cannot be used as a substitute for agent_number — the agent number must still belong to your account. The persona_id controls how the conversation is handled, not which number sends it.
string
Which version of the persona to use. Allowed values: "production" (default), "draft".
object
Per-dispatch persona overrides. Takes priority over any pathway settings on the persona version or the pathway_id field below.
string
ID of the pathway to use for generating the SMS response. If persona_id is provided, this is used as a pathway override within the persona context (lower priority than persona_settings).
number
Version of the pathway to use.
string
ID of the specific node within the pathway to start from.
string
This overrides the webhook for the conversation, instead of using the webhook attached to the phone number.
object
Custom metadata to attach to the conversation. This data is returned in all webhook payloads (message and status webhooks), making it useful for correlating conversations with your internal systems.
string[]
An array of outcome IDs to run when the conversation ends. If omitted, the outcomes configured on the SMS number are used. If provided, overrides the number’s configuration. See Outcomes for details.
string[]
An array of citation schema IDs to extract when the conversation ends. If omitted, the citation schemas configured on the SMS number are used. If provided, overrides the number’s configuration. See Citations for details.
string
The channel to send the message on. Defaults to “sms”. Allowed values: “sms”, “whatsapp”, “imessage”.For numbers provisioned for iMessage, the channel is auto-derived from the number’s configuration, so you don’t need to set this explicitly. See iMessage for details.
string
The Twilio SID of the content to send, usually in HXXXX format.
object
The variables to send with the content. Example:
number
Per-conversation timeout override, in seconds. When the user goes silent for this long after an agent message, the timeout flow fires (warning message and/or conversation end). Takes priority over the time_out on the number’s sms_config/whatsapp_config. Persists on the conversation, so subsequent turns use the same override until another /send or /create replaces it.
string
Per-conversation override for the message sent when the timeout fires. Takes priority over timeout_message on sms_config/whatsapp_config.
number
Per-conversation override for how long, in seconds, to wait before sending the warning message. Must be less than time_out; the request is rejected with INVALID_TIMEOUT_CONFIG otherwise. Takes priority over warning_time on sms_config/whatsapp_config.
string
Per-conversation override for the warning message sent at warning_time. Takes priority over warning_message on sms_config/whatsapp_config.

Response

object
An object confirming the message was sent and referencing the triggered workflow.
string
Confirmation text for the successful send.
string
ID of the conversation that was created or resumed.
string
ID of the message that was sent, if a single message was sent, to track message delivery and status.
null|array
null on success, or a list of error objects if the request failed.

Docs for agents: llms.txt