Metagraphed Alerts API

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

GitHub OpenAPI

Operations 1

GET /api/v1/alerts/triggers/{id} Alert trigger #

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-alerts-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-alerts-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 Alerts 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: Alerts
paths:
  /api/v1/alerts/triggers/{id}:
    get:
      description: 'Read back one alert trigger: what it watches (`table_filter` plus the four narrowing fields `netuid`, `event_kind`, `account`, `min_amount_tao` -- all nullable, so a trigger that sets none of them matches every event on its table), where it delivers (`channel`, `destination`), whether it is `active`, and its firing record. `last_matched_at` is null until the trigger has fired once, which is NOT the same as `match_count: 0` -- a trigger created and immediately disabled shows the latter too. Requires the owner token issued at creation; it is not recoverable if lost. Mirrored by the `get_alert_trigger` MCP tool. Served live (no static file).'
      operationId: alertTrigger
      parameters:
      - description: The alert trigger's id, as returned when it was created.
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                AlertTriggerArtifactResponse:
                  $ref: '#/components/examples/AlertTriggerArtifactResponse'
              schema:
                allOf:
                - $ref: '#/components/schemas/SuccessEnvelope'
                - properties:
                    data:
                      $ref: '#/components/schemas/AlertTriggerArtifact'
                  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:
      - Alerts
      x-metagraphed-mainnet-only: true
      x-metagraphed-networks:
      - mainnet
      summary: Alert trigger
      x-summary-source: derived
components:
  headers:
    ETag:
      schema:
        type: string
    ContractVersion:
      schema:
        type: string
    CacheControl:
      schema:
        type: string
  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
    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
    AlertTriggerArtifact:
      additionalProperties: false
      properties:
        account:
          type:
          - string
          - 'null'
        active:
          type: boolean
        channel:
          type: string
        created_at:
          type:
          - string
          - 'null'
        destination:
          type: string
        event_kind:
          type:
          - string
          - 'null'
        id:
          type: string
        last_matched_at:
          type:
          - string
          - 'null'
        match_count:
          maximum: 9007199254740991
          minimum: -9007199254740991
          type: integer
        min_amount_tao:
          type:
          - number
          - 'null'
        name:
          type:
          - string
          - 'null'
        netuid:
          anyOf:
          - maximum: 65535
            minimum: 0
            type: integer
          - type: 'null'
        table_filter:
          type:
          - string
          - 'null'
        updated_at:
          type:
          - string
          - 'null'
      required:
      - id
      - active
      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
  examples:
    AlertTriggerArtifactResponse:
      value:
        data:
          account: example
          active: false
          channel: example
          created_at: '2026-06-01T00:00:00.000Z'
          destination: example
          event_kind: example
          id: example
          last_matched_at: '2026-06-01T00:00:00.000Z'
          match_count: 1
          min_amount_tao: 0.5
          name: Example Subnet
          netuid: 7
          table_filter: example
          updated_at: '2026-06-01T00:00:00.000Z'
        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