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.
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.
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/tasks HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}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.
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 Test1Created.
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /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"
}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
}Full task record including status, due date, type, assignees, the linked contact and its notes.
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.
^tsk_[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_59fca1e3d2a57d28a10b0442OK
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /v3/tasks/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
}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.
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.
^tsk_[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_59fca1e3d2a57d28a10b0442Partial 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.
^tst_[0-9a-f]{24}$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 or YYYY-MM-DD (all-day); offset-less values are read in the account timezone.
Only one attachment is supported per task, matching the dashboard. Set to null to clear the existing attachment; omit to leave it untouched.
Set to Open to reopen a completed task, or Completed to complete it.
OK
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /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"
}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
}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.
^tsk_[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_59fca1e3d2a57d28a10b0442Deleted.
No content
DELETE /v3/tasks/{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.
^tsk_[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_59fca1e3d2a57d28a10b0442A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$OK
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /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"
}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
}Replaces the task's assignees. Distinct from updateTask so a reassignment is a single auditable action rather than a field patch.
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.
^tsk_[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_59fca1e3d2a57d28a10b0442A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$OK
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /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"
}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
}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.
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.
^tsk_[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_59fca1e3d2a57d28a10b0442A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$Note appended.
^tsk_[0-9a-f]{24}$^tst_[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:[^/]+$A staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 time of day, "HH:MM" in the account timezone; null for a date-only task (overdue from the next day).
Set when this task is an occurrence of a recurring task.
^rtsk_[0-9a-f]{24}$Only one attachment is supported per task, matching the dashboard. Legacy storage: attachments[0].path.
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.482ZA staff user (from the legacy users collection). Used for owner_id, responsible_id, created_by, assigned_to, etc.
^usr_[0-9a-f]{24}$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 /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"
}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
}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.
25Minor 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/task_types HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"object": "text",
"data": [
{
"id": "text",
"object": "task_type",
"name": "text",
"description": "text"
}
],
"has_more": true,
"next_cursor": "text",
"prev_cursor": "text"
}A task category as configured for the workroom. Read-only: task types are managed in the dashboard.
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.
^tst_[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_59fca1e3d2a57d28a10b0442OK
^tst_[0-9a-f]{24}$GET /v3/task_types/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"id": "text",
"object": "task_type",
"name": "text",
"description": "text"
}The templates that generate tasks on a schedule, as opposed to the task instances themselves (listTasks). Read-only: these are authored in the dashboard.
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.
25Minor 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/recurring_tasks HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}Its schedule, assignees and the task template it generates from. Read-only.
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.
^rtsk_[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_59fca1e3d2a57d28a10b0442OK
^rtsk_[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.482ZCount when end_type=occurrence; date when end_type=date.
^tsk_[0-9a-f]{24}$GET /v3/recurring_tasks/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}