Sazabi
APISearch

Search threads

GET
/search/threads

Search threads within one project.

Query Parameters

projectId?string

Project to search within. Auto-filled from CLI and SDK context when omitted.

Formatuuid
query*string
Length1 <= length <= 500
limit?number

Maximum number of search results to return.

Range1 <= value <= 100
Default20
page?number

One-based page number.

Range1 <= value
Default1
status?string

Optional thread status filter.

Value in

  • "regular"
  • "archived"

Response Body

application/json

curl -X GET "https://example.com/search/threads?query=string"
{  "threads": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",      "title": "string",      "status": "regular",      "labels": [        "string"      ],      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "highlights": [        "string"      ],      "score": 0    }  ],  "pagination": {    "page": 0,    "limit": 0,    "totalResults": 0,    "totalPages": 0  }}