To send a message via API, you should create an API Token first. You can generate your API Token from Communication Platform by following the below steps:
- Click on Developers in the Platform’s Homepage.
- Click on Create API Key.
- Enter a name to your API Key in the Label field.
- Choose an Expiration Date or check the Never Expire box.
- Click Create.
- Copy your API token and check the box.
- Click Done.
Needs More details, please check the below Step:
To send a message using Cequens' SMS API, you must first authenticate by obtaining an access token using the OAuth2 password grant method. Then, you can call the POST /api/sms/v1/messages
endpoint to submit your message.
Step 1: Generate an Access Token
Before calling the SMS API, you must authenticate your client and retrieve an access token.
Endpoint:
Request Example:
Response Example:
? Use this token in the
Authorization
header for all SMS API requests.
Step 2: Send a Message via the SMS API
Endpoint:
Required Headers:
Sample Request Body:
Successful Response:
Tips
Phone numbers must be in international E.164 format (e.g.
201234567890
)Ensure your Sender ID is approved and allowed for the target country
The
access_token
is valid for a limited time — refresh it as needed
After creating your Token, please refer to our API Documentation via this link.