POST
/
query
curl --request POST \
  --url https://apigcp.trynia.ai/v2/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "user",
      "content": "How does the error handling work in this codebase?"
    }
  ],
  "repositories": [
    {
      "repository": "<string>"
    }
  ],
  "data_sources": [
    {
      "source_id": "<string>"
    }
  ],
  "search_mode": "unified",
  "stream": false,
  "include_sources": true,
  "use_graph_rag": true,
  "graph_query_mode": "auto"
}'
{
  "content": "<string>",
  "sources": [
    "<string>"
  ],
  "source_paths": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json

Response

200
application/json

Query processed successfully

The response is of type object.