Send a transactional SMS
Send a transactional SMS message. To send a message, you'll need to provide a transactional_message_id. This is either the numerical ID of your transactional message template or the Trigger Name that you assigned the template.
You can find your transactional_message_id from the code sample in the Overview tab for your transactional message in the user interface, or you can look up a list of your transactional messages through the App API.
Headers
The numeric ID of the workspace you want to send a message in. This header is only needed when you authenticate with a service-account bearer token (sa_live_…). Service accounts work across workspaces, so you must supply this header so we know which workspace to send from. You can omit this header when you authenticate with a standard App API key, which is always scoped to one workspace.
Request body
Example request
{
"transactional_message_id": "confirmation code",
"to": "+15559876543",
"from": "+15551234567",
"identifiers": {
"id": "123456"
},
"message_data": {
"confirmation_code": "123456",
"account_name": "Jane Doe"
}
}Response
Returns a unique ID for the delivery.
Changes
No recorded changes to this endpoint across all 1 revision of this API.