Metagraphed Schemas API

The schemas API from Metagraphed — 1 operation(s) for schemas.

GitHub OpenAPI

Operations 1

GET /api/v1/schemas Schemas #

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/metagraph-sh:metagraph-sh-schemas-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

metagraph-sh-schemas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Public, read-only API over canonical Metagraphed registry artifacts for Bittensor subnet interfaces. **No authentication** — every operation is an unauthenticated GET. Responses use a stable JSON envelope `{ ok, schema_version, data, meta }` (errors: `{ ok: false, error }`) and carry `ETag` + `Cache-Control` for conditional caching. Rate-limited per client. Multi-network: insert a `/{network}/` segment after `/api/v1/` (mainnet is the default — omit it) to read testnet data, e.g. `/api/v1/testnet/subnets`. Testnet exposes the subset of routes that have data; `/api/v1/lineage` tracks which testnet subnets have graduated.'
  title: Metagraphed Schemas API
  version: 2026-07-03.2
servers:
- description: Production (mainnet default; insert /testnet/ after /api/v1/ for testnet data)
  url: https://api.metagraph.sh
security: []
tags:
- name: Schemas
paths:
  /api/v1/schemas:
    get:
      description: Fetch captured schema index.
      operationId: schemas
      parameters: []
      responses:
        '200':
          content:
            application/json:
              examples:
                SchemaIndexArtifactResponse:
                  $ref: '#/components/examples/SchemaIndexArtifactResponse'
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/SchemaIndexArtifact'
                  type: object
          description: Canonical artifact wrapped in the Metagraphed API envelope.
          headers:
            cache-control:
              $ref: '#/components/headers/CacheControl'
            etag:
              $ref: '#/components/headers/ETag'
            x-metagraph-contract-version:
              $ref: '#/components/headers/ContractVersion'
        '304':
          description: ETag matched and the cached response is still valid.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Query parameters were malformed or unsupported.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Artifact or API route was not found.
        '405':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: HTTP method is not supported.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unexpected backend error.
      tags:
      - Schemas
      x-metagraphed-mainnet-only: true
      x-metagraphed-networks:
      - mainnet
      summary: Schemas
      x-summary-source: derived
components:
  headers:
    ETag:
      schema:
        type: string
    ContractVersion:
      schema:
        type: string
    CacheControl:
      schema:
        type: string
  examples:
    SchemaIndexArtifactResponse:
      value:
        data:
          contract_version: 2026-06-29.1
          generated_at: '2026-06-01T00:00:00.000Z'
          notes: Example description.
          observed_at: '2026-06-01T00:00:00.000Z'
          promoted_at: '2026-06-01T00:00:00.000Z'
          promoted_by: worker-cron
          schema_version: 1
          schemas:
          - drift_status: new
            schema_url: https://api.metagraph.sh/example
            status: captured
            surface_id: example
          source: live-cron-prober
          summary:
            by_drift_status: {}
            by_status: {}
            schema_count: 1
            surface_count: 1
        meta:
          artifact_path: example
          cache: short
          catalog_paging:
            reason: catalog_changed
          contract_version: 2026-06-29.1
          generated_at: '2026-06-01T00:00:00.000Z'
          observed_through: '2026-06-01T00:00:00.000Z'
          pagination:
            collection: example
            cursor: 1
            limit: 1
            next_cursor: 1
            order: asc
            returned: 1
            snapshot: v1.a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1
            sort: example
            total: 1
          published_at: '2026-06-01T00:00:00.000Z'
          source: live-cron-prober
          stale_contract:
            built_under: example
            live: example
        ok: true
        schema_version: 1
  schemas:
    ResponseMeta:
      additionalProperties: {}
      properties:
        artifact_path:
          type: string
        cache:
          $ref: '#/components/schemas/CacheProfile'
        catalog_paging:
          additionalProperties: false
          properties:
            reason:
              enum:
              - catalog_changed
              - catalog_budget_exceeded
              - catalog_unavailable
              type: string
          required:
          - reason
          type: object
        contract_version:
          type: string
        generated_at:
          description: Deterministic build content marker (epoch by default); not a wall clock. Use published_at for human-facing freshness.
          type:
          - string
          - 'null'
        observed_through:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          description: How far the tier that answered this request has observed at all. A payload reporting no activity at or before this time is a measured absence; one whose subject is newer is outside coverage, not empty. Null when the horizon is unreadable.
        pagination:
          $ref: '#/components/schemas/PaginationMeta'
        published_at:
          anyOf:
          - format: date-time
            type: string
          - type: 'null'
          description: Real publish time from the KV latest pointer, distinct from generated_at. Null before the first publish or when the control KV is unbound.
        source:
          type: string
        stale_contract:
          additionalProperties: false
          description: 'Present ONLY when the served artifact was built under an older contract than the live one (serve-time drift, #1001) — the body may predate a schema change. Mirrored on the x-metagraph-stale-contract response header for monitoring.'
          properties:
            built_under:
              description: Contract version the served artifact was built under.
              type: string
            live:
              description: Current (live) contract version the Worker is running.
              type: string
          required:
          - built_under
          - live
          type: object
      required:
      - contract_version
      type: object
    CountMap:
      additionalProperties:
        maximum: 9007199254740991
        minimum: 0
        type: integer
      propertyNames:
        type: string
      type: object
    ErrorEnvelope:
      additionalProperties: false
      properties:
        data:
          type: 'null'
        error:
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
          type: object
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        ok:
          const: false
          type: boolean
        schema_version:
          const: 1
          type: number
      required:
      - ok
      - schema_version
      - data
      - error
      - meta
      type: object
    SchemaIndexArtifact:
      additionalProperties: false
      properties:
        contract_version:
          type: string
        generated_at:
          type: string
        notes:
          anyOf:
          - type: string
          - items:
              type: string
            type: array
          description: Public-safe notes; may be a string or a string list depending on the adapter.
        observed_at:
          type: string
        promoted_at:
          description: When the schema-snapshots cron promoted this index into the store. Absent on a build-baked baseline the cron has not promoted.
          type: string
        promoted_by:
          const: worker-cron
          description: Which producer promoted this index. Absent on a build-baked baseline.
          type: string
        schema_version:
          const: 1
          type: number
        schemas:
          items:
            additionalProperties: false
            properties:
              content_type:
                type:
                - string
                - 'null'
              drift_status:
                description: How this capture compares to the PREVIOUS capture of the same surface by this registry -- NOT to the subnet's live spec. `unchanged` means 'our snapshot is what it was', never 'the upstream API has not changed'. Judge currency by comparing this entry's `snapshot.observed_at` against `capture_cadence_hours` on the subnet's /api/v1/gaps `schema_parity` block.
                enum:
                - new
                - changed
                - unchanged
                - not-captured
                - missing-after-previous-capture
                type: string
              error:
                type:
                - string
                - 'null'
              hash:
                type:
                - string
                - 'null'
              netuid:
                maximum: 9007199254740991
                minimum: 0
                type: integer
              path:
                type:
                - string
                - 'null'
              previous_hash:
                type:
                - string
                - 'null'
              schema_url:
                anyOf:
                - format: uri
                  type: string
                - type: 'null'
              snapshot:
                additionalProperties: false
                properties:
                  auth_detail:
                    anyOf:
                    - additionalProperties: false
                      properties:
                        location:
                          type:
                          - string
                          - 'null'
                        name:
                          type:
                          - string
                          - 'null'
                        scheme:
                          type:
                          - string
                          - 'null'
                        value_format:
                          type:
                          - string
                          - 'null'
                      type: object
                    - type: 'null'
                  auth_required:
                    type: boolean
                  auth_schemes:
                    items:
                      type: string
                    type: array
                  component_schema_count:
                    maximum: 9007199254740991
                    minimum: 0
                    type: integer
                  contract_version:
                    type:
                    - string
                    - 'null'
                  drift_status:
                    type:
                    - string
                    - 'null'
                  generated_at:
                    type:
                    - string
                    - 'null'
                  hash:
                    type:
                    - string
                    - 'null'
                  netuid:
                    anyOf:
                    - maximum: 9007199254740991
                      minimum: 0
                      type: integer
                    - type: 'null'
                  non_get_operation_count:
                    maximum: 9007199254740991
                    minimum: 0
                    type: integer
                  observed_at:
                    type:
                    - string
                    - 'null'
                  openapi_version:
                    type:
                    - string
                    - 'null'
                  path_count:
                    maximum: 9007199254740991
                    minimum: 0
                    type: integer
                  previous_hash:
                    type:
                    - string
                    - 'null'
                  schema_url:
                    type:
                    - string
                    - 'null'
                  schema_version:
                    maximum: 9007199254740991
                    minimum: -9007199254740991
                    type: integer
                  server_count:
                    maximum: 9007199254740991
                    minimum: 0
                    type: integer
                  subnet_name:
                    type:
                    - string
                    - 'null'
                  subnet_slug:
                    type:
                    - string
                    - 'null'
                  surface_id:
                    type:
                    - string
                    - 'null'
                  surface_url:
                    type:
                    - string
                    - 'null'
                  tag_count:
                    maximum: 9007199254740991
                    minimum: 0
                    type: integer
                  title:
                    type:
                    - string
                    - 'null'
                  version:
                    type:
                    - string
                    - 'null'
                type: object
              status:
                enum:
                - captured
                - error
                - not-captured
                - not-found
                - too-large
                - unsafe
                type: string
              subnet_slug:
                type: string
              surface_id:
                type: string
              url:
                format: uri
                type: string
            required:
            - drift_status
            - schema_url
            - status
            - surface_id
            type: object
          type: array
        source:
          type: string
        summary:
          additionalProperties: false
          properties:
            by_drift_status:
              $ref: '#/components/schemas/CountMap'
            by_status:
              $ref: '#/components/schemas/CountMap'
            schema_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            surface_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
          required:
          - surface_count
          - schema_count
          - by_status
          - by_drift_status
          type: object
      required:
      - generated_at
      - schema_version
      - schemas
      - source
      type: object
    SuccessEnvelope:
      additionalProperties: false
      properties:
        data:
          additionalProperties: {}
          properties: {}
          type: object
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        ok:
          const: true
          type: boolean
        schema_version:
          const: 1
          type: number
      required:
      - ok
      - schema_version
      - data
      - meta
      type: object
    CacheProfile:
      enum:
      - short
      - standard
      - static
      type: string
    PaginationMeta:
      additionalProperties: false
      properties:
        collection:
          type: string
        cursor:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        limit:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        next_cursor:
          anyOf:
          - maximum: 9007199254740991
            minimum: 0
            type: integer
          - type: 'null'
        order:
          enum:
          - asc
          - desc
          type: string
        returned:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        snapshot:
          description: Present only for page_snapshot paging. Echo as page_snapshot on subsequent pages; a changed collection or query requires a restart.
          pattern: ^v1\.[0-9a-f]{64}$
          type: string
        sort:
          type:
          - string
          - 'null'
        total:
          maximum: 9007199254740991
          minimum: 0
          type: integer
      required:
      - collection
      - cursor
      - limit
      - next_cursor
      - returned
      - total
      type: object
x-metagraphed:
  canonical_artifact_base_path: /metagraph
  contract_version: 2026-07-03.2
  generated_at: '1970-01-01T00:00:00.000Z'
  notes: OpenAPI describes Worker response envelopes and canonical artifact payloads. Raw /metagraph JSON remains the reviewed source contract.
  schema_version: 1