POST
/
v1
/
users
/
me
/
query
curl -X POST 'https://api.sid.ai/v1/users/me/query' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
    "query": "What does SID do?",
    "limit": 10,
    "query_processing": "standard"
}'
{
  "results": [
    {
      "score": 0.94,
      "title": "SID Company Profile",
      "kind": "gdrive",
      "text": "SID is a company that makes software for searching and organizing information. ..."
    },
    /* ... */
  ],
  "meta": {
    "sync_in_progress": false,
  }
}

Body

query
string
required

The search term to query for. It can be any kind of text, such as a few keywords, a question, or a phrase.

limit
number
default: 10

The maximum number of results to return.

query_processing
string
default: "standard"

What level of preprocessing to apply to the query. Valid values are standard and extended. Using extended mode may improve the quality of results for complex queries, at the cost of additional latency.

Response

results
[object]

An array of objects that represent the results of the query.

meta
object

Metadata about the query and the system that processed it.

curl -X POST 'https://api.sid.ai/v1/users/me/query' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
    "query": "What does SID do?",
    "limit": 10,
    "query_processing": "standard"
}'
{
  "results": [
    {
      "score": 0.94,
      "title": "SID Company Profile",
      "kind": "gdrive",
      "text": "SID is a company that makes software for searching and organizing information. ..."
    },
    /* ... */
  ],
  "meta": {
    "sync_in_progress": false,
  }
}