Overview
You can authenticate an API request by sending your username, password and API ID as GET parameters by opening a URL in your browser as shown below.
If you would like to avoid sending your username and password with every API request, you can use a session ID. This command can be used to generate the session ID. The session ID will expire after 15 minutes of inactivity and you will have to call this API verification command again to create a new session ID. Alternatively, you can use the Ping command about every 10 minutes to ensure that the session ID is kept alive.
Note: Any API command using a session ID will cause your session ID to remain active for another 15 minutes.
Command
https: //api.clickatell.com/http/delmsg?user=xxxx&password=xxxx&api_id=xxxx&apimsgid=xxxx |
Parameters
Parameter |
Description |
---|---|
|
Your API username |
|
Your API password |
|
Your API ID |
SMS SPI Authentication Examples
Bash
1 |
|
PHP
1 |
|
Python
1 |
|
API Verification Responses
Example response
Successful API response:
OK: f6b9af2a2c9e5b18ee2d257e3def5d66 |
Error response:
ERR:
001
, Authentication failed
Format
Successful API response:
OK: <session ID> |
Error response:
ERR: <error code>, <error description> |