v1
latestOpenAPI 3.0.02026-08-067074272.5 KBSend a message to the contact with the given phone number
Sends a message (starting a new conversation if the given phone number has no message history). You can optionally specify a delivery status callback URL to track the status of the message on a third-party site. Upon successful execution, delivery_status will be "sending" for immediate sends or "scheduled" when schedule_date_utc is provided. If a delivery callback URL is specified, you will receive either a delivered callback, or an error callback with a status code explaining the issue. Messages are sent at the throttle rate on your dashboard. The throttle rate is defined as your 10DLC message rate, or at one message per second for non-10dlc registered dashboards.
Scheduling
| Mode | Fields to include | Response delivery_status |
|---|---|---|
| Immediate | Omit schedule_date_utc and repeat_settings | "sending" |
| One-time scheduled | schedule_date_utc only (future UTC) | "scheduled" |
| Recurring | schedule_date_utc + repeat_settings | "scheduled" |
Use the Request body examples dropdown for scheduling payloads. See the repeat_settings schema for the full step reference table and repeat mode rules.
Scheduling is not compatible with: location_callback.
Sent messages can also include Location requests. Location requests are urls sent in texts that contacts can access to send their location to Text Request. This info will be shown in their queue, but can also be sent via a callback to some third-party url.
Location requests can be done in one of two ways:
- Set geolocation_requested to true in the request body. This will add the phrase "Go to <text request url> to share your location"
- Add the tag [LocationRequest] to your message body. This tag will be replaced by the text request url.
Location requests can also have a callback that is returned when the location request is completed by the contact. This information will be sent as a POST request to the location_callback property. See the callbacks tab below for the schema of the callback.
WARNING: The location_callback property only works with the [LocationRequest] tag. If no tag exsits, even if geolocation_requested is true, the callback will not work and the send-message request will return a 400 (Bad Request) exception.
Path parameters
Id of dashboard
Phone number
Request body
Example request
{
"body": "I am reaching back out.",
"sender_name": "Bill Cassidy",
"status_callback": "enter-url-here",
"location_callback": "enter-url-here",
"schedule_date_utc": "2023-01-12T19:19:11.8032151Z",
"repeat_settings": {
"repeat_by": "week",
"step": 1,
"times": 5,
"end_date": "2026-12-31T23:59:59Z",
"days": [
"Monday",
"Wednesday"
]
}
}Response
The new message.
Example response
{
"message_id": "eb2a0cc2-5b88-468b-b3f4-926b07bcb275",
"body": "I am reaching back out.",
"message_direction": "S",
"response_by_username": "John Doe",
"delivery_status": "sending",
"schedule_date_utc": "2026-07-15T14:30:00Z",
"delivery_error": "2005",
"mms_media": [
"https://textrequeststorage.com/182739/3fd60fc2-1759-4dee-ac6f-4a97b994b84f.jpeg",
"https://textrequeststorage.com/182739/c89c8c6a-8883-44cd-b833-f8b4dc8fbba4.png"
]
}