Threads API
List threads
Page through your threads, most recently updated first.
/api/v1/tasksReturns your threads, 20 at a time, most recently updated first, including archived ones. Listing reads saved metadata and never wakes a workspace.
To read the next page, pass the updatedAt and taskId from nextCursor as beforeUpdatedAt and beforeTaskId. When nextCursor is null you have every thread.
Requires a personal API token with the tasks:read scope, sent as Authorization: Bearer over HTTPS.
Query parameters
beforeUpdatedAtstring (ISO 8601)sometimes requirednextCursor.updatedAtfrom the previous page. Send it withbeforeTaskId.beforeTaskIdstring (UUID)sometimes requirednextCursor.taskIdfrom the previous page. Send it withbeforeUpdatedAt.
Returns
200 OK with one page of threads and the cursor for the next.
Response fields
tasksobject[]requiredUp to 20 threads.
tasks[].taskIdstring (UUID)requiredThe thread.
tasks[].titlestringrequiredTitle.
tasks[].sourceLabelstring | nullrequiredRepository or project name.
tasks[].statusSummarystringrequiredDerived status, as on Get a thread.
tasks[].updatedAtstring (ISO 8601)requiredLast change.
tasks[].archivedAtstring (ISO 8601) | nullrequiredSet when archived.
nextCursor{ updatedAt, taskId } | nullrequiredWhere the next page starts, or
nullon the last page.
Errors
Errors are JSON: { "version": 1, "error": { "code", "message" } }. See Errors for retry advice.
- 400
invalid_request Only one cursor parameter was sent, or one is malformed.
- 401
unauthorized The bearer token is missing, invalid or revoked.
- 403
forbidden The token does not have the
tasks:readscope, or the account is suspended.