Skip to main content
POST
Send message
Before sending messages, you must create a campaign. Once approved, use the campaign ID on your dashboard when sending API calls.

Body

string
required
The ID of the campaign you are sending from.
string
required
Body of the text message to send (max 1500 characters).
string
required
Phone number of the recipient. Must be format.
string
Phone number to send from (optional). Must be format.
[string]
Array of media file URLs to send as MMS. Guide here.
object
Object with custom string key-value pairs. Guide here.

Response

boolean
required
Whether the message was sent successfully.
string
The ID of the message that was sent.
string
Error message if the request fails.

Errors

If the request fails, it will return an HTTP error status code and an error field in the response body with details. Full list of status codes here.
Click here to read our full message deliverability guide