SMS
Send SMS message
Send an SMS message from a DID number owned by the authenticated user.
Requirements:
- Source DID must be owned by user
- Source DID must have SMS enabled
- Sufficient account balance for SMS cost
- Valid destination phone number
Cost:
- Charged per segment (160 characters)
- Price varies by destination country
sms.id feeds sms_show. See also: numbers_search_show, to find SMS-enabled numbers to buy.
post/api/v1/sms
Request
- Base URL: https://app.didlogic.com
- URL: https://app.didlogic.com/api/v1/sms
- Auth: HTTP bearer
Request body
Example request
{
"sm": {
"source": "1234567890",
"destination": "964",
"message": "Test message"
},
"dlr": {
"callback_endpoint": "https://example.com/webhook"
}
}Response
Successfully sends SMS message and returns details with ID
Example response
{
"sms": {
"id": 15,
"destination": "12012025555",
"message": "Test message from API",
"status": "created",
"charge": 0.0001,
"segments_count": 1
}
}Changes
No recorded changes to this operation across all 1 revision of this API.