Metagraphed API Dx API

The api-dx API from Metagraphed — 1 operation(s) for api-dx.

GitHub OpenAPI

Operations 1

GET /api/v1/agent-resources Agent resources #

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-api-dx-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-api-dx-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 API Dx 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: api-dx
paths:
  /api/v1/agent-resources:
    get:
      description: 'Fetch the AI-resources index: the copyable agent (/agent.md), the MCP server + its tools, the skill, llms.txt, OpenAPI, and the agent-facing APIs.'
      operationId: agentResources
      parameters: []
      responses:
        '200':
          content:
            application/json:
              examples:
                AgentResourcesArtifactResponse:
                  $ref: '#/components/examples/AgentResourcesArtifactResponse'
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/AgentResourcesArtifact'
                  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:
      - api-dx
      x-metagraphed-mainnet-only: true
      x-metagraphed-networks:
      - mainnet
      summary: Agent resources
      x-summary-source: derived
components:
  schemas:
    AgentResourcesArtifact:
      additionalProperties: false
      properties:
        content_hash:
          description: Deterministic fingerprint of this artifact's content, so a consumer can tell a rebuild that changed nothing from one that changed something -- `generated_at` is an epoch stamp on local/CI builds and cannot (#349).
          type: string
        contract_version:
          type: string
        copyable_agent:
          additionalProperties: false
          properties:
            description:
              type: string
            title:
              type: string
            url:
              format: uri
              type: string
          required:
          - url
          type: object
        generated_at:
          type: string
        mcp:
          additionalProperties: false
          properties:
            core_endpoint:
              description: 'The core listing profile: 23 tools instead of 243. Filters tools/list only -- a core session can still call every tool.'
              format: uri
              type: string
            endpoint:
              format: uri
              type: string
            install:
              type: string
            recommended_endpoint:
              description: The endpoint a first-time caller should connect to, which `install` uses.
              format: uri
              type: string
            server_card:
              format: uri
              type: string
            tools:
              items:
                additionalProperties: false
                properties:
                  name:
                    type: string
                  title:
                    type:
                    - string
                    - 'null'
                required:
                - name
                type: object
              type: array
            transport:
              type: string
          required:
          - endpoint
          - install
          - tools
          type: object
        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.
        published_at:
          description: Real publish time from the KV latest pointer, distinct from `generated_at`. Null before the first publish, and on local/deterministic builds.
          type:
          - string
          - 'null'
        resources:
          items:
            additionalProperties: false
            properties:
              id:
                type: string
              install:
                description: Copy-pasteable install command, for the resources that have one.
                type: string
              kind:
                type: string
              title:
                type: string
              url:
                format: uri
                type: string
            required:
            - id
            - title
            - url
            type: object
          type: array
        schema_version:
          const: 1
          type: number
        summary:
          additionalProperties: false
          properties:
            callable_service_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
            subnet_count:
              maximum: 9007199254740991
              minimum: 0
              type: integer
          required:
          - subnet_count
          - callable_service_count
          type: object
      required:
      - generated_at
      - schema_version
      - copyable_agent
      - mcp
      - resources
      type: object
    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
    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
    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
  headers:
    ETag:
      schema:
        type: string
    ContractVersion:
      schema:
        type: string
    CacheControl:
      schema:
        type: string
  examples:
    AgentResourcesArtifactResponse:
      value:
        data:
          content_hash: a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1a3f1
          contract_version: 2026-06-29.1
          copyable_agent:
            description: Example description.
            title: Example Subnet
            url: https://api.metagraph.sh/example
          generated_at: '2026-06-01T00:00:00.000Z'
          mcp:
            core_endpoint: https://api.metagraph.sh/example
            endpoint: https://api.metagraph.sh/example
            install: example
            recommended_endpoint: https://api.metagraph.sh/example
            server_card: https://api.metagraph.sh/example
            tools:
            - name: Example Subnet
            transport: example
          notes: Example description.
          published_at: '2026-06-01T00:00:00.000Z'
          resources:
          - id: example
            title: Example Subnet
            url: https://api.metagraph.sh/example
          schema_version: 1
          summary:
            callable_service_count: 1
            subnet_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
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