Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Orquesta Public Agents API
version: '1.0'
summary: Programmatic access to prompts, logs, projects, agents, users, and the Batuta LLM proxy.
description: 'The Orquesta Public API exposes read access to your organization''s prompts, execution logs,
projects, agents, and users, plus an OpenAI-compatible chat-completions proxy ("Batuta LLM")
that routes across multiple upstream models with smart per-prompt classification.
All endpoints under `/api/v1/*` are stable, versioned, and safe to integrate against. Internal
dashboard endpoints (`/api/projects/[id]/batuta/*`, `/api/agent/*`, `/api/auth/*`, etc.) are
NOT part of this contract and may change without notice.
## Authentication
Pass an API key on every request via either header:
- `Authorization: Bearer `
- `X-API-Key: `
Three token prefixes are accepted; each carries different scope semantics:
| Prefix | Type | Scope | Scopes granted |
|----------|-------------------|-------------------|---------------------------------------------------------|
| `oak_` | Org API key | Organization, or a chosen subset of its projects | DB-configured (any of `prompts:read`, `prompts:write`, `logs:read`, ...) |
| `oclt_` | CLI token | Organization | All four read scopes (synthesized), plus prompt submit |
| `oat_` | Agent token | Project (single) | All four read scopes; queries restricted to its project |
An `oclt_` inherits its creator''s access: an org owner or admin reaches every project,
anyone else only the projects they are a member of. Projects outside that set are
reported as not found.
An `oak_` is org-wide unless it was restricted to specific projects when it was created
(or edited afterwards). A restricted key sees only those projects in every listing, and
a request naming any other project is reported as not found — the same answer as a
project that does not exist, so a key cannot enumerate the organization.
Generate keys from the dashboard: https://getorquesta.com/dashboard/settings
## Errors
Non-Batuta endpoints return `{ "error": "human-readable message" }` with status codes
401 (missing/invalid key), 403 (scope/project mismatch), 404 (not found), 500 (internal).
Batuta proxy endpoints (`/chat/completions`, `/models`) return OpenAI-compatible errors:
`{ "error": { "message": "...", "type": "auth_error" | "billing_error" | "routing_error" | "proxy_error" } }`.'
contact:
name: Orquesta Support
url: https://getorquesta.com
email: oscar@getorquesta.com
license:
name: Proprietary
servers:
- url: https://getorquesta.com
description: Production
security:
- BearerAuth: []
- ApiKeyAuth: []
tags:
- name: Agents
description: Registered agent installations and their online status.
paths:
/api/v1/agents:
get:
tags:
- Agents
summary: List registered agents and their online status
operationId: listAgents
responses:
'200':
description: Agent list.
content:
application/json:
schema:
type: object
required:
- agents
properties:
agents:
type: array
items:
$ref: '#/components/schemas/Agent'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
components:
responses:
Forbidden:
description: Insufficient scope, revoked token, or project-scope mismatch.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
Unauthorized:
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
schemas:
Agent:
type: object
required:
- id
- status
- createdAt
properties:
id:
type: string
format: uuid
name:
type: string
nullable: true
status:
type: string
enum:
- online
- offline
- idle
lastSeen:
type: string
format: date-time
nullable: true
agentInfo:
type: object
nullable: true
description: Hostname, version, platform reported by the agent
project:
type: object
nullable: true
properties:
id:
type: string
format: uuid
name:
type: string
agentOnline:
type: boolean
productionUrl:
type: string
nullable: true
githubRepo:
type: string
nullable: true
createdAt:
type: string
format: date-time
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: orquesta-token (oak_|oclt_|oat_)
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
x-provenance:
method: harvested
publisher: Orquesta
source: https://getorquesta.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)