gateway
Send an SMS
Sends one message to one or more recipients from a phone on your account. deviceId is optional: without it textbee uses your default device, otherwise the enabled device with the most recent heartbeat. Every recipient counts as one message against your plan.
post/api/v1/gateway/send-sms
Request
- Base URL: https://api.textbee.dev
- URL: https://api.textbee.dev/api/v1/gateway/send-sms
- Auth: API key in header x-api-key
Request body
Example request
{
"message": "Your appointment is confirmed for Tuesday at 10am.",
"recipients": [
"+12025550123",
"+12025550124"
],
"simSubscriptionId": 1,
"scheduledAt": "2024-01-15T10:30:00Z",
"receivers": [
"+12025550123",
"+12025550124"
]
}Response
The send was accepted. Use smsBatchId to follow delivery. Acceptance is not delivery: the phone still has to be online.
Example response
{
"data": {
"message": "SMS added to queue for processing",
"estimatedCompletionAt": "2026-08-22T14:05:00.000Z",
"warning": {
"code": "SMS_PERMISSION_MISSING",
"message": "The textbee app on this phone last reported the SMS permission as off. The message fails if it is still off."
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.