TelefonAIv1
SMS

Take a number off the list again

Take a number off the list again. It is your responsibility to have consent behind it — we cannot tell the difference.

DELETE/v1/sms/optout

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

phonestringqueryrequired

The number to remove.

Request

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

Response

application/json

Success.

object

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