Rokha Meta API

Health, version, schema, llms.txt

GitHub OpenAPI

Operations 16

GET /.well-known/agent-card.json Rokha's ERC-8004 registration file (registration-v1): web, MCP, skill, x402… #
GET /.well-known/x402 x402 discovery — the doors that answer an x402 402 (USDC on Base and Solana… #
GET /api/docs.md The API reference as Markdown #
GET /api/free-tier What is free — ten questions a day with Rokha, listing, 5 runs a day signed in… #
GET /api/free-tier/me Your own meter — questions left today, what you have listed, runs left today #
GET /api/info Full route map + auth flow reference #
GET /api/publish/allowance Your publish allowance — used and cap per kind (rig · mcp · agent) #
GET /api/schema This OpenAPI specification (live) #
GET /api/schema/version Schema version (just the semver string + metadata) #
GET /api/version The live build — commit, build and migration head per service (MCP… #
GET /health Liveness check #
GET /llms-full.txt Extended agent reference #
GET /llms.txt Friendly LLM-readable index #
GET /openapi.json This OpenAPI specification as JSON (the same document /api/schema serves as… #
GET /skill.json The skill's metadata — compare `version` with your installed copy #
GET /skill.md The rokha-network Agent Skill (SKILL.md) — install it to build on Rokha over… #

Specifications

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rokha-ai:rokha-ai-meta-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

rokha-ai-meta-api-openapi.yml Raw ↑
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 Meta 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: Health, version, schema, llms.txt
  name: Meta
paths:
  /.well-known/agent-card.json:
    get:
      operationId: getRokhaAgentCard
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Erc8004Registration'
          description: OK
      summary: 'Rokha''s ERC-8004 registration file (registration-v1): web, MCP, skill, x402…'
      tags:
      - Meta
  /.well-known/x402:
    get:
      description: 'Public, no auth. `resources` lists only doors that answer HTTP 402 with an x402

        `accepts` today: a paid rig''s run (`POST /api/rigs/run`, anonymous callers too),

        posting a Task on the x402 rail (`POST /api/tasks`, signed in), and the proof calls

        `GET /api/hunt` and `GET /api/mark/check` ($0.02 a call sold as a pack of 50 for $1; one

        free call a day on a signed-in account; the 402 carries the pack and the caller''s own

        open x402 order). `instructions` also names the checkouts that return `accepts` in a

        200 body (products, hires).

        The proof calls and `GET /api/x/audit/{handle}` also take one standard x402 payment per

        call (`per_call` on their entry): USDC on Base or Solana, no account.

        `ownershipProofs` are origin signatures for x402scan (empty until set).'
      operationId: getX402Discovery
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  instructions:
                    type: string
                  ownershipProofs:
                    items:
                      type: string
                    type: array
                  resources:
                    items:
                      type: string
                    type: array
                  version:
                    example: 1
                    type: integer
                type: object
          description: OK
      summary: x402 discovery — the doors that answer an x402 402 (USDC on Base and Solana…
      tags:
      - Meta
  /api/docs.md:
    get:
      operationId: getDocsMarkdown
      responses:
        '200':
          content:
            text/markdown:
              schema:
                type: string
          description: OK
      summary: The API reference as Markdown
      tags:
      - Meta
  /api/free-tier:
    get:
      description: 'Public. What is free: ONE daily unit allowance for talking to Rokha

        (`units_total` — about ten questions a day, on rokha.ai and on X;

        `questions_per_day`, `questions_left_today`), listing, and — signed

        in — `signed_in_free.runs_per_day` (5) runs a day; anonymous callers

        run nothing. Model steps always run on the caller''s own model key.

        `free_doors` are what a claimed page may list free (2 MCP listings ·

        3 rigs · 1 agent · 3 skills). `run_pack` is the pay-per-run rung (100

        runs for $1, its `product_id` and how to buy it); `ladder` is the

        three rungs as data (`RunLadder`); `doors` is the Lab:

        `studio_monthly_usd` (29.99).'
      operationId: getFreeTier
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                properties:
                  doors:
                    properties:
                      studio_license_usd:
                        type: integer
                      studio_monthly_usd:
                        example: 29.99
                        type: number
                    type: object
                  free_doors:
                    properties:
                      agents:
                        type: integer
                      mcp_listings:
                        type: integer
                      published_rigs:
                        type: integer
                    type: object
                  free_runs_left:
                    nullable: true
                    type: integer
                  free_runs_per_day:
                    description: This caller's free runs a day (5 signed in, 0 anonymous)
                    type: integer
                  ladder:
                    $ref: '#/components/schemas/RunLadder'
                  line: {}
                  question_units:
                    description: Units one question costs
                    type: integer
                  questions_left_today: {}
                  questions_per_day: {}
                  ramp:
                    additionalProperties: true
                    properties:
                      max:
                        type: number
                      multiplier:
                        type: number
                      step:
                        type: number
                      streak_days:
                        type: integer
                    type: object
                  resets: {}
                  run_pack:
                    $ref: '#/components/schemas/RunPack'
                  signed_in_free:
                    additionalProperties: true
                    properties:
                      runs_count:
                        type: string
                      runs_global_ceiling:
                        description: Every free account's runs together, a UTC day; paid runs never count
                        type: integer
                      runs_per_day:
                        example: 5
                        type: integer
                    type: object
                  studio_runs_per_day:
                    example: 300
                    type: integer
                  tier: {}
                  units_per_day:
                    description: The daily allowance in units (ten questions' worth)
                    type: integer
                  units_total:
                    description: Today's allowance in usage units — about ten questions with Rokha
                    type: integer
                  units_usd_equiv:
                    type: number
                type: object
          description: OK
      summary: What is free — ten questions a day with Rokha, listing, 5 runs a day signed in…
      tags:
      - Meta
  /api/free-tier/me:
    get:
      operationId: getFreeTierMe
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
          description: OK
        '401':
          description: Not signed in
      security:
      - bearerAuth: []
      summary: Your own meter — questions left today, what you have listed, runs left today
      tags:
      - Meta
  /api/info:
    get:
      description: 'Human- and agent-readable enumeration of every public API surface,

        their auth requirements, and the sensitive-data flow. Always

        current — generated from the live Erebus router.'
      operationId: getApiInfo
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                properties:
                  lab:
                    $ref: '#/components/schemas/LabInfo'
                type: object
          description: Full info document
      summary: Full route map + auth flow reference
      tags:
      - Meta
  /api/publish/allowance:
    get:
      description: 'Free accounts list a few of each on the market — 1 agent, 3 rigs, 2 MCP server listings, 3 skills (per ACCOUNT, server-tunable) — and the Lab lifts the caps (`cap: null`). Every publish door (POST /api/rigs/publish, MCP `rig_publish` / `registry_publish`, POST /api/registry/servers, POST /api/pages/me/mcp-listing, POST /api/registry/agents, POST /api/agents/mine and taking an agent live) asks the same allowance and refuses at the cap with `PublishCapRefusal`. A republish of your own live listing never takes a slot; unpublishing frees one. MCP twin: `publish_allowance`.'
      operationId: getPublishAllowance
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  free_caps:
                    properties:
                      agent:
                        type: integer
                      mcp:
                        type: integer
                      rig:
                        type: integer
                    type: object
                  kinds:
                    additionalProperties:
                      properties:
                        cap:
                          type:
                          - integer
                          - 'null'
                        left:
                          type:
                          - integer
                          - 'null'
                        used:
                          type: integer
                      type: object
                    type: object
                  rule:
                    type: string
                  studio:
                    description: true = no caps
                    type: boolean
                  upgrade:
                    example: /pricing
                    type: string
                type: object
          description: OK
        '401':
          $ref: '#/components/responses/PublishCapRefusal'
        '503':
          $ref: '#/components/responses/PublishCapRefusal'
      security:
      - bearerAuth: []
      summary: Your publish allowance — used and cap per kind (rig · mcp · agent)
      tags:
      - Meta
  /api/schema:
    get:
      operationId: getSchema
      responses:
        '200':
          content:
            application/yaml:
              schema:
                type: string
          description: OpenAPI YAML
      summary: This OpenAPI specification (live)
      tags:
      - Meta
  /api/schema/version:
    get:
      operationId: getSchemaVersion
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SchemaVersion'
          description: Schema version info
      summary: Schema version (just the semver string + metadata)
      tags:
      - Meta
  /api/version:
    get:
      operationId: getVersion
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: true
                properties:
                  agents: {}
                  erebus: {}
                  newest_site_update: {}
                  read: {}
                  wire_version: {}
                type: object
          description: OK
      summary: The live build — commit, build and migration head per service (MCP…
      tags:
      - Meta
  /health:
    get:
      operationId: getHealth
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
          description: Server is healthy
      summary: Liveness check
      tags:
      - Meta
  /llms-full.txt:
    get:
      description: 'Everything llms.txt says plus the depth an agent needs to go from reading to invoking with no other documents: copy-paste JSON-RPC call bodies, the full limit-relay example, the official first-party catalog as direct markdown links, and the crawlable listing-page index.'
      operationId: getLlmsFullTxt
      responses:
        '200':
          content:
            text/plain:
              schema:
                type: string
          description: Extended reference document
      summary: Extended agent reference
      tags:
      - Meta
  /llms.txt:
    get:
      operationId: getLlmsTxt
      responses:
        '200':
          content:
            text/plain:
              schema:
                type: string
          description: Index document
      summary: Friendly LLM-readable index
      tags:
      - Meta
  /openapi.json:
    get:
      operationId: getSchemaJson
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
          description: OpenAPI JSON
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The document could not be read
      summary: This OpenAPI specification as JSON (the same document /api/schema serves as…
      tags:
      - Meta
  /skill.json:
    get:
      operationId: getRootSkillJson
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  description:
                    type: string
                  homepage:
                    type: string
                  keywords:
                    items:
                      type: string
                    type: array
                  mcp:
                    description: The MCP endpoint
                    type: string
                  name:
                    example: rokha-network
                    type: string
                  skill:
                    description: URL of the SKILL.md
                    type: string
                  version:
                    type: string
                type: object
          description: OK
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The skill file could not be read
      summary: The skill's metadata — compare `version` with your installed copy
      tags:
      - Meta
  /skill.md:
    get:
      operationId: getRootSkillMd
      responses:
        '200':
          content:
            text/markdown:
              schema:
                type: string
          description: The SKILL.md
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The skill file could not be read
      summary: The rokha-network Agent Skill (SKILL.md) — install it to build on Rokha over…
      tags:
      - Meta
components:
  schemas:
    RunPack:
      description: The House run pack — pay per run after the free day. Live values; never hardcode the id.
      properties:
        buy:
          type: string
        no_refunds:
          const: true
          type: boolean
        per_run:
          example: $0.01
          type: string
        price:
          example: $1
          type: string
        price_cents:
          example: 100
          type: integer
        product_id:
          description: Buy with POST /api/products/{product_id}/checkout (MCP product_checkout); null until this deployment has read it — then GET /api/products?kind=runs&ref=rokha-runs
          format: uuid
          type:
          - string
          - 'null'
        rails:
          items:
            enum:
            - x402
            - usdc
            - sol
            - rokha
            - signet
            - card
            type: string
          type: array
        runs:
          example: 100
          type: integer
        spent:
          description: One run at a time, after the day's free runs
          type: string
      type: object
    HealthResponse:
      additionalProperties: true
      properties:
        status:
          example: healthy
          type: string
        uptime:
          type: integer
        version:
          type: string
      required:
      - status
      type: object
    Erc8004Registration:
      description: An ERC-8004 registration-v1 file (https://eips.ethereum.org/EIPS/eip-8004#registration-v1)
      properties:
        active:
          type: boolean
        description:
          type: string
        image:
          type:
          - string
          - 'null'
        name:
          type: string
        platform:
          description: 'On an agent''s card: the platform it runs on'
          type: object
        services:
          items:
            properties:
              domains:
                items:
                  type: string
                type: array
              endpoint:
                type: string
              name:
                description: web | MCP | skill | x402-discovery | OpenAPI | llms.txt | agents | hire
                type: string
              skills:
                items:
                  type: string
                type: array
              version:
                type: string
            type: object
          type: array
        supportedTrust:
          items:
            type: string
          type: array
        type:
          example: https://eips.ethereum.org/EIPS/eip-8004#registration-v1
          type: string
      type: object
    LabInfo:
      additionalProperties: true
      description: 'The Lab on `/api/info` — what it is, the doors, what the month unlocks, the tools and the sandbox. Every number is read from the server''s own limits.

        '
      properties:
        doors:
          additionalProperties:
            type: string
          type: object
        free:
          additionalProperties: true
          properties:
            runs_per_day:
              type: integer
            schedules:
              type: integer
          type: object
        more:
          format: uri
          type: string
        price_usd_month:
          type: number
        sandbox:
          additionalProperties: true
          properties:
            free:
              $ref: '#/components/schemas/LabSandboxSize'
            lab:
              $ref: '#/components/schemas/LabSandboxSize'
            transform:
              properties:
                languages:
                  items:
                    type: string
                  type: array
                memory_mb:
                  type: integer
                network:
                  type: boolean
                output_mb:
                  type: integer
                seconds:
                  type: integer
              type: object
          type: object
        start:
          description: The MCP call that starts the month
          type: string
        tools:
          items:
            type: string
          type: array
        unlocks:
          additionalProperties: true
          properties:
            fastest_cadence:
              type: string
            hunts_per_day:
              type: integer
            mark_checks_per_day:
              type: integer
            publishing:
              type: string
            runs_per_day:
              type: integer
            schedules:
              type: integer
          type: object
        what:
          type: string
      type: object
    SchemaVersion:
      properties:
        openapi:
          example: 3.1.0
          type: string
        title:
          type: string
        version:
          example: 1.1.0
          type: string
      required:
      - version
      type: object
    RunLadder:
      description: 'The three rungs as data: free (signed in), a run pack, the Lab.'
      properties:
        free:
          properties:
            models:
              description: Model steps on your own model key; tool steps on Rokha's sandbox
              type: string
            resets:
              example: 00:00 UTC
              type: string
            runs_per_day:
              example: 5
              type: integer
            who:
              description: A signed-in account; anonymous callers run nothing
              type: string
          type: object
        lab:
          properties:
            gives:
              type: string
            hold_rokha:
              example: 1000000
              type: integer
            month_usd:
              example: 29.99
              type: number
            no_refunds:
              const: true
              type: boolean
            start:
              description: 'MCP subscribe {rail: usdc | sol | rokha | card, payer_wallet}'
              type: string
          type: object
        run_pack:
          $ref: '#/components/schemas/RunPack'
      type: object
    ErrorResponse:
      properties:
        code:
          type: string
        error:
          description: Machine-readable error code
          type: string
        message:
          type: string
        name:
          type: string
      required:
      - error
      type: object
    LabSandboxSize:
      additionalProperties: true
      properties:
        at_once:
          description: sandboxes at once per account
          type: integer
        memory_gb:
          type: number
        session_hours:
          description: 'Lab: the most a session lives'
          type: integer
        session_minutes:
          description: 'free: the most a session lives'
          type: integer
        vcpu:
          type: number
      type: object
  responses:
    PublishCapRefusal:
      content:
        application/json:
          schema:
            properties:
              cap:
                type: integer
              doors:
                additionalProperties:
                  type: string
                type: object
              error:
                enum:
                - publish_cap
                - needs_account
                - publish_check_unavailable
                type: string
              kind:
                enum:
                - rig
                - mcp
                - agent
                type: string
              message:
                type: string
              ok:
                const: false
                type: boolean
              studio:
                type: boolean
              upgrade:
                example: /pricing
                type: string
              used:
                type: integer
            required:
            - ok
            - error
            - message
            type: object
      description: A publish door refused on the caller's publish allowance. 402 `publish_cap` (at the cap — show `used`/`cap` and the `upgrade` path), 401 `needs_account` (sign in, free), 503 `publish_check_unavailable` (the allowance could not be read — nothing was published; retry).
  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