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

Tasks

Assignable tasks β€” usually calls, follow-ups, or reminders β€” with a title, due date, responsible staff, and a link to a contact. Includes recurring task templates and a task-type catalog.

List tasks in a workroom.

get

Tasks assigned to staff, with their status, due date, assignee and linked contact. Filterable by status, responsible_id, task_type_id, due_at ranges, contact_id and is_overdue (the dashboard's Overdue filter). Covers one-off tasks; recurring task definitions are listRecurringTasks.

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/tasks
GET /v3/tasks HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "object": "text",
  "data": [
    {
      "id": "text",
      "object": "task",
      "title": "text",
      "description": "text",
      "status": "Open",
      "task_type_id": "text",
      "contact_id": "con_6a7eaec3505bea795709f897",
      "contact_name": "text",
      "responsible_id": "text",
      "due_at": "2026-01-01T00:00:00.000Z",
      "due_time": "text",
      "recurring_task_id": "text",
      "attachment_url": "https://example.com",
      "notes": [
        {
          "note": "text",
          "created_by": "text",
          "created_at": "2026-05-27T14:23:11.482Z"
        }
      ],
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z",
      "updated_at": "2026-05-27T14:23:11.482Z",
      "completed_at": "2026-05-27T14:23:11.482Z",
      "completed_by": "text",
      "email_overdue": true,
      "is_overdue": true
    }
  ],
  "has_more": true,
  "next_cursor": "text",
  "prev_cursor": "text"
}
post

Requires the task name, who it is for and when it is due. 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
anyOptional
or
anyOptional
Responses
201

Created.

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

{
  "title": "text",
  "description": "text",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-05-27T14:23:11.482Z",
  "attachment_url": "https://example.com"
}
201

Created.

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}

Retrieve one task.

get

Full task record including status, due date, type, assignees, the linked contact and its notes.

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: ^tsk_[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
Responses
200

OK

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

OK

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}

Update a task's fields.

patch

Patch any subset of title, due date, type, assignees, priority or linked contact. Omitted fields are left unchanged. Marking a task done is completeTask, not a status patch β€” completion is what fires the after_completing sales-automation trigger.

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: ^tsk_[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
Body

Partial update. Same fields as TaskCreate, plus status β€” set it back to Open to reopen a Completed task, or to Completed to complete it (equivalent to POST /v3/tasks/{id}/complete with no completed_by). Reopening clears completed_at (as the dashboard does) and leaves completed_by untouched. contact_id cannot be changed after creation.

titlestringOptional
descriptionstringOptional
task_type_idstringOptionalPattern: ^tst_[0-9a-f]{24}$
responsible_idstringOptional

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}$
due_atstringOptional

RFC 3339 or YYYY-MM-DD (all-day); offset-less values are read in the account timezone.

attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Set to null to clear the existing attachment; omit to leave it untouched.

statusstring Β· enumOptional

Set to Open to reopen a completed task, or Completed to complete it.

Possible values:
Responses
200

OK

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

{
  "title": "text",
  "description": "text",
  "task_type_id": "text",
  "responsible_id": "text",
  "due_at": "text",
  "attachment_url": "https://example.com",
  "status": "Open"
}
200

OK

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}
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: ^tsk_[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
Responses
204

Deleted.

No content

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

Deleted.

No content

Mark a task Completed. Sets `completed_at` + optional `completed_by`.

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: ^tsk_[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
Body
completed_bystringOptional

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}$
Responses
200

OK

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

{
  "completed_by": "text"
}
200

OK

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}

Reassign a task to different staff.

post

Replaces the task's assignees. Distinct from updateTask so a reassignment is a single auditable action rather than a field patch.

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: ^tsk_[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
Body
responsible_idstringRequired

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}$
Responses
200

OK

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

{
  "responsible_id": "text"
}
200

OK

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}

Add a note to a task.

post

Appends a timestamped note to the task's activity trail, attributed to the authenticated user. Notes are append-only: there is no edit or delete.

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: ^tsk_[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
Body
notestringRequired
created_bystringOptional

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}$
Responses
201

Note appended.

application/json
idstringOptionalPattern: ^tsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
titlestringOptional
descriptionstring Β· nullableOptional
statusstring Β· enumOptionalPossible values:
task_type_idstring Β· nullableOptionalPattern: ^tst_[0-9a-f]{24}$
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
responsible_idstring Β· 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}$
due_atstring Β· date-time Β· nullableOptional

Due date + time with the account's UTC offset. Stored the dashboard way: the date in due_on and the wall-clock time in due_on_time. A date-only task (no time) renders as local midnight with due_time: null.

due_timestring Β· nullableOptional

Due time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).

recurring_task_idstring Β· nullableOptional

Set when this task is an occurrence of a recurring task.

Pattern: ^rtsk_[0-9a-f]{24}$
attachment_urlstring Β· uri Β· nullableOptional

Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.

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
completed_atstring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
completed_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}$
email_overduebooleanOptional
is_overduebooleanRead-onlyOptional

Read-only. True when the dashboard shows this task as Overdue: status is not Completed and the due moment has passed in the WORKROOM's timezone (the workroom's own timezone, falling back to the account's). A timed task is overdue once its due_time passes; a date-only task from the day after its due date. Computed at read time, never stored.

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

{
  "note": "text",
  "created_by": "text"
}
201

Note appended.

{
  "id": "text",
  "object": "task",
  "title": "text",
  "description": "text",
  "status": "Open",
  "task_type_id": "text",
  "contact_id": "con_6a7eaec3505bea795709f897",
  "contact_name": "text",
  "responsible_id": "text",
  "due_at": "2026-01-01T00:00:00.000Z",
  "due_time": "text",
  "recurring_task_id": "text",
  "attachment_url": "https://example.com",
  "notes": [
    {
      "note": "text",
      "created_by": "text",
      "created_at": "2026-05-27T14:23:11.482Z"
    }
  ],
  "created_by": "text",
  "created_at": "2026-05-27T14:23:11.482Z",
  "updated_at": "2026-05-27T14:23:11.482Z",
  "completed_at": "2026-05-27T14:23:11.482Z",
  "completed_by": "text",
  "email_overdue": true,
  "is_overdue": true
}

List task types (call, demo, email, etc.).

get
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
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/task_types
GET /v3/task_types HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

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

Retrieve one task type.

get

A task category as configured for the workroom. Read-only: task types are managed in the dashboard.

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: ^tst_[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
Responses
200

OK

application/json
idstringOptionalPattern: ^tst_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
namestringOptional
descriptionstring Β· nullableOptional
get/task_types/{id}
GET /v3/task_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "id": "text",
  "object": "task_type",
  "name": "text",
  "description": "text"
}

List recurring task definitions.

get

The templates that generate tasks on a schedule, as opposed to the task instances themselves (listTasks). Read-only: these are authored in the dashboard.

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
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/recurring_tasks
GET /v3/recurring_tasks HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "object": "text",
  "data": [
    {
      "id": "text",
      "object": "recurring_task",
      "status": "text",
      "frequency": 1,
      "frequency_type": "day",
      "start_date": "2026-05-27T14:23:11.482Z",
      "end_date": "2026-05-27T14:23:11.482Z",
      "end_type": "occurrence",
      "end_value": null,
      "completed_occurrence": 1,
      "next_recursion_date": "text",
      "parent_task_id": "text"
    }
  ],
  "has_more": true,
  "next_cursor": "text",
  "prev_cursor": "text"
}

Retrieve one recurring task definition.

get

Its schedule, assignees and the task template it generates from. Read-only.

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: ^rtsk_[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
Responses
200

OK

application/json
idstringOptionalPattern: ^rtsk_[0-9a-f]{24}$
objectstring Β· enumOptionalPossible values:
statusstringOptional
frequencyintegerOptional
frequency_typestring Β· enumOptionalPossible values:
start_datestring Β· date-timeOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
end_datestring Β· date-time Β· nullableOptional

RFC 3339 timestamp, always UTC, millisecond precision.

Example: 2026-05-27T14:23:11.482Z
end_typestring Β· enumOptionalPossible values:
end_valueanyOptional

Count when end_type=occurrence; date when end_type=date.

completed_occurrenceintegerOptional
next_recursion_datestring Β· nullableOptional
parent_task_idstring Β· nullableOptionalPattern: ^tsk_[0-9a-f]{24}$
get/recurring_tasks/{id}
GET /v3/recurring_tasks/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

OK

{
  "id": "text",
  "object": "recurring_task",
  "status": "text",
  "frequency": 1,
  "frequency_type": "day",
  "start_date": "2026-05-27T14:23:11.482Z",
  "end_date": "2026-05-27T14:23:11.482Z",
  "end_type": "occurrence",
  "end_value": null,
  "completed_occurrence": 1,
  "next_recursion_date": "text",
  "parent_task_id": "text"
}