Send and receive SMS
You can perform the following SMS related operations using the endpoint
API.
- List sent and received SMS:
GET /api/v1/endpoint/{endpoint_id}/sms
- Send SMS to an endpoint:
POST /api/v1/endpoint/{endpoint_id}/sms
- Get details about an endpoint SMS:
GET /api/v1/endpoint/{endpoint_id}/sms/{sms_id}
- Cancel a buffered SMS:
DELETE /api/v1/endpoint/{endpoint_id}/sms/{sms_id}
Example: send SMS to an endpoint
POST https://cdn.emnify.net/api/v1/endpoint/{endpoint_id}/sms
Request body:
{
"source_address": 12345689,
"payload": "This is the message text"
}
Responses:
201
The source address is the sender number appearing on the receiving device. The payload is the actual text to be sent as SMS.
info
For more information, see How to send and receive SMS via the API.