Developer API
This API lets you build on top of your own document sets. Upload and index documents, then ask natural-language questions and get answers grounded in those documents — with citations back to the source files and pages.
The most common use is a chatbot: you send a question (plus any prior turns of the conversation) and receive an answer with citations. The same API also powers document browsing, conversation titles, and indexing automation.
What you can build
Base URL
All endpoints are served from your deployment’s base URL. Replace
https://api.example.com in these docs with your own host.
https://api.example.comRequests are authenticated with a bearer token. See Authentication before making your first call.
Conventions
- All request and response bodies are JSON (
Content-Type: application/json), except the chat streaming response, which is Server-Sent Events. - A docset (
docSetName) is a named collection of indexed documents. Most endpoints operate on one or more docsets. - Timestamps are ISO 8601 strings.
Next steps
- Get a token and make an authenticated request — Authentication.
- Run your first query — Quickstart.
- Build a full chat experience, including streaming — Chatbot.
- Explore every endpoint interactively — API Reference.