To submit SMS directly from your application to an endpoint using our API, the following API call needs to be made:
POST https://cdn.emnify.net/api/v1/endpoint/{endpointId}/sms
Required Headers:
Content-Type: application/json
Authorization: Bearer {auth_token}
JSON Body:
{
"source_address": "12345",
"payload": "This is the message text!"
}
To receive SMS on your application server from the device you will need to first set up a Callback URL in the Service profile assigned to that endpoint:
- Set the API URL on the "SMS" tab - select "RestAPI" on the drop-down menu for “Interface”
- Select the “configuration icon” next to “RestAPI”, input a purpose (name of your choosing) and the URL
- You can also set up a "Secret" (optional)
A detailed description of the SMS API you can find in our API documentation.
Comentarios
0 comentarios
Inicie sesión para dejar un comentario.