POST
/
chatbots
/
structured-rag
/
{
  "query_str": "<string>",
  "response": "<string>",
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "model_type": "gpt-4o"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Current-Org-Id
string | null

Represents the current organisation ID for the user (example: 'org_u13TesTDumMyEe5P')

Api-key
string | null

Body

application/json

Response

200
application/json

Returns the response of the chatbot based on the conversation history

The response is of type object.