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.
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.
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.
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.
Page size. Default 25, max 100.
25Opaque 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.
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.
-created_at,emailMinor 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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1OK
True if additional records exist beyond this page.
Opaque cursor for the next page. Null on the last page.
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 /v3/appointments HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}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.
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.
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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$Optional; used when contact_id is missing.
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.
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.
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
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.
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.
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).
^usr_[0-9a-f]{24}$Created.
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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.
Semantic validation failed β the request is well-formed but references an object in the wrong state (e.g., sending to an opted-out contact).
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
}Time, attendees, type, status and the linked contact. Times come back as starts_at/ends_at in ISO form.
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.
^apt_[0-9a-f]{24}$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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1OK
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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 /v3/appointments/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
}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.
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.
^apt_[0-9a-f]{24}$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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1Partial 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.
Setting Cancelled also stamps cancelled_on.
A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$Used when contact_id is missing.
True β the contact is emailed a (revised) calendar invite when invite-relevant fields change.
Link a booking calendar (re-copies its reminders); null unlinks.
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
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.
OK
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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.
Request could not be parsed or failed validation.
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
}Permanent. There is no undo and no trash to restore from. Anything that references the deleted record is affected too.
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.
^apt_[0-9a-f]{24}$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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1Deleted.
No content
DELETE /v3/appointments/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Deleted.
No content
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.
^apt_[0-9a-f]{24}$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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1New start. Must resolve to a future instant; an offset-less value is interpreted in the account's configured timezone, not UTC.
New end. If omitted, the appointment's current end is kept and checked against the new starts_at - still must stay after it.
OK
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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.
Request could not be parsed or failed validation.
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}.
Affects something real. This cancels a scheduled send or a booking a person is expecting.
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.
^apt_[0-9a-f]{24}$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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1OK
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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 /v3/appointments/{id}/cancel HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
}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.
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.
^apt_[0-9a-f]{24}$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.
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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1All fields optional β overrides applied on top of the cloned appointment.
Defaults to "{original title} (copy)" when omitted.
A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$Optional; used when contact_id is missing.
True β the contact is emailed a calendar invite for the copy.
^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Duplicated appointment.
^apt_[0-9a-f]{24}$A contact ID. Accepts either the native prefixed id (con_<24-hex>) or an external-ID reference (external_id:<your_id>).
con_6a7eaec3505bea795709f897Pattern: ^con_[0-9a-f]{24}$|^external_id:[^/]+$^atyp_[0-9a-f]{24}$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
Booking calendar this appointment is linked to (legacy meeting_id).
cal_66d9a11d0e5b7c1a4d8e2f1ePattern: ^cal_[0-9a-fA-F]{24}$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).
ISO datetime with the account's real UTC offset attached, same as starts_at β the appointment end.
RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZHH:MM string (raw legacy field).
A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$RFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRFC 3339 timestamp, always UTC, millisecond precision.
2026-05-27T14:23:11.482ZRead-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.
The resource doesn't exist or isn't visible to this caller.
Semantic validation failed β the request is well-formed but references an object in the wrong state (e.g., sending to an opted-out contact).
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
}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.
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.
Page size. Default 25, max 100.
25Opaque 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.
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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1OK
True if additional records exist beyond this page.
Opaque cursor for the next page. Null on the last page.
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 /v3/appointment_types HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"object": "text",
"data": [
{
"id": "text",
"object": "appointment_type",
"name": "text",
"color": "text"
}
],
"has_more": true,
"next_cursor": "text",
"prev_cursor": "text"
}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.
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.
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.
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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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=.
acc_59fca1e3d2a57d28a10b0442Which 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.
G Test1Required β the appointment type's display name (dashboard-facing). Must be unique within the workroom; a duplicate returns 409 appointment_type_conflict.
Hex background color used in the dashboard calendar UI. Optional.
Created.
^atyp_[0-9a-f]{24}$Hex background color used in dashboard calendar UI.
An appointment type with this name already exists in the workroom.
Semantic validation failed β the request is well-formed but references an object in the wrong state (e.g., sending to an opted-out contact).
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"
}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.
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.
^atyp_[0-9a-f]{24}$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=.
acc_59fca1e3d2a57d28a10b0442Minor 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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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.
G Test1OK
^atyp_[0-9a-f]{24}$Hex background color used in dashboard calendar UI.
GET /v3/appointment_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"id": "text",
"object": "appointment_type",
"name": "text",
"color": "text"
}Renaming re-checks uniqueness within the workroom.
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.
^atyp_[0-9a-f]{24}$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=.
acc_59fca1e3d2a57d28a10b0442Minor 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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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.
G Test1Renaming re-checks uniqueness within the workroom; a conflict returns 409 appointment_type_conflict.
OK
^atyp_[0-9a-f]{24}$Hex background color used in dashboard calendar UI.
The resource doesn't exist or isn't visible to this caller.
Another appointment type in this workroom already uses that name.
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"
}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.
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.
^atyp_[0-9a-f]{24}$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=.
acc_59fca1e3d2a57d28a10b0442Minor 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.
2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$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.
G Test1Deleted.
No content
The resource doesn't exist or isn't visible to this caller.
DELETE /v3/appointment_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content