Skip to main content

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.

EndpointScopeCredential
GET /v1/agents/{slug}/resolveresolveruntimeKey or deliveryKey or workspaceKey
POST /v1/agents/{slug}/deliveriesdeliveries:writedeliveryKey or workspaceKey
POST /v1/agents/{slug}/upstream-hashesingest:writeingestKey or workspaceKey
GET /v1/signing-keysnonenone

Ingest

Send OTLP/HTTP GenAI spans.

EndpointScopeCredential
POST /v1/ingest/v1/tracesingest:writeingestKey or workspaceKey

Skills

Read and write skills.

EndpointScopeCredential
GET /v1/meskills:readpersonalToken or workspaceKey
GET /v1/skillsskills:readpersonalToken or workspaceKey
POST /v1/skillsskills:writepersonalToken or workspaceKey
GET /v1/skills/{id}skills:readpersonalToken or workspaceKey
PATCH /v1/skills/{id}skills:writepersonalToken or workspaceKey
DELETE /v1/skills/{id}skills:writepersonalToken or workspaceKey
GET /v1/skills/{id}/exportskills:readpersonalToken or workspaceKey
GET /v1/skills/{id}/filesskills:readpersonalToken or workspaceKey
GET /v1/skills/{id}/files/{path}skills:readpersonalToken or workspaceKey
PUT /v1/skills/{id}/files/{path}skills:writepersonalToken or workspaceKey
DELETE /v1/skills/{id}/files/{path}skills:writepersonalToken or workspaceKey
GET /v1/skills/{id}/manifestskills:readpersonalToken or workspaceKey
POST /v1/skills/{id}/publishskills:writepersonalToken or workspaceKey
POST /v1/skills/{id}/reviewsskills:writepersonalToken or workspaceKey
NextRuntime SDK