Authorizations
API key must be provided in the Authorization header
Body
application/json
Chat messages for context and query
Example:
[
{
"role": "user",
"content": "How does the error handling work in this codebase?"
}
]
List of repositories to query
List of documentation/web sources to query. Supports flexible identifiers:
- String format (recommended): ["Vercel AI SDK - Core", "https://docs.trynia.ai/"]
- Legacy object format: [{"source_id": "uuid"}]
- New object format: [{"identifier": "display-name-or-url"}]
Search mode: 'unified' searches both repos and docs, 'repositories' searches only code, 'sources' searches only documentation
Available options:
unified
, repositories
, sources
Whether to stream the response
Whether to include full source texts in the response (when false, only file paths are returned)