Reference
API reference
Every public endpoint of the Contexory API, with the scope each one needs. This page is generated from the OpenAPI spec, which you can download and feed to a client generator.
Base URL and spec
Send requests to https://api.contexory.com.
The machine-readable spec is OpenAPI 3.1. Download openapi.json.
Every error response uses the envelope described on the Errors page and carries a Request-Id header.
Lists return a data array and a next_cursor; pass next_cursor back as ?cursor=, with ?limit= to size a page. A POST that records or reports (deliveries, upstream hashes) accepts an Idempotency-Key header: repeat the request with the same key within 24 hours and you get the first response back, with Idempotent-Replay: true. The old /api/plugin/* paths still answer, with Deprecation, Sunset and Link headers pointing at their /v1 successor.
Credentials and scopes
Send a credential as Authorization: Bearer $CONTEXORY_API_KEY. Each operation names its scope in the spec as x-contexory-scope.
- resolve: a workspace key (
con_key_) with this scope, or a runtime key (con_rt_) or delivery key. Limited to the agents you name. - deliveries:write: a workspace key with this scope or a delivery key (
con_dl_), kept in CI secrets only. - ingest:write: a workspace key with this scope or an ingest key (
con_ing_). - skills:read and skills:write: a personal plugin token, or a workspace key with the scope. Skill scopes cover the whole workspace, not only the key's agents.
The one limit enforced today is 300 requests a minute per IP, at the edge. A request it stops has no body in the error format and no Retry-After. Responses carry no RateLimit-* headers today; do not rely on them. See Rate limits.
Agents
Resolve a release, record delivery receipts and report upstream tool hashes.
| Endpoint | Scope | Credential |
|---|---|---|
GET /v1/agents/{slug}/resolve | resolve | runtimeKey or deliveryKey or workspaceKey |
POST /v1/agents/{slug}/deliveries | deliveries:write | deliveryKey or workspaceKey |
POST /v1/agents/{slug}/upstream-hashes | ingest:write | ingestKey or workspaceKey |
GET /v1/signing-keys | none | none |
Ingest
Send OTLP/HTTP GenAI spans.
| Endpoint | Scope | Credential |
|---|---|---|
POST /v1/ingest/v1/traces | ingest:write | ingestKey or workspaceKey |
Skills
Read and write skills.
| Endpoint | Scope | Credential |
|---|---|---|
GET /v1/me | skills:read | personalToken or workspaceKey |
GET /v1/skills | skills:read | personalToken or workspaceKey |
POST /v1/skills | skills:write | personalToken or workspaceKey |
GET /v1/skills/{id} | skills:read | personalToken or workspaceKey |
PATCH /v1/skills/{id} | skills:write | personalToken or workspaceKey |
DELETE /v1/skills/{id} | skills:write | personalToken or workspaceKey |
GET /v1/skills/{id}/export | skills:read | personalToken or workspaceKey |
GET /v1/skills/{id}/files | skills:read | personalToken or workspaceKey |
GET /v1/skills/{id}/files/{path} | skills:read | personalToken or workspaceKey |
PUT /v1/skills/{id}/files/{path} | skills:write | personalToken or workspaceKey |
DELETE /v1/skills/{id}/files/{path} | skills:write | personalToken or workspaceKey |
GET /v1/skills/{id}/manifest | skills:read | personalToken or workspaceKey |
POST /v1/skills/{id}/publish | skills:write | personalToken or workspaceKey |
POST /v1/skills/{id}/reviews | skills:write | personalToken or workspaceKey |