v1

latestOpenAPI 3.0.02026-07-174565114.3 KB
v1

List threads

List all threads for the authenticated project. Supports cursor-based pagination and filtering by user key.

get/v1/threads

Query parameters

limitnumber

Maximum number of threads to return

cursorstring

Cursor for pagination

userKeystring

Filter by user key

Response

List of threads

nextCursorstring

Cursor for the next page of results

hasMoreboolean required

Whether there are more results

Example response

{
  "threads": [
    {
      "id": "thr_abc123xyz",
      "runStatus": "idle",
      "lastRunError": {
        "code": "INTERNAL_ERROR",
        "message": "An unexpected error occurred"
      },
      "createdAt": "2024-01-15T12:00:00Z",
      "updatedAt": "2024-01-15T12:05:00Z"
    }
  ]
}