SMS API
This guide will help you integrate SMS capabilities into your applications, enabling you to send, receive, and manage SMS messages seamlessly.
Send SMS
The Send SMS API in Unecast allows you to send SMS messages (Single Message or Multi Message) to your recipients. This API is designed to be simple and straightforward, enabling you to integrate SMS capabilities into your applications quickly.
Request
Response
Example Use Case
Sending an SMS to one or multiple destination numbers
To send an SMS, send a POST
request to the /sms/send
endpoint. Here’s an example using curl
:
Handling Responses
Success: If the request is successful, you will receive a
200 OK
status with the relevant data in the response body.Error: If there is an error, you will receive an appropriate HTTP status code and an error message detailing the issue.
Example Success Response
A successful response will look like this:
Example Error Response
If there is an error, the response might look like this:
Best Practices
Message Content: Ensure your messages comply with regulatory standards and best practices for SMS content.
Rate Limiting: Be mindful of rate limits to avoid throttling and ensure smooth message delivery.
Error Handling: Implement robust error handling in your application to manage API errors gracefully.
Check SMS Status
Request
Response
Tutorials
Sending Your First SMS
Create an App: Sign in to Unecast and click on Developer to
create your first app
.Select Project Scope: Select REST API to generate an API key
Send an SMS: Use the
/sms/send
endpoint to send your first SMS.Check Status: Use the
/sms/status/{message_id}
endpoint to check the delivery status of your message.
Last updated