Skip to main content
POST
/
v1
/
search
Search documents
curl --request POST \
  --url http://localhost:3000/v1/search \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "limit": 10,
  "offset": 0
}
'
{
  "results": [
    {
      "id": "<string>",
      "title": "<string>",
      "content": "<string>",
      "folderId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

API Key (sk...)

Body

application/json
query
string
required

Search query string

limit
integer
default:10

Maximum number of results to return

offset
integer
default:0

Number of results to skip

Response

Search results

results
object[]
total
integer

Total number of matching results