Start building amazing LLM experiences in under 5 minutes
Base URL: https://api.usecortex.ai
Contact us to get your API key at founders@usecortex.ai
All endpoints require an API key sent as a Bearer token in the Authorization
header.
Authorization: Bearer <your_api_key>
)file
: your documenttenant_id
: your unique tenant IDcontract.pdf
)bounding_box
to enable clickable highlights or coordinate-based jumping in PDFs.
You can use the tenant_metadata
and document_metadata
parameters to restrict the context to only sources matching a specific title or type. For example, { "source_title": "contract.pdf" }
will only use sources with that title for answering the question.
AI response (true or false)
: Lets you decide if you only want the retrieved context or the AI generated response to user queries using retrieved contextsearch_alpha (0-1)
: Prioritize keyword vs. semantic match. An Alpha of “1” means semantic match. An Alpha of “0” means exact keyword matchrecency_bias (0-1)
: Control how much you want to favour newly added knowledge. 1 you strongly favour recently added knowledge. 0 means freshness of knowledge doesn’t matter.highlight_chunks
: Get the actual context/chunks can be used for generating answers for RAG or Agentic purposesstream
: for real-time, streaming answers/upload/batch_upload
for multiple files/delete_memory
to remove documents/list/sources
to display all uploaded documents