TelefonAIv1
Bookings

Find available times

Find available times. The same calculation the phone assistant itself uses — so a chat, a website or a records system offers exactly the times the phone would offer, and never one that was just given away.

GET/v1/availability

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

service_idstringquery

The service to be booked. REQUIRED — it determines how much free time is needed.

fromstringquery

First date to look at, YYYY-MM-DD. Omitted = today.

earlieststringquery

Earliest time of day, HH:MM. Use it when the customer has a preference — otherwise we answer with the first available times of the day.

resource_idstringquery

Preferred resource. Omitted = anyone who can perform the service.

limitintegerquery

How many suggestions, 1–50. Default 10.

Request

curl --request GET \
  --url "https://api.telefonai.dk/v1/availability" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Success.

object

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