cURL
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>" ] }
Send a query to get AI-powered insights about indexed repositories and/or documentation sources. Supports three search modes:
API key must be provided in the Authorization header
Query processed successfully
The response is of type object.
object