Skip to main content
The Management APIs are the workspace administration surface of the Orq.ai platform: programmatic control over the resources that govern how a workspace runs, including API Keys, Management Keys, Budgets, Projects, Alerts, Notifiers, and Identities.

Management plane vs data plane

The platform separates administration from inference into two planes:
  • Management plane: workspace administration. Endpoints live under /v2/ and authenticate with a workspace-scoped Management Key or a standard API Key, depending on the endpoint family (see the table below).
  • Data plane: inference and product endpoints. Requests run through the AI Gateway at https://api.orq.ai/v3/router and authenticate with a project-scoped API Key.
Management Keys manage workspace resources but cannot query models or agents; the data plane accepts only standard API Keys.

Base URL and versioning

Management endpoints use the platform base URL with the /v2/ version prefix:
URL
The AI Gateway data plane uses /v3/ instead, for example https://api.orq.ai/v3/router/responses.

Resources

API Keys

Create, list, retrieve, update, and delete project-scoped keys, and fetch the capability catalog.

Management Keys

Create and manage workspace-scoped keys with per-domain access, plus the management capability catalog.

Budgets

Cap cost, token, and requests-per-minute usage per workspace, project, identity, key, provider, or model.

Projects

Organize keys, prompts, and models into projects and manage project lifecycle.

Alerts

Configure alert triggers and route notifications when thresholds are hit.

Notifiers

Register webhook and channel targets that alerts and budgets notify.

Identities

Track end users across projects and scope budgets and annotations to them.
Each endpoint family requires a specific key type:

Authentication and permissions

Every key has a permission_mode preset and an optional per-domain access map:
  • All: full read and write access to every capability.
  • Read only: read access to every capability.
  • Restricted: per-domain access from the access map. Values are ACCESS_LEVEL_NONE, ACCESS_LEVEL_READ, or ACCESS_LEVEL_WRITE.
The capability catalogs enumerate the grantable domains: See API Keys and Management Keys for the permission presets and Management Keys for the workspace administration endpoints.

Worked example: provision a scoped key with a budget

The common automation task: mint a restricted Management Key, create a scoped API Key with it, then attach a Budget to cap the key’s spend.
1

Create a restricted Management Key

The response returns the token once; store it securely and use it as the bearer credential for the remaining requests.
2

Create a scoped API Key

The response includes the key id and its token. Substitute the id for <api-key-id> in the next step.
3

Attach a Budget to the key

For the available limit types and periods, see Budgets.