Headers

Query parameters

Responses

  • 200 application/json

    Returns the brand vectors that are similar to the question

    Hide response attributes Show response attributes object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

GET /chat/rag/search-documents
curl \
 -X GET https://domain.tld/api/v2/chat/rag/search-documents \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "X-Popsell-Brand: 3"
Response examples (200)
[
  {
    "id": 42,
    "content": "string",
    "distance": 42.0,
    "actions": [
      {
        "type": 42,
        "id_chat_topic": 42
      }
    ]
  }
]
Response examples (401)
{
  "message": "Unauthorized."
}