Message status
Message status #
GET /v1/sms/{id}// Consulter le statut d'un message
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/sms/550e8400-e29b-41d4-a716-446655440000', {
headers: { 'Authorization': 'Basic ' + credentials }
});
// Consulter le statut d'un message
$ch = curl_init('https://api.callistosignal.com/v1/sms/550e8400-e29b-41d4-a716-446655440000');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
https://api.callistosignal.com/v1/sms/550e8400-e29b-41d4-a716-446655440000
An unknown message returns 404: the id does not exist, belongs to another organization or is not a UUID. The response is the same in all three cases.
Possible statuses
| Status | Description |
|---|---|
| pending | The message is saved and waiting to be picked up |
| initialized | The message has been picked up for sending |
| processing | The message is being sent to the operator |
| processed | The operator accepted the message |
| failed | The operator refused the message, or every send attempt failed |