Skip to content
v1

Reference Bookings and services

Bookings and services

List and fetch a team's bookings, and list the services its customers can book.

Overview

A booking is an appointment on the team's calendar. Its kind says where it came from:

  • service_booking: booked for a bookable service, by the AI, a customer or someone on the team. service names the service.
  • calendar_event: an event from the team's connected calendar.
  • external_import: synced from an external booking system, or read from a booking portal's email.

status is scheduled, rescheduled, cancelled, postponed, attended, no_show or team_no_show. Only people record attendance. source says who booked it: ai, customer or operator. meeting_type is online, in_person or phone. These inventory objects exclude payments; current payment requests have separately authorized operational endpoints below.

A reschedule shows up in one of two ways. The same booking is updated when someone on the team moves it in Totem, when the AI moves a booking held in an external booking system such as Koibox, when that system reports a move, or when a booking portal's email does: starts_at and ends_at hold the new time, and the previous time is not exported. Its status becomes rescheduled, although a move that an external booking system reports can leave the status unchanged. When the AI reschedules any other booking, it creates a new one: the old booking ends as cancelled, with rescheduled_to pointing to the new one, and the new one points back with rescheduled_from. For a few seconds after that kind of reschedule, the old booking can still read scheduled. A change made directly in Google Calendar or Outlook may not reach the Totem booking. A booking rescheduled before Totem started recording these links may lack either link, as Data coverage explains.

A bookable service is something customers can book with the team, such as a first consultation. GET /v1/booking_services returns every service of the team, each with its meeting_type, in one response that takes no limit or cursor. Services are not in the changes feed: read the list when you start syncing a team, when a booking names a service you do not know, and at least once a day. A deleted service drops out of the list while its bookings keep naming its id: do not re-read the list for an id it did not resolve last time, and if you show service names on older bookings, keep the name from an earlier read. Disabled services stay listed, with nothing that marks them as disabled.

Use GET /v1/bookings and GET /v1/bookings/{id} to look bookings up; GET /v1/bookings?lead= lists one lead's bookings. To keep a copy, follow the changes feed: Keep a copy in sync explains it.

Current availability and booking actions

POST /v1/booking_services/options discovers current services without requiring a lead. For a current lead and service, POST /v1/bookings/availability returns actionable options and offers. Reading availability does not hold capacity. Use an unchanged current offer with POST /v1/bookings; the server preserves scheduling, payment and recipient policy.

POST /v1/bookings/for-lead and GET /v1/bookings/{id}/management return current management views and action ETags. Use that exact validator in If-Match for POST /v1/bookings/{id}/cancel or POST /v1/bookings/{id}/reschedule. An inventory version or another appointment's ETag cannot authorize those changes.

POST /v1/booking-payments/get reads current owned payment requests with the separate payment-content permission. POST /v1/booking-payments/send-link requires explicit confirmation and the current returned reference. A payment request or sent link is not a confirmed appointment. Observe the returned operation and reconcile an unknown provider outcome before retrying. PATCH /v1/bookings/{id}/analysis is reserved for authorized system analysis of that exact retained meeting.

List bookings

GET /v1/bookings

Returns a page of the team's bookings: appointments for a bookable service, events from the connected calendar and bookings imported from other systems, each with its status and times. Pass lead for one lead's bookings.

Scopes
calendar:read
Rate limit
Sync

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    The next_cursor of the previous page. Omit it for the first page.

  • lead string ID prefix lead_…

    Only the bookings linked to this lead: every item's lead is this id. A lead of another team, or one that does not exist, matches nothing.

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Returns

Returns a list of Booking objects.

  • object string

    Always list.

  • data Array<Booking>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/bookings
curl 'https://api.totemstudio.ai/v1/bookings?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
      "object": "booking",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "kind": "service_booking",
      "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
      "status": "scheduled",
      "starts_at": "2026-10-06T15:00:00.000Z",
      "ends_at": "2026-10-06T15:30:00.000Z",
      "meeting_type": "in_person",
      "source": "ai",
      "rescheduled_from": null,
      "rescheduled_to": null,
      "created_at": "2026-10-01T09:01:00.000Z",
      "version": 1,
      "updated_at": "2026-10-01T09:01:02.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Book a current offer

POST /v1/bookings

Accepts one current encrypted offer as a durable operation and revalidates service, capacity, current lead and provider authority before effects. Payment-required outcomes return a payment receipt and never claim a confirmed booking. Reuse the same Idempotency-Key after an uncertain acknowledgement; never repeat an outcome_unknown operation.

Scopes
calendar:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Book one current offer for this lead. Contact destinations come from the current lead.

  • lead_id string Required ID prefix lead_…

    Current lead in the selected team.

  • offer string Required 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

  • customer_name string Required 1–300 chars

    Customer display name on the booking.

  • notes string ≤ 10000 chars

    Optional booking notes.

  • payment_reference string 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

Returns

Returns an Operation object.

Errors

+ 12 common errors

POST /v1/bookings
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/bookings' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG", "offer": "tcal1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "customer_name": "Alex Rivera"}'
Response · 202JSON
{
  "object": "operation",
  "id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
  "status": "queued",
  "endpoint": "bookings.create",
  "created_at": "2026-10-01T09:30:00.000Z",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "result": null,
  "error": null
}

Get a booking

GET /v1/bookings/{id}

Returns one booking by its id. A booking this key cannot read, or one that was removed, answers 404 resource_missing.

Scopes
calendar:read
Rate limit
Read

Path parameters

  • id string Required ID prefix bkg_…

    The booking's public id.

Returns

Returns a Booking object.

Errors

+ 12 common errors

GET /v1/bookings/{id}
curl 'https://api.totemstudio.ai/v1/bookings/bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
  "object": "booking",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "kind": "service_booking",
  "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "status": "scheduled",
  "starts_at": "2026-10-06T15:00:00.000Z",
  "ends_at": "2026-10-06T15:30:00.000Z",
  "meeting_type": "in_person",
  "source": "ai",
  "rescheduled_from": null,
  "rescheduled_to": null,
  "created_at": "2026-10-01T09:01:00.000Z",
  "version": 1,
  "updated_at": "2026-10-01T09:01:02.000Z"
}

Update dispatched meeting analysis

PATCH /v1/bookings/{id}/analysis

Processes one system-analyzer callback for the current retained meeting artifact and exact booking incarnation under current delegation and source-bound context. Updates only summary and sentiment; the receipt never claims deferred work completed. The original dispatch admits one logical callback; reuse its Idempotency-Key after uncertainty.

Scopes
calendar:analysis:write
Rate limit
write

Path parameters

  • id string Required ID prefix bkg_…

    The booking's public id.

Headers

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

System-analysis-only meeting summary callback.

  • summary string ≤ 8000 chars

    Fallback analyzer summary for the exact retained meeting artifact.

  • sentiment string ≤ 120 chars

    Meeting summary sentiment, without lead custom-field synchronization or notes.

Returns

Returns an AnalysisReceipt object.

Errors

+ 12 common errors

PATCH /v1/bookings/{id}/analysis
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X PATCH 'https://api.totemstudio.ai/v1/bookings/bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0/analysis' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"summary": "The customer requested a revised proposal."}'
Response · 200JSON
{
  "object": "analysis_receipt",
  "resource_kind": "meeting",
  "summary_updated": true,
  "custom_values_updated": false,
  "finite_status": "deferred"
}

Read current booking availability

POST /v1/bookings/availability

Returns bounded service-option choices and encrypted offers bound to this integration, team and lead; select an option when several are returned. Offers expire within fifteen minutes while provider resources and raw slot proofs stay private. This read reserves no capacity.

Scopes
calendar:availability:read
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Read current availability or choose one of the returned service options.

  • lead_id string Required ID prefix lead_…

    Current lead in the selected team.

  • service_id string Required ID prefix svc_…

    Current bookable service.

  • option string 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

  • additional_services Array<object> 1–4 items

    Up to four additional services for one joint Koibox visit. Resolve multi-option choices first; never compare independent starts to infer an overlap.

  • from_at string Format date-time

    An instant in UTC.

  • to_at string Format date-time

    An instant in UTC.

  • party_size integer Range 1–10000

    People attending, when supported by this service.

  • resource_units integer Range 1–10000

    Resource units required by this service.

  • booking_page string 1–160 chars

    Published booking page slug when required to disambiguate staffing.

Returns

Returns a BookingAvailability object.

Errors

+ 12 common errors

POST /v1/bookings/availability
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/bookings/availability' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG", "service_id": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5"}'
Response · 200JSON
{
  "object": "booking_availability",
  "service_id": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "timezone": "Europe/Madrid",
  "expires_at": "2026-10-01T09:30:00.000Z",
  "options": [],
  "slots": []
}

Inspect a current booking for management

GET /v1/bookings/{id}/management

Returns the current canonical booking projection and its action ETag from the same source snapshot. Use that ETag in If-Match when cancelling or moving the booking. This management view has no capture version and does not alter the existing versioned booking inventory.

Scopes
calendar:write
Rate limit
Read

Path parameters

  • id string Required ID prefix bkg_…

    The booking's public id.

Returns

Returns a BookingManagement object.

Errors

+ 12 common errors

GET /v1/bookings/{id}/management
curl 'https://api.totemstudio.ai/v1/bookings/bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0/management' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "kind": "service_booking",
  "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "status": "scheduled",
  "starts_at": "2026-10-06T15:00:00.000Z",
  "ends_at": "2026-10-06T15:30:00.000Z",
  "meeting_type": "in_person",
  "source": "ai",
  "rescheduled_from": null,
  "rescheduled_to": null,
  "created_at": "2026-10-01T09:01:00.000Z",
  "object": "booking_management",
  "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
  "etag": "\"bka_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
}

Read current bookings for a lead

POST /v1/bookings/for-lead

Lists up to twenty currently manageable bookings of the authorized canonical lead with current action ETags. Hosted assistants remain restricted to their current retained conversation lead and permitted services. complete is false when the bounded source query may omit further records.

Scopes
calendar:write
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Current bookings of the authorized lead.

  • lead_id string Required ID prefix lead_…

    Current lead in the selected team.

  • from_at string Format date-time

    An instant in UTC.

  • to_at string Format date-time

    An instant in UTC.

Returns

Returns a BookingManagementList object.

Errors

+ 12 common errors

POST /v1/bookings/for-lead
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/bookings/for-lead' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG"}'
Response · 200JSON
{
  "object": "booking_management_list",
  "data": [
    {
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "kind": "service_booking",
      "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
      "status": "scheduled",
      "starts_at": "2026-10-06T15:00:00.000Z",
      "ends_at": "2026-10-06T15:30:00.000Z",
      "meeting_type": "in_person",
      "source": "ai",
      "rescheduled_from": null,
      "rescheduled_to": null,
      "created_at": "2026-10-01T09:01:00.000Z",
      "object": "booking_management",
      "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
      "etag": "\"bka_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
    }
  ],
  "complete": true
}

Cancel a reviewed booking

POST /v1/bookings/{id}/cancel

Accepts canonical cancellation of this owned booking using the management view ETag. Ownership, source incarnation and current version are checked before the actual provider action. An uncertain provider result remains unknown; cancellation of an operation is not a claim that an already accepted booking action was undone.

Scopes
calendar:write
Rate limit
write

Path parameters

  • id string Required ID prefix bkg_…

    The booking's public id.

Headers

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"bka_[a-f0-9]{64}"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Returns

Returns an Operation object.

Errors

+ 12 common errors

POST /v1/bookings/{id}/cancel
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/bookings/bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0/cancel' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{}'
Response · 202JSON
{
  "object": "operation",
  "id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
  "status": "queued",
  "endpoint": "bookings.cancel",
  "created_at": "2026-10-01T09:30:00.000Z",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "result": null,
  "error": null
}

Move a reviewed booking

POST /v1/bookings/{id}/reschedule

Moves the owned booking to the requested instant while preserving canonical service, professional, capacity and paid-reservation rules. Use the current management ETag. Replacement and cancellation receipts follow the canonical lifecycle; an accepted replacement is never deleted merely because its local receipt became uncertain.

Scopes
calendar:write
Rate limit
write

Path parameters

  • id string Required ID prefix bkg_…

    The booking's public id.

Headers

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"bka_[a-f0-9]{64}"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Move the owned booking while preserving its service, professional and payment rules.

  • starts_at string Required Format date-time

    An instant in UTC.

Returns

Returns an Operation object.

Errors

+ 12 common errors

POST /v1/bookings/{id}/reschedule
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/bookings/bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0/reschedule' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"starts_at": "2026-11-06T15:00:00.000Z"}'
Response · 202JSON
{
  "object": "operation",
  "id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
  "status": "queued",
  "endpoint": "bookings.reschedule",
  "created_at": "2026-10-01T09:30:00.000Z",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "result": null,
  "error": null
}

List bookable services

GET /v1/booking_services

Lists every bookable service of the team in one response that is never paged and takes no limit or cursor. Bookable services are not in the changes feed: read this list when you start syncing a team, again when a booking names a service you do not know, and at least once a day. A deleted service drops out of the list while its bookings keep naming its id, so keep a service name you need from an earlier read.

Scopes
calendar:read
Rate limit
Sync

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Returns

Returns a list of BookingService objects.

  • object string

    Always list.

  • data Array<BookingService>

    Every bookable service of the team.

  • has_more boolean

    Always false: this list is never paged.

  • next_cursor null Nullable

    Always null: there is no next page.

Errors

+ 12 common errors

GET /v1/booking_services
curl 'https://api.totemstudio.ai/v1/booking_services' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
      "object": "booking_service",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "name": "First visit",
      "meeting_type": "in_person"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Discover current booking services

POST /v1/booking_services/options

Reads current enabled services, descriptive options, public payment terms and published booking pages, preserving hosted assistant allowlists. No lead or captured inventory is required; availability supplies actionable option and slot references. The cursor is bound to this integration and current source configuration.

Scopes
calendar:availability:read
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Read current services without a lead or captured inventory.

  • query string ≤ 200 chars

    Ranks recognizable service names without hiding permitted fallbacks.

  • limit integer Range 1–50

    Maximum services in this page, from 1 to 50.

  • cursor string ≤ 16384 chars Pattern ^tcnt1\.[A-Za-z0-9_-]+$

    Opaque cursor from this principal, source and search.

Returns

Returns a CalendarServiceOptionsResult object.

Errors

+ 12 common errors

POST /v1/booking_services/options
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/booking_services/options' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{}'
Response · 200JSON
{
  "object": "booking_service_options",
  "data": [],
  "timezone": "Europe/Madrid",
  "complete": true,
  "next_cursor": null
}

Read current booking payments

POST /v1/booking-payments/get

Reads at most five owned current payment requests and active checkout URLs, revalidating the merchant and current checkout generation through the canonical payment ledger. Payment completion is verified with the merchant provider, never inferred from a caller flag. Raw Stripe accounts, sessions and customer records remain private.

Scopes
calendar:payments:read
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Read current owned booking-payment requests.

  • lead_id string Required ID prefix lead_…

    Current lead in the selected team.

  • reference string 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

Returns

Returns a BookingPaymentList object.

Errors

+ 12 common errors

POST /v1/booking-payments/get
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/booking-payments/get' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG"}'
Response · 200JSON
{
  "object": "booking_payment_list",
  "payments": [
    {
      "object": "booking_payment",
      "reference": "tcal1.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "status": "pending",
      "amount_minor": 2500,
      "currency": "EUR",
      "checkout_url": null,
      "slot_held": false,
      "hold_expires_at": null,
      "booking_id": null
    }
  ],
  "complete": true
}

The Booking object

A booking and its kind: an appointment for a bookable service, an event from the connected calendar, or a booking imported from another system.

Attributes

  • id string ID prefix bkg_…

    Public id of the record.

  • object string

    Always booking.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team this record belongs to.

  • lead string Nullable ID prefix lead_…

    The lead this booking belongs to, or null for a booking without a lead or when the lead no longer exists. Names and contact details appear only on the lead.

  • kind string

    service_booking (booked for a bookable service, by the AI, a customer or a person), calendar_event (an event from the connected calendar) or external_import (synced from an external booking system or read from a portal email). A booking from an origin this version does not know is reported as calendar_event.

    Possible values
    • service_booking
    • calendar_event
    • external_import
  • service string Nullable ID prefix svc_…

    The booked service (see /booking_services) on a service_booking; null otherwise.

  • status string Nullable

    scheduled, rescheduled, cancelled, postponed, attended, no_show or team_no_show (attendance is recorded only by people); null for a value this version does not know. rescheduled means the booking was moved in place and its times are the new ones; a booking the AI replaced with a new one reads cancelled, with rescheduled_to set.

    Possible values
    • scheduled
    • rescheduled
    • cancelled
    • postponed
    • attended
    • no_show
    • team_no_show
  • starts_at string Nullable Format date-time

    When the booking starts (UTC).

  • ends_at string Nullable Format date-time

    When the booking ends (UTC).

  • meeting_type string Nullable

    online, in_person or phone; null when not stored.

    Possible values
    • online
    • in_person
    • phone
  • source string Nullable

    Who booked it: ai, customer, operator or an authorized integration; null when not recorded.

    Possible values
    • ai
    • customer
    • operator
    • integration
  • rescheduled_from string Nullable ID prefix bkg_…

    The booking this one replaced in a reschedule, or null. For a few seconds the replaced booking can still read scheduled; bookings rescheduled before Totem started recording this link may not have it.

  • rescheduled_to string Nullable ID prefix bkg_…

    The booking that replaced this one in a reschedule, or null. When it is set, this booking reads cancelled.

  • created_at string Nullable Format date-time

    When the booking was recorded in Totem (UTC).

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

Booking · exampleJSON
{
  "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
  "object": "booking",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "kind": "service_booking",
  "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "status": "scheduled",
  "starts_at": "2026-10-06T15:00:00.000Z",
  "ends_at": "2026-10-06T15:30:00.000Z",
  "meeting_type": "in_person",
  "source": "ai",
  "rescheduled_from": null,
  "rescheduled_to": null,
  "created_at": "2026-10-01T09:01:00.000Z",
  "version": 1,
  "updated_at": "2026-10-01T09:01:02.000Z"
}

The BookingService object

A service customers can book, with its meeting type.

Attributes

  • id string ID prefix svc_…

    Public id of the record.

  • object string

    Always booking_service.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team this record belongs to.

  • name string Nullable ≥ 1 chars

    The service's name, or null when none is stored.

  • meeting_type string

    How the service happens: online (the default when none is stored), in_person or phone.

    Possible values
    • online
    • in_person
    • phone
BookingService · exampleJSON
{
  "id": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "object": "booking_service",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "name": "First visit",
  "meeting_type": "in_person"
}

The CalendarServiceOptionsResult object

Source-backed service discovery for tenant integrations and actual hosted assistants.

Attributes

  • object string

    Always booking_service_options.

  • data Array<object> ≤ 50 items

    Current permitted services in this page.

  • timezone string 1–128 chars

    Team business timezone.

  • complete boolean

    Whether the current search has no further page.

  • next_cursor string Nullable ≤ 16384 chars

    Opaque next-page cursor, or null.

CalendarServiceOptionsResult · exampleJSON
{
  "object": "booking_service_options",
  "data": [],
  "timezone": "Europe/Madrid",
  "complete": true,
  "next_cursor": null
}

The BookingAvailability object

Bounded public choices and offers without provider or raw resource identifiers.

Attributes

  • object string

    Always booking_availability.

  • service_id string ID prefix svc_…

    Selected service.

  • timezone string 1–100 chars

    Current business timezone.

  • expires_at string Format date-time

    An instant in UTC.

  • options Array<object> ≤ 50 items

    Current permitted service options. Select one when several are returned.

  • slots Array<object> ≤ 20 items

    Bounded available slots with opaque offers; reading them does not reserve capacity.

BookingAvailability · exampleJSON
{
  "object": "booking_availability",
  "service_id": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "timezone": "Europe/Madrid",
  "expires_at": "2026-10-01T09:30:00.000Z",
  "options": [],
  "slots": []
}

The BookingManagement object

Fresh management projection and action ETag from the same source snapshot; not a capture version.

Attributes

  • team string ID prefix team_…

    The team this record belongs to.

  • lead string Nullable ID prefix lead_…

    The lead this booking belongs to, or null for a booking without a lead or when the lead no longer exists. Names and contact details appear only on the lead.

  • kind string

    service_booking (booked for a bookable service, by the AI, a customer or a person), calendar_event (an event from the connected calendar) or external_import (synced from an external booking system or read from a portal email). A booking from an origin this version does not know is reported as calendar_event.

    Possible values
    • service_booking
    • calendar_event
    • external_import
  • service string Nullable ID prefix svc_…

    The booked service (see /booking_services) on a service_booking; null otherwise.

  • status string Nullable

    scheduled, rescheduled, cancelled, postponed, attended, no_show or team_no_show (attendance is recorded only by people); null for a value this version does not know. rescheduled means the booking was moved in place and its times are the new ones; a booking the AI replaced with a new one reads cancelled, with rescheduled_to set.

    Possible values
    • scheduled
    • rescheduled
    • cancelled
    • postponed
    • attended
    • no_show
    • team_no_show
  • starts_at string Nullable Format date-time

    When the booking starts (UTC).

  • ends_at string Nullable Format date-time

    When the booking ends (UTC).

  • meeting_type string Nullable

    online, in_person or phone; null when not stored.

    Possible values
    • online
    • in_person
    • phone
  • source string Nullable

    Who booked it: ai, customer, operator or an authorized integration; null when not recorded.

    Possible values
    • ai
    • customer
    • operator
    • integration
  • rescheduled_from string Nullable ID prefix bkg_…

    The booking this one replaced in a reschedule, or null. For a few seconds the replaced booking can still read scheduled; bookings rescheduled before Totem started recording this link may not have it.

  • rescheduled_to string Nullable ID prefix bkg_…

    The booking that replaced this one in a reschedule, or null. When it is set, this booking reads cancelled.

  • created_at string Nullable Format date-time

    When the booking was recorded in Totem (UTC).

  • object string

    Always booking_management.

  • id string ID prefix bkg_…

    Current booking.

  • etag string Pattern ^"bka_[a-f0-9]{64}"$

    Strong action validator from this exact current source; use it in If-Match for cancellation or rescheduling.

BookingManagement · exampleJSON
{
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "kind": "service_booking",
  "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
  "status": "scheduled",
  "starts_at": "2026-10-06T15:00:00.000Z",
  "ends_at": "2026-10-06T15:30:00.000Z",
  "meeting_type": "in_person",
  "source": "ai",
  "rescheduled_from": null,
  "rescheduled_to": null,
  "created_at": "2026-10-01T09:01:00.000Z",
  "object": "booking_management",
  "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
  "etag": "\"bka_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
}

The BookingManagementList object

Current authorized lead bookings, with explicit completeness.

Attributes

  • object string

    Always booking_management_list.

  • data Array<BookingManagement> ≤ 20 items

    At most twenty current manageable bookings for the authorized lead.

  • complete boolean

    False when the bounded query may omit additional owned bookings.

BookingManagementList · exampleJSON
{
  "object": "booking_management_list",
  "data": [
    {
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "kind": "service_booking",
      "service": "svc_h42kgwwJGPzsm2Zoy1A1RBv1KIrX5",
      "status": "scheduled",
      "starts_at": "2026-10-06T15:00:00.000Z",
      "ends_at": "2026-10-06T15:30:00.000Z",
      "meeting_type": "in_person",
      "source": "ai",
      "rescheduled_from": null,
      "rescheduled_to": null,
      "created_at": "2026-10-01T09:01:00.000Z",
      "object": "booking_management",
      "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
      "etag": "\"bka_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\""
    }
  ],
  "complete": true
}

The BookingReceipt object

Minimal current-source booking outcome.

Attributes

  • object string

    Always booking_receipt.

  • id string ID prefix bkg_…

    Booking id.

  • status string

    Verified current booking outcome; unchanged means no new booking mutation.

    Possible values
    • scheduled
    • cancelled
    • rescheduled
    • unchanged
  • previous_id string Nullable ID prefix bkg_…

    Original booking when a reschedule replaced it, otherwise null.

BookingReceipt · exampleJSON
{
  "object": "booking_receipt",
  "id": "bkg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3ttMKHRR9ADk3N7Cr3NSuY0",
  "status": "scheduled",
  "previous_id": null
}

The BookingPayment object

Owned current payment metadata, never a raw Stripe record.

Attributes

  • object string

    Always booking_payment.

  • reference string 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

  • status string

    Current owned payment lifecycle; review needs reconciliation and consumed means applied to a booking.

    Possible values
    • pending
    • processing
    • paid
    • failed
    • refunded
    • review
    • consumed
  • amount_minor integer Range ≥ 0

    Current payment amount in minor currency units.

  • currency string Pattern ^[A-Z]{3}$

    Uppercase three-letter currency code.

  • checkout_url string Nullable Format uri

    Current active authenticated-merchant checkout URL; null when unavailable.

  • slot_held boolean

    Whether capacity is currently held for this payment.

  • hold_expires_at string Nullable Format date-time

    Current hold expiry in UTC, or null without an active hold.

  • booking_id string Nullable ID prefix bkg_…

    Current confirmed booking id when resolvable, otherwise null.

BookingPayment · exampleJSON
{
  "object": "booking_payment",
  "reference": "tcal1.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "status": "pending",
  "amount_minor": 2500,
  "currency": "EUR",
  "checkout_url": null,
  "slot_held": false,
  "hold_expires_at": null,
  "booking_id": null
}

The BookingPaymentList object

At most five current payment requests for the authorized lead.

Attributes

  • object string

    Always booking_payment_list.

  • payments Array<BookingPayment> ≤ 5 items

    Current owned payment requests, at most five.

  • complete boolean

    False when the bounded query may omit additional current requests.

BookingPaymentList · exampleJSON
{
  "object": "booking_payment_list",
  "payments": [
    {
      "object": "booking_payment",
      "reference": "tcal1.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
      "status": "pending",
      "amount_minor": 2500,
      "currency": "EUR",
      "checkout_url": null,
      "slot_held": false,
      "hold_expires_at": null,
      "booking_id": null
    }
  ],
  "complete": true
}

The BookingPaymentReceipt object

A payment request or link delivery is not a confirmed booking.

Attributes

  • object string

    Always booking_payment_receipt.

  • reference string 40–16384 chars Pattern ^tcal1\.[A-Za-z0-9_-]+$

    Server-issued opaque calendar reference; never parse or modify it.

  • outcome string

    Current payment requirement, reconciliation state or accepted link send.

    Possible values
    • payment_required
    • payment_processing
    • payment_review
    • link_sent
  • booking_confirmed boolean

    Always false: a payment request or sent link does not confirm a booking.

BookingPaymentReceipt · exampleJSON
{
  "object": "booking_payment_receipt",
  "reference": "tcal1.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "outcome": "payment_required",
  "booking_confirmed": false
}

API version 1.0.0