TelefonAIv1
Bookings

List bookings, soonest first, with the service, the time and the contact they were made for

List bookings, soonest first, with the service, the time and the contact they were made for. Cancelled bookings are INCLUDED, with status: "cancelled" — otherwise you cannot tell «cancelled» from «never existed». Filters can be combined; an invalid id or unknown status gives 400.

GET/v1/bookings

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

limitintegerquery

Rows per page. 1–100, default 25.

offsetintegerquery

Rows to skip. Default 0.

fromstringquery

Only bookings starting at or after this time (ISO 8601).

tostringquery

Only bookings starting before this time (ISO 8601).

contact_idstringquery

Only this contact's bookings.

resource_idstringquery

Only this practitioner's bookings — e.g. for one practitioner's day.

service_idstringquery

Only bookings for this service.

statusstringquery

pending, confirmed, arrived, no_show or cancelled.

Request

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

Response

application/json

Success.

object

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