TelefonAIv1
Bookings

Create a booking

Create a booking. The clinic's own rules apply: opening hours, closures, the practitioner's hours and absences — and a taken slot is refused with 409.

POST/v1/bookings

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