Skip to content

REST API

Everything the Crios dashboard does goes through a REST API you can call yourself: create sessions from CI, wire Crios into internal tools, or export usage data. This page covers authentication, tokens and conventions. Every endpoint, parameter and schema is in the API reference, which you can browse interactively or download as an OpenAPI specification.

Base URL

https://api.<your-domain>/api/v1

On Crios's hosted service that is https://api.crios.ai/api/v1. The web app's own host serves the same API under /api/v1 too.

Authentication

Send a token in the Authorization header:

Authorization: Bearer crios_pat_xxxxxxxxxxxx

For scripts and integrations, use a personal access token (below). The dashboard itself signs requests with short-lived login tokens; they work the same way but expire quickly. Personal access tokens are read only from the Authorization header, never from a cookie or a query parameter.

Tokens that AI apps receive when they sign in with OAuth (prefix crios_oat_) are issued for the MCP server only. Sent to the REST API directly, they get 401.

A request acts as you, in one organization, with your role there:

  • Viewers can read. Their other requests are refused with 403 and {"error":"viewers have read-only access"}. The exceptions are searches and queries, project discussion and tasks, and their own account settings.
  • Organization routes (/api/v1/organizations/{id}/…) accept only the organization the request acts in, and most of them need the owner or admin role there.
  • The instance admin API (/api/v1/admin/…) needs an instance administrator's own login session.

Personal access tokens

Create tokens under Settings → API tokens → Generate new token:

  • Token name: a label such as ci-deploy.
  • Access: Full access acts with your role, except for the admin API and credential management. Fine-grained is limited to the Scopes you pick (see below).
  • Project access: All projects, or one project. Binding to one project blocks every other project and every organization-wide listing.
  • Expiration: 30, 60, 90, 180 or 365 days (90 is the default), or No expiration.

Click Generate token. The token (prefix crios_pat_) is shown exactly once: copy it into a secret manager, then click I saved my token. Crios stores only a hash, plus the first characters so you can recognize the token in the list.

The list shows each token's scopes, project, expiry and when it was last used, with a status of Active, Expired or Revoked. Revoke cuts a token off immediately; anything still using it gets 401. Revoked tokens stay in the list, greyed out.

Rules that apply to every token:

  • A token is pinned to the organization it was created in and uses your current role there. Leaving that organization, or its suspension, disables the token; so does suspending or deleting your account. The list shows only the tokens of the organization you are working in.
  • Changing or resetting your password revokes all your tokens, in every organization.
  • You can hold up to 25 active tokens, across all your organizations.
  • No token can manage account credentials or other tokens: changing your password, profile or MFA, and listing, creating or revoking tokens, all need a login session. A leaked token cannot take over the account or copy itself.
  • Creating and revoking tokens is recorded in the audit log (api_token.create, api_token.revoke). A revoked token that is still being presented is logged too (api_token.auth_failed).

Over the API, the same operations are GET, POST and DELETE on /api/v1/users/me/api-tokens. POST takes name (up to 100 characters), scopes, an optional project_id, and expires_in_days (1–730; omit it for no expiry).

Scopes

A token is either full access (*) or fine-grained, with scopes of the form resource:read or resource:write. Write implies read. Each resource covers a set of routes:

Resource Shown as Routes
sessions Sessions /sessions, /projects/{id}/sessions, /review, /preview
projects Projects The rest of /projects, including discussion, tasks and project connectors
memory Memory & knowledge /knowledge, /playbooks, /playbook-suggestions, /failure-kb, /projects/{id}/memory
llm LLM gateway /llm
sandboxes Sandboxes /sandboxes
integrations Connectors /connectors, /integrations, /intake, /mcp-servers, /mcp-proxy, /slack, /jira
costs Costs & quota /costs
organization Organization /organizations, /users, /org-settings
admin Admin API /admin

A fine-grained token cannot reach any other route. That includes /workflows, /skills and /mcp, and the realtime channels (WebSocket streams), which need a Full access token. GET /users/me works for every token, so a script can always check who it is.

* does not include the admin scope: admin:read or admin:write must be granted explicitly. Tokens never carry instance-administrator rights, and every route under /admin (the MCP OAuth clients included) needs an instance admin, so the admin API refuses every token whatever its scopes.

Note

A token never exceeds what your account can do. The token's scopes and project binding narrow your role; they never widen it.

Route planes

Group Base path Covers
Sessions /sessions Create, list, get, update, delete; start, cancel, pause, resume, retry, steer, plan approval; events, messages, progress, transcript, artifacts, outputs (the workflows a session created or edited), attachments, preview
Projects /projects CRUD and restore; sessions, environment variables, memory, shares, publication and publishing, snapshots, discussion, tasks, collectors, connectors, MCP grants, Jira mappings, intake
Workflows /workflows Definitions and versions, validation, activation, executions, approvals, dead letters, node types, templates, credentials and connectors, data stores, budgets, generation, and agents (/workflows/agents). See Workflows
Organization /organizations/{id} Members, invitations, groups, usage, providers, models, routing, connectors, Jira mappings, settings, data export (mostly owners and admins)
Connectors /connectors, /integrations, /mcp, /mcp-servers The connector catalog, your connected accounts, MCP connections and servers
Skills /skills Skills: create, import, export, generate, validate, publish and roll back versions, enable or disable, execute
Knowledge /knowledge, /playbooks Entries, folders, semantic query; playbooks and their versions
Intake /intake The organization's intake inbox and ticket actions
LLM /llm Models, routing, chat
Costs /costs Cost summaries by day, project and session
Account /users/me Profile, preferences, API tokens, MFA, connected accounts
License /license/status License status
Admin /admin Instance administration: users, organizations, SSO, usage, backups, license, audit, health (instance admins only)

Sign-in, registration and token refresh live outside /api/v1, under /auth.

Examples

Create a coding session in a project:

curl -X POST "https://api.example.com/api/v1/projects/$PROJECT_ID/sessions" \
  -H "Authorization: Bearer crios_pat_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"natural_language": "Add CSV export to the reports page",
       "session_type": "coding", "plan_approval_mode": "auto"}'

The call plans the session and answers once planning is done, which can take a while; the build then starts on its own. Without "plan_approval_mode": "auto", it waits until someone approves the plan in the dashboard.

Check the session's status:

curl "https://api.example.com/api/v1/sessions/$SESSION_ID" \
  -H "Authorization: Bearer crios_pat_xxxxxxxxxxxx"

The response includes the session's status (for example working, waiting_input or idle), progress, cost so far, and the pull request URL when there is one. See Session lifecycle for the statuses and what they mean.

Rate limits

Requests made with a personal access token, and those of apps connected through the MCP server, are limited per user in each organization: all your tokens and connected apps share one budget, so a second token brings no extra room. Everything else, such as the dashboard and requests made before signing in, is limited per client IP address. The limits stack: a session creation counts against both the session-creation and the default limit. Each Crios server counts the limits below on its own.

Limit Applies to Budget
Default Every /api/v1 request, the webhook receivers and OAuth callbacks About 1,000 a minute (17 a second, bursts of 200)
Session creation POST /sessions and POST /projects/{id}/sessions 20 a minute, bursts of 20
Sign-in /auth (login, registration, password reset, MFA), password changes, verification e-mails, MFA changes, switching organization 10 a minute, bursts of 10
Admin /api/v1/admin About 100 a minute (2 a second, bursts of 100)

A request over the limit gets 429 with {"error": "rate limit exceeded", "retry_after": 1} and an X-RateLimit-Retry-After: 1 header. Poll modestly (a few seconds between status checks) and back off on 429.

Calls Crios makes to other services on an agent's behalf have their own per-organization budgets: the agent's Jira tool and Slack posts get one call every two seconds (bursts of 10), and MCP server calls one per second (bursts of 20).

Skill runs (POST /api/v1/skills/{id}/execute, or skill_run on the MCP server) started with a token or by a connected app have ceilings of their own on top of the organization's, so external callers cannot use up its whole budget. By default each Crios server allows 40 runs a minute and 3 at once per organization, 20 a minute per user, and 10 a minute and 1 at once per skill. A run over a ceiling gets 429 with {"error": "skill execution denied"} and a kind naming the limit.

Other limits and errors

  • Errors come back as JSON with an error message; some add a code.
  • Request bodies are capped at 32 MiB. A larger body gets 413 with {"error":"request body too large"}. File uploads go through multipart endpoints with their own per-file limits.
  • License. In a deployment that enforces its license, once the license has expired past its grace period, or is missing or invalid, POST, PUT and PATCH requests get 402 Payment Required:

    {"error": "license does not allow new work", "code": "license_expired",
     "state": "...", "reason": "...", "renew_url": "..."}
    

    code is license_expired, license_missing or license_invalid. Reads and DELETE keep working, and so do installing a license, searches and queries, and your own account settings. See License.

Webhook endpoints

The API also has inbound endpoints that external services call. They are authenticated by shared-secret signatures rather than tokens, and are not meant to be called directly:

Endpoint Called by Verified with
/api/v1/webhooks/github/{orgID} and /api/v1/webhooks/github GitHub X-Hub-Signature-256, the app's webhook secret
/api/v1/webhooks/jira/{orgID} and /api/v1/webhooks/jira Jira HMAC signature, the Jira webhook secret
/api/v1/webhooks/slack/{orgID} and …/{orgID}/interactions, /api/v1/webhooks/slack and …/slack/interactions Slack The Slack signing secret, with a five-minute timestamp window

The paths with {orgID} check a delivery against that organization only. The paths without it have to work out the organization. GitHub and Jira deliveries go to the one organization whose webhook secret validates them (GitHub also uses the app ID to tell organizations apart); when several match, the delivery is refused with 409, and when none does, with 401. A Slack event goes to the one organization that could own its workspace for the Slack app that sent it, and is dropped otherwise. Slack's interaction requests are acknowledged and ignored; on …/slack/interactions they are checked against the signing secret of the deployment's oldest organization. Use your organization's own address: copy it from the connector's Webhook URL; see GitHub, Jira and Slack. Workflow webhook triggers have their own public addresses; see Triggers.

Tip

If you are integrating an AI assistant rather than scripts, the MCP server wraps the most common flows as ready-made tools.