REST API

A JSON API over HTTPS for document-grounded chat, ingestion, and everything the dashboard does.

dev · https://api.dev.oprag.ai

Every endpoint is JSON over HTTPS, authenticated by a key you issue per project or by a dashboard session. Nothing is versioned in the body — the version is in the path, and /v1 is the only version there has been.

The shape of everything

AspectAnswer
Base URLhttps://api.dev.oprag.aiper environment
Auth headerX-Oprag-Key, or Authorization: Bearer <key>details
Content typeapplication/json on every request with a body
Errors{ "error": "message" }errors
Paginationcursor in, nextCursor out — pagination
VersioningIn the path — versioning

Words this documentation uses

TermMeans
WorkspaceYour account and everyone in it. The API resource is called company, and retrieval attributes call it tenant_id.
ProjectOne bot: its documents, its settings, its keys.
DeployPublishing a project's configuration. A verb, never a noun.
Integration keysk_*. A workspace secret for server-to-server calls. Not an "API key", not a "project API key".
Embed keyembed_*. Public, origin-locked, for browsers.

Ready to ship?

Get started free