Ratel Docs
ReferenceHTTP API

Authentication

Project API keys, the Authorization header, and the scope each endpoint needs.

Every endpoint authenticates with a project API key, sent as a bearer token:

Authorization: Bearer rtl_...

API keys

Create a key in your project's Settings > API keys.

  • Format: rtl_ followed by 32 random characters. An ingest-only key starts with rtl_pub_.
  • Storage: the Platform keeps only the SHA-256 hash of the key, and a short prefix for display.
  • Expiry: optional. A key without an expiry date never expires.
  • Revocation: a revoked key stops working at once.

The prefix is a label for people and secret scanners. The key's scopes decide what it may do, never its prefix.

Project binding

A key belongs to one project. Every endpoint acts on that project only.

An ID from another project answers 404, the same as an ID that does not exist.

Access levels

Pick an access level when you create the key:

LevelScopesUse
Full accessAll scopes, present and futureServer side only. Keep it secret.
Read-onlycatalog:read, skills:read, runtime_catalog:read, jobs:read, intent_graph:read, mcp:readReads. Changes nothing. Keep it secret.
Ingest onlyingest:traces, ingest:logs, ingest:eventsSends telemetry, reads nothing. Safe to ship inside an app.
CustomAny non-empty listPick each scope yourself.

Read-only leaves out content:read, embeddings and tool_picker. Embeddings and Tool Picker calls spend credit.

Scopes

ScopeAllowsEndpoints
ingest:tracesSend OTLP spansPOST /v1/traces
ingest:logsSend OTLP log recordsPOST /v1/logs
ingest:eventsSend runtime eventsPOST /api/v1/events
catalog:readRead the published skill catalogGET /v1/catalog, GET /v2/catalog
catalog:writeSync a runtime's tool catalogPUT /api/v1/catalog/snapshot
skills:readRead skillsGET /api/v1/skills, GET /api/v1/skills/:id
skills:writeCreate, edit, import, publish and archive skillsPOST /api/v1/skills, PATCH /api/v1/skills/:id, POST /api/v1/skills/import, POST /api/v1/skills/:id/publish, POST /api/v1/skills/:id/archive
runtime_catalog:readRead runtime catalog overridesGET /v1/runtime-catalog/overrides
jobs:readRead job statusGET /api/v1/jobs/:id
intent_graph:readRead an intent graphGET /v1/intent-graph
intent_graph:writeSave an intent graphPUT /v1/intent-graph
embeddingsEmbed text. Spends Embeddings credit.POST /v1/embeddings
tool_pickerPick tools. Spends Tool Picker credit.POST /v1/tools/pick, POST /v1/pick
mcp:readMCP tools that read the projectPOST /api/mcp
mcp:writeMCP tools that change the projectPOST /api/mcp
content:readCaptured asks, answers and tool payloads over MCPPOST /api/mcp

Each endpoint except MCP needs exactly one scope. See MCP server for how MCP tools use the last three.

401 or 403

StatusCauseFix
401No Authorization: Bearer header, or the key is unknown, revoked or expired.Send a valid key.
403The key is valid but does not have the scope this endpoint needs.Use a key with that scope. Do not re-authenticate.

Most endpoints answer a missing scope like this:

{
  "error": "forbidden",
  "reason": "missing_scope",
  "scope": "skills:write",
  "message": "This API key does not have the \"skills:write\" permission (change skills). Use a key that has it, or create one in project Settings > API keys."
}

The catalog, Embeddings and Tool Picker endpoints use their own envelopes. See Errors.

Ingest-only key limits

An ingest-only key ships inside an app, so every install shares it. It gets two shared budgets on traces, logs and events together:

  • Per key: 6,000 requests a minute by default.
  • Per source address: 120 requests a minute by default.

Each budget also counts items (spans, log records, events) at ten times the request budget. Over a budget, the endpoint answers 429 with Retry-After.

An ingest-only key only adds data. Its log records do not change the project's runtime catalog definitions.

On this page