POST
/
search
curl --request POST \
  --url https://sdk.senso.ai/api/v1/search \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "query": "<string>",
  "max_results": 123,
  "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "query": "<string>",
  "answer": "<string>",
  "results": [
    {
      "content_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "chunk_index": 123,
      "chunk_text": "<string>",
      "score": 123,
      "title": "<string>",
      "vector_id": "<string>"
    }
  ],
  "total_results": 123,
  "max_results": 123,
  "processing_time_ms": 123
}

Authorizations

X-API-Key
string
header
required

API key authorization

Body

application/json

Response

200
application/json
Search completed successfully with an answer

The response is of type object.