List threads for an assistant

Retrieve a list of conversation threads for the specified assistant, ordered by creation date (most recent first)

get/v1/threads

Request

  • Base URL
    https://api.runbear.io
  • Auth
    HTTP bearer

Query parameters

assistant_idstring uuid required

Unique identifier of the assistant

Example:0fade940-133f-49e6-bf4b-8f662186479b
limitinteger

Maximum number of threads to return in this page (1–100). Defaults to 100.

Example:100
cursorstring

Opaque pagination cursor. Pass the nextCursor from a previous response to fetch the next page of threads (ordered most-recent first). Omit on the first request.

Response

Default Response

nextCursorstring nullable required

Opaque cursor for the next page, or null when there are no more threads. Pass it back as the cursor query parameter to retrieve the next page.

Example response

{
  "threads": [
    {
      "id": "0fade940-133f-49e6-bf4b-8f662186479b",
      "createdAt": "2022-01-01T00:00:00.000Z",
      "title": "My first thread"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.