Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/rokha-ai:rokha-ai-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
contact:
name: Rokha
url: https://rokha.ai
description: 'The public API of Rokha, the Agent Lab. Build a tool,
run it for real with a trace, sell it or hire it out. Agents use the same
doors over MCP at `/mcp/jsonrpc`. Versioning: `GET /api/schema/version`.'
license:
name: MIT
url: https://github.com/rokha-ai/rokha-sdk/blob/main/LICENSE
title: Rokha Public Data API
version: 1.0.0
servers:
- description: Local development (default Erebus port)
url: http://localhost:3000
- description: Production (hosted Erebus)
url: https://erebus.rokha.ai
security: []
tags:
- description: Your files, given to a rig as data
name: Data
paths:
/api/data-attachments:
get:
description: 'Your own JSON / CSV / XML / YAML / text files, kept for rigs to read as fenced DATA (never instructions). Owner-scoped: a foreign id is a 404. Google sign-ins send the Bearer token alone; a wallet sign-in also sends `x-wallet-address: `.'
operationId: listDataAttachments
responses:
'200':
content:
application/json:
schema:
properties:
data:
items:
$ref: '#/components/schemas/DataAttachment'
type: array
limit:
type: integer
max_bytes:
type: integer
type: object
description: '`{data: [DataAttachment], limit: 200, max_bytes: 524288}`'
security:
- bearerAuth: []
summary: List your data attachments (newest first, without content)
tags:
- Data
post:
description: Content is parse-checked for its `format` and a schema is inferred. At most 512 KB each and 200 per account.
operationId: createDataAttachment
requestBody:
content:
application/json:
schema:
properties:
content:
type: string
format:
$ref: '#/components/schemas/DataAttachmentFormat'
name:
maxLength: 120
minLength: 1
type: string
role:
$ref: '#/components/schemas/DataAttachmentRole'
source:
default: user
description: '`run_output` is minted only by POST /api/data-attachments/from-run'
enum:
- user
- rokha
type: string
required:
- name
- format
- content
type: object
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/DataAttachmentEnvelope'
description: '`{data: DataAttachment}`'
'400':
$ref: '#/components/responses/DataAttachmentError'
'413':
$ref: '#/components/responses/DataAttachmentError'
'422':
$ref: '#/components/responses/DataAttachmentError'
'429':
$ref: '#/components/responses/DataAttachmentError'
security:
- bearerAuth: []
summary: Create a data attachment
tags:
- Data
/api/data-attachments/from-run:
post:
description: 'Name a `trace_id` or a `run_id` (a run''s `run` trace, else its first). Only your own traces are read. The output is saved as `json` when it parses, else `text`, with `source: run_output`.'
operationId: dataAttachmentFromRun
requestBody:
content:
application/json:
schema:
properties:
name:
maxLength: 120
minLength: 1
type: string
role:
$ref: '#/components/schemas/DataAttachmentRole'
run_id:
format: uuid
type: string
trace_id:
format: uuid
type: string
required:
- name
type: object
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/DataAttachmentEnvelope'
description: '`{data: DataAttachment}`'
'400':
$ref: '#/components/responses/DataAttachmentError'
'404':
$ref: '#/components/responses/DataAttachmentError'
'422':
$ref: '#/components/responses/DataAttachmentError'
security:
- bearerAuth: []
summary: Save one of your runs' output as an attachment
tags:
- Data
/api/data-attachments/templates:
get:
operationId: dataAttachmentTemplates
responses:
'200':
content:
application/json:
schema:
properties:
data:
additionalProperties:
type: string
type: object
type: object
description: '`{data: {json, csv, xml, yaml, text}}` — each a template string'
'401':
$ref: '#/components/responses/Unauthorized'
security:
- bearerAuth: []
summary: A starter template per format
tags:
- Data
/api/data-attachments/{id}:
parameters:
- in: path
name: id
required: true
schema:
format: uuid
type: string
delete:
operationId: deleteDataAttachment
responses:
'200':
content:
application/json:
schema:
properties:
ok:
type: boolean
type: object
description: '`{ok: true}`'
'404':
$ref: '#/components/responses/DataAttachmentError'
security:
- bearerAuth: []
summary: Delete an attachment
tags:
- Data
get:
operationId: getDataAttachment
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DataAttachmentEnvelope'
description: '`{data: DataAttachment}` including `content`'
'404':
$ref: '#/components/responses/DataAttachmentError'
security:
- bearerAuth: []
summary: One attachment, with its content
tags:
- Data
put:
operationId: updateDataAttachment
requestBody:
content:
application/json:
schema:
properties:
content:
type: string
format:
$ref: '#/components/schemas/DataAttachmentFormat'
name:
maxLength: 120
minLength: 1
type: string
role:
$ref: '#/components/schemas/DataAttachmentRole'
type: object
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DataAttachmentEnvelope'
description: '`{data: DataAttachment}`'
'400':
$ref: '#/components/responses/DataAttachmentError'
'404':
$ref: '#/components/responses/DataAttachmentError'
'413':
$ref: '#/components/responses/DataAttachmentError'
'422':
$ref: '#/components/responses/DataAttachmentError'
security:
- bearerAuth: []
summary: Update an attachment (any field; the rest are kept)
tags:
- Data
components:
schemas:
DataAttachmentEnvelope:
properties:
data:
$ref: '#/components/schemas/DataAttachment'
type: object
DataAttachment:
properties:
bytes:
type: integer
content:
description: Only on GET /api/data-attachments/{id}
type: string
created_at:
format: date-time
type:
- string
- 'null'
format:
$ref: '#/components/schemas/DataAttachmentFormat'
id:
format: uuid
type: string
name:
type: string
role:
$ref: '#/components/schemas/DataAttachmentRole'
schema:
description: Inferred from the content
source:
enum:
- user
- rokha
- run_output
type: string
source_run_id:
type:
- string
- 'null'
updated_at:
format: date-time
type:
- string
- 'null'
type: object
DataAttachmentRole:
default: input
description: '`test_input` marks a run fed from it as TEST DATA — such a run never earns the proven stamp'
enum:
- input
- test_input
- expected_output
- reference
type: string
DataAttachmentFormat:
enum:
- json
- csv
- xml
- yaml
- text
type: string
ErrorResponse:
properties:
code:
type: string
error:
description: Machine-readable error code
type: string
message:
type: string
name:
type: string
required:
- error
type: object
responses:
Unauthorized:
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Missing or invalid auth
DataAttachmentError:
content:
application/json:
schema:
properties:
col:
type:
- integer
- 'null'
error:
type: string
line:
type:
- integer
- 'null'
message:
type: string
required:
- error
type: object
description: '`{error, message}` — `bad_name` · `bad_format` · `bad_role` · `bad_request` (400), `not_found` (404), `too_large` (413), `parse_failed` (422, with `line` and `col`), `empty_output` (422), `limit_reached` (429, 200 per account)'
securitySchemes:
bearerAuth:
bearerFormat: JWT
description: 'JWT issued by `/api/wallets/verify` (after `/api/wallets/challenge`),
or `/api/auth/google/callback`. Send as
`Authorization: Bearer <token>`. Refresh via `/api/auth/refresh`
before expiry (24h default).
'
scheme: bearer
type: http