TelefonAIv1
Contacts

Create a contact — or update them if the number already exists

Create a contact — or update them if the number already exists. The PHONE NUMBER is the key, not the id: it is also what decides whether it is the same person when they call. Fields you do not send are left alone, so a sync that only knows the number does not wipe the name. Answers 201 on create and 200 on update.

POST/v1/contacts

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/contacts" \
  --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."
  }
}