TelefonAIv1
Calendar setup

Sets the WHOLE week for one practitioner — it replaces what was there

Sets the WHOLE week for one practitioner — it replaces what was there. An empty list gives them the week off. With no rows they cannot be booked: empty means OFF, not always.

POST/v1/resource-hours

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