Use this endpoint to delete one or more messages which have not already been sent, for example scheduled SMS.
Send a DELETE
request to https://gateway.sms77.io/api/sms
, containing the IDs of the messages you would like to delete. You will receive a response with the message IDs which have been deleted.
Example
curl -X DELETE "https://gateway.sms77.io/api/sms" \
-H "Authorization: basic ....." \
-H "Content-type: application/json" \
-d "{ \"ids\": [ 77150850625, 77150850626 ] }"
Response
{
"success": true,
"deleted": [
"77150851255",
"77150851254"
]
}