TelefonAIv1
SMS

Cancel a message that has not been sent yet — typically a scheduled reminder (`send_at`) for a booking cancelled in your own system

Cancel a message that has not been sent yet — typically a scheduled reminder (send_at) for a booking cancelled in your own system. The message then has status: "cancelled" and does not count against the allowance. If the queue has already picked it up, the answer is 409 with the status it reached.

DELETE/v1/sms/{id}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The id of the resource.

Request

curl --request DELETE \
  --url "https://api.telefonai.dk/v1/sms/<id>" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Success.

object

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}