Send a query to get AI-powered insights about indexed repositories and/or documentation sources.
Supports three search modes:
‘unified’: Search across both repositories and documentation (default)
‘repositories’: Search only code repositories
‘sources’: Search only documentation sources (returns vector search results without LLM processing)
Supports both streaming and non-streaming responses.
POST
/
query
Query indexed repositories and documentation
Copy
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}'