For the complete documentation index, see llms.txt. This page is also available as Markdown.

Appointments

One-off scheduled meetings or calls between a contact and staff, with starts_at / ends_at, an appointment type, and one or more responsible staff. Booking an appointment can trigger flows and is available to segments. Cancel with POST /appointments/{id}/cancel (keeps the record, status Cancelled) or DELETE (removes it).

Looking for a reusable booking page? See Calendars.

List appointments.

get

Filter by any of contact_id, responsible_id, appointment_type_id, status, and a starts_at range (gte/gt/lte/lt). Defaults to _id DESC (most-recently-created first). Pass ?sort=due_at (or -due_at) to sort server-side by the appointment's actual date/time instead; created_at/-created_at is also accepted as an alias for the default _id-based order.

Unlike most list endpoints, an omitted workroom defaults to the caller's own workroom, not account-wide β€” pass workroom=all for the old account-wide behavior. An explicit workroom id/name is unaffected either way.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

limitinteger Β· min: 1 Β· max: 100Optional

Page size. Default 25, max 100.

Default: 25
cursorstringOptional

Opaque cursor from a prior response's next_cursor, to fetch the NEXT page (alias - after). On listContacts and listSegmentContacts, use before with a prev_cursor to page backward; other list endpoints are forward-only.

sortstringOptional

Comma-separated list of fields to sort by. Leading - reverses. Default -created_at. Sortable fields vary per resource; unsortable fields return 400 invalid_sort_field.

Example: -created_at,email
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

OK

application/json
objectconst: listRequired
has_morebooleanRequired

True if additional records exist beyond this page.

next_cursorstring Β· nullableRequired

Opaque cursor for the next page. Null on the last page.

prev_cursorstring Β· nullableRequired

Cursor for the previous page. Supported on listContacts and listSegmentContacts: pass it back as ?before=... to page backward; null on the first page. On every other list endpoint paging is forward-only and this is always null.

get/appointments
GET /v3/appointments HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "object": "text",
  "data": [
    {
      "id": "text",
      "object": "appointment",
      "title": "text",
      "description": "text",
      "status": "Upcoming",
      "contact_id": "con_6a7eaec3505bea795709f897",
      "contact_name": "text",
      "contact_invite": true,
      "appointment_type_id": "text",
      "responsible_ids": [
        "text"
      ],
      "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
      "starts_at": "2026-01-01T00:00:00.000Z",
      "ends_at": "2026-01-01T00:00:00.000Z",
      "due_on": "2026-05-27T14:23:11.482Z",
      "start_time": "text",
      "end_time": "text",
      "google_event_id": "text",
      "microsoft_event_id": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z",
      "updated_at": "2026-05-27T14:23:11.482Z",
      "cancelled_at": "2026-05-27T14:23:11.482Z",
      "is_overdue": true
    }
  ],
  "has_more": true,
  "next_cursor": "text",
  "prev_cursor": "text"
}

Create an appointment.

post

A single scheduled meeting with a contact, at a fixed date and time. This is distinct from a Gleantap Calendar, which is a reusable bookable page other people use to schedule their own time; that is created with createCalendar. The phrases "calendar meeting" and "calendar invite" describe that bookable page rather than an appointment.

starts_at is required (ISO datetime). Storage splits it into legacy due_on (midnight of the date) + start_time (HH:MM). Every write mirrors to externalevents so segment-DSL predicates like appointments.status = Upcoming see the new record.

The distinction from a Calendar matters because the vocabulary overlaps: "calendar invite" and "calendar meeting" both name a reusable booking page (POST /calendars), even though "invite" and "meeting" sound appointment-like. This endpoint creates one specific, already-scheduled meeting with a real start time.

starts_at is required; ends_at is not, but an appointment without it has no length and renders no duration on a calendar. When both are given, ends_at must resolve to a later instant than starts_at - an end at or before the start is rejected. An appointment with no responsible_ids is unassigned. contact_id links the appointment to an existing contact; an appointment without it is not attached to anyone. appointment_type_id, if given, must match a real appointment type in this account - a well-formed but nonexistent id is rejected rather than saved as a dangling reference, and the error lists the account's existing types (or says none exist yet) so the caller can offer a pick-or-create choice. contact_id, if given as a raw id (not an external_id: reference), must likewise match a real contact in this account - rejected rather than saved as an orphaned reference linked to no one.

Requires the contact, the time and the appointment type. Optional fields fall back to a server-side default when omitted. That includes the workroom: an omitted workroom resolves to the account default, and a record created in the wrong workroom is invisible where it was expected. Half-specified records are created successfully and then have to be hunted down and fixed by hand.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
titlestringRequired
descriptionstringOptional
contact_idstringOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestringOptional

Optional; used when contact_id is missing.

contact_invitebooleanOptional

True β†’ the contact is emailed a calendar invite (.ics) on create, and a "Revised:" invite whenever title/description/type/staff/date/time later change. Default false.

calendar_idstringOptional

Optional booking calendar to link. Its reminders are copied onto the appointment (sent by the reminder job while status is Upcoming) and it is stored as the appointment's meeting_id, the same as a booking made on that calendar.

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
appointment_type_idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

starts_atstring Β· date-timeRequired

REQUIRED. ISO datetime; the model derives storage due_on + start_time from it. Must resolve to a future instant β€” a past value is rejected. An offset-less value is interpreted in the account's own configured timezone, not UTC. A value carrying Z or an offset is converted into the account's timezone before storage (the dashboard stores the account-local date + HH:MM), so it reads back as the same instant with the account's offset β€” e.g. 14:00:00Z in an Asia/Kolkata account reads back as 19:30:00+05:30; an offset-less 14:00:00 reads back as 14:00:00+05:30.

ends_atstring Β· date-timeOptional

No default β€” an appointment with no end time won't display a duration; confirm with the user or default to +30min if they say they don't care.

google_event_idstringOptional
microsoft_event_idstringOptional
created_bystringOptional

Defaults to the calling staff user, or the account owner for API keys. Newly assigned staff are emailed (subject to the workroom's CRM notification settings).

Pattern: ^usr_[0-9a-f]{24}$
Responses
201

Created.

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

post/appointments
POST /v3/appointments HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 375

{
  "title": "text",
  "description": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text"
}
{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

Retrieve one appointment.

get

Time, attendees, type, status and the linked contact. Times come back as starts_at/ends_at in ISO form.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

OK

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

get/appointments/{id}
GET /v3/appointments/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

Update an appointment (partial). Also mirrors to externalevents.

patch

Only send the fields that are changing - this is a true partial update, nothing is required. To change just one thing (e.g. contact_invite), you do not need to also re-send title or starts_at. If you change only one of starts_at/ends_at, the other is still checked against its current stored value - the effective end must stay after the effective start. Changing appointment_type_id or contact_id to a well-formed but nonexistent id is rejected rather than saved as a dangling/orphaned reference.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body

Partial update - every field is optional, only send what's changing. Deliberately a separate schema from AppointmentCreate rather than reusing it: that one requires title + starts_at, which would make a true partial update (e.g. just contact_invite) look invalid even though the backend does not actually require either field here.

titlestringOptional
descriptionstringOptional
statusstring Β· enumOptional

Setting Cancelled also stamps cancelled_on.

Possible values:
contact_idstringOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestringOptional

Used when contact_id is missing.

contact_invitebooleanOptional

True β†’ the contact is emailed a (revised) calendar invite when invite-relevant fields change.

calendar_idstring Β· nullableOptional

Link a booking calendar (re-copies its reminders); null unlinks.

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
appointment_type_idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

starts_atstring Β· date-timeOptional

ISO datetime. If you change it, it must resolve to a future instant - a past value is rejected UNLESS it is identical to the appointment's current starts_at (re-sending the same value never fails just because that moment has since passed). An offset-less value is interpreted in the account's own configured timezone, not UTC. A value carrying Z or an offset is converted into the account's timezone before storage (the dashboard stores the account-local date + HH:MM), so it reads back as the same instant with the account's offset β€” e.g. 14:00:00Z in an Asia/Kolkata account reads back as 19:30:00+05:30; an offset-less 14:00:00 reads back as 14:00:00+05:30.

ends_atstring Β· date-timeOptional
google_event_idstringOptional
microsoft_event_idstringOptional
Responses
200

OK

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

patch/appointments/{id}
PATCH /v3/appointments/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 375

{
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "google_event_id": "text",
  "microsoft_event_id": "text"
}
{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

Hard-delete an appointment + remove the mirrored externalevents row.

delete

Permanent. There is no undo and no trash to restore from. Anything that references the deleted record is affected too.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
204

Deleted.

No content

delete/appointments/{id}
DELETE /v3/appointments/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204

Deleted.

No content

Move an appointment to a new time in-place. Body `{starts_at, ends_at?}`.

post
Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
starts_atstring Β· date-timeRequired

New start. Must resolve to a future instant; an offset-less value is interpreted in the account's configured timezone, not UTC.

ends_atstring Β· date-timeOptional

New end. If omitted, the appointment's current end is kept and checked against the new starts_at - still must stay after it.

Responses
200

OK

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

post/appointments/{id}/reschedule
POST /v3/appointments/{id}/reschedule HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77

{
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z"
}
{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

Soft-cancel: sets status=Cancelled + mirrors to externalevents. To hard-delete, use DELETE /appointments/{id}.

post

Affects something real. This cancels a scheduled send or a booking a person is expecting.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

OK

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

post/appointments/{id}/cancel
POST /v3/appointments/{id}/cancel HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

Duplicate an appointment.

post

Clones the appointment (contact, type, responsible staff, time). Status resets to Upcoming, cancellation/activity history is cleared, and google_event_id/microsoft_event_id are NOT copied β€” the duplicate isn't linked to the source's calendar events. Unless title is overridden, it's suffixed " (copy)". The clone's effective starts_at (the override if one is given, otherwise the source's own date/time) must resolve to a future instant - same rule as createAppointment. Duplicating a past appointment without also passing a new, future starts_at in the body is rejected with a 422 telling you to supply one. The clone's effective ends_at must also stay after its effective starts_at, same as createAppointment. Overriding appointment_type_id or contact_id to a well-formed but nonexistent id is rejected rather than saved as a dangling/orphaned reference.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^apt_[0-9a-f]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body

All fields optional β€” overrides applied on top of the cloned appointment.

titlestringOptional

Defaults to "{original title} (copy)" when omitted.

descriptionstringOptional
contact_idstringOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestringOptional

Optional; used when contact_id is missing.

contact_invitebooleanOptional

True β†’ the contact is emailed a calendar invite for the copy.

appointment_type_idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

starts_atstring Β· date-timeOptional
ends_atstring Β· date-timeOptional
Responses
201

Duplicated appointment.

application/json
idstringOptionalPattern: ^apt_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestring Β· nullableOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
contact_idstring Β· nullableOptional

A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).

Example: con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$
contact_namestring Β· nullableOptional
contact_invitebooleanOptional
appointment_type_idstring Β· nullableOptionalPattern: ^atyp_[0-9a-f]{24}$
responsible_idsstring[]Optional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

calendar_idstring Β· nullableOptional

Booking calendar this appointment is linked to (legacy meeting_id).

Example: cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$
starts_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached (e.g. "2026-10-20T10:00:00-05:00") β€” the appointment start, in the account's own configured timezone. Combines due_on (date) + start_time (HH:MM).

ends_atstring Β· date-time Β· nullableOptional

ISO datetime with the account's real UTC offset attached, same as starts_at β€” the appointment end.

due_onstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
start_timestring Β· nullableOptional

HH:MM string (raw legacy field).

end_timestring Β· nullableOptional
google_event_idstring Β· nullableOptional
microsoft_event_idstring Β· nullableOptional
created_bystring Β· nullableOptional

A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.

Pattern: ^usr_[0-9a-f]{24}$
created_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
updated_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
cancelled_atstring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
is_overduebooleanRead-onlyOptional

Read-only. The dashboard's red "past date" flag: true when the appointment's date is before today in the WORKROOM's timezone. Date-only β€” start_time is ignored, so an appointment earlier today is not yet overdue β€” and status is NOT considered: a Completed or Cancelled appointment on a past date is also true, exactly as the dashboard paints it. Combine with status: Upcoming to find appointments that were never resolved. Computed at read time, never stored.

post/appointments/{id}/duplicate
POST /v3/appointments/{id}/duplicate HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 257

{
  "title": "text",
  "description": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z"
}
{
  "id": "text",
  "object": "appointment",
  "title": "text",
  "description": "text",
  "status": "Upcoming",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "contact_invite": true,
  "appointment_type_id": "text",
  "responsible_ids": [
    "text"
  ],
  "calendar_id": "cal_66d9a11d0e5b7c1a4d8e2f1e",
  "starts_at": "2026-01-01T00:00:00.000Z",
  "ends_at": "2026-01-01T00:00:00.000Z",
  "due_on": "2026-05-27T14:23:11.482Z",
  "start_time": "text",
  "end_time": "text",
  "google_event_id": "text",
  "microsoft_event_id": "text",
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "cancelled_at": "2026-05-27T14:23:11.482Z",
  "is_overdue": true
}

List appointment types (call, demo, walkthrough, etc.).

get

Defaults to _id DESC (most-recently-created first), 25 per page. Pass the response's next_cursor back as ?cursor=... to fetch the next page when has_more is true.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
limitinteger Β· min: 1 Β· max: 100Optional

Page size. Default 25, max 100.

Default: 25
cursorstringOptional

Opaque cursor from a prior response's next_cursor, to fetch the NEXT page (alias - after). On listContacts and listSegmentContacts, use before with a prev_cursor to page backward; other list endpoints are forward-only.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

OK

application/json
objectconst: listRequired
has_morebooleanRequired

True if additional records exist beyond this page.

next_cursorstring Β· nullableRequired

Opaque cursor for the next page. Null on the last page.

prev_cursorstring Β· nullableRequired

Cursor for the previous page. Supported on listContacts and listSegmentContacts: pass it back as ?before=... to page backward; null on the first page. On every other list endpoint paging is forward-only and this is always null.

get/appointment_types
GET /v3/appointment_types HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "object": "text",
  "data": [
    {
      "id": "text",
      "object": "appointment_type",
      "name": "text",
      "color": "text"
    }
  ],
  "has_more": true,
  "next_cursor": "text",
  "prev_cursor": "text"
}

Create an appointment type.

post

Requires a writable workroom (pass ?workroom=<name-or-id> if the token spans more than one). name must be unique within that workroom.

Requires the name and duration. Optional fields fall back to a server-side default when omitted. That includes the workroom: an omitted workroom resolves to the account default, and a record created in the wrong workroom is invisible where it was expected. Half-specified records are created successfully and then have to be hunted down and fixed by hand.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
namestringRequired

Required β€” the appointment type's display name (dashboard-facing). Must be unique within the workroom; a duplicate returns 409 appointment_type_conflict.

colorstringOptional

Hex background color used in the dashboard calendar UI. Optional.

Responses
201

Created.

application/json
idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
namestring Β· nullableOptional
colorstring Β· nullableOptional

Hex background color used in dashboard calendar UI.

post/appointment_types
POST /v3/appointment_types HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "name": "text",
  "color": "text"
}
{
  "id": "text",
  "object": "appointment_type",
  "name": "text",
  "color": "text"
}

Retrieve one appointment type.

get

A bookable meeting type β€” its name, default duration and the calendar it belongs to. Read-only.

An omitted workroom resolves to the account's default workroom, not the whole account - pass ?workroom=<name-or-id> (or the header) to reach a type that lives in a different workroom.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^atyp_[0-9a-f]{24}$
Header parameters
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

OK

application/json
idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
namestring Β· nullableOptional
colorstring Β· nullableOptional

Hex background color used in dashboard calendar UI.

get/appointment_types/{id}
GET /v3/appointment_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "id": "text",
  "object": "appointment_type",
  "name": "text",
  "color": "text"
}

Update an appointment type (partial).

patch

Renaming re-checks uniqueness within the workroom.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^atyp_[0-9a-f]{24}$
Header parameters
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
namestringOptional

Renaming re-checks uniqueness within the workroom; a conflict returns 409 appointment_type_conflict.

colorstringOptional
Responses
200

OK

application/json
idstringOptionalPattern: ^atyp_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
namestring Β· nullableOptional
colorstring Β· nullableOptional

Hex background color used in dashboard calendar UI.

patch/appointment_types/{id}
PATCH /v3/appointment_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "name": "text",
  "color": "text"
}
{
  "id": "text",
  "object": "appointment_type",
  "name": "text",
  "color": "text"
}

Delete an appointment type.

delete

Permanent. There is no undo and no trash to restore from. Anything that references the deleted record is affected too.

An omitted workroom resolves to the account's default workroom, not the whole account - pass ?workroom=<name-or-id> (or the header) to reach a type that lives in a different workroom.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequiredPattern: ^atyp_[0-9a-f]{24}$
Header parameters
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
204

Deleted.

No content

delete/appointment_types/{id}
DELETE /v3/appointment_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content