TelefonAIv1
Blocked numbers

Block a number

Block a number. If it is already blocked, the reason is updated and the reply is still 200 — you can send your whole list again without first asking what exists.

POST/v1/blocked-numbers

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

Idempotency-Keystringheader

Repeat a request safely: the same key returns the first response instead of creating a second row. Kept for 24 hours.

Request

curl --request POST \
  --url "https://api.telefonai.dk/v1/blocked-numbers" \
  --header "Authorization: Bearer $API_NOEGLE" \
  --header "Content-Type: application/json" \
  --data '{}'

Response

application/json

Success.

object

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