KG-NINJA Operations API

Availability and operational status

Operations 3

GET /health Get service liveness and availability #
GET /stats Get privacy-safe service activity and readiness metrics #
GET /goal Get the active revenue goal and next improvement #

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/kgninja-dev:kgninja-dev-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

kgninja-dev-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Agent Verification Utility Operations API
  version: 0.4.3
  description: A deterministic, x402-paid JSON evidence verification service for external agents. The service attests that declared checks were executed; it does not attest real-world truth.
  license:
    name: UNLICENSED
servers:
- url: /
  description: Relative to the current deployment origin
security: []
tags:
- name: Operations
  description: Availability and operational status
paths:
  /health:
    get:
      operationId: getHealth
      summary: Get service liveness and availability
      tags:
      - Operations
      responses:
        '200':
          description: Service is available or degraded
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Kill switch or maintenance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
  /stats:
    get:
      operationId: getPublicStats
      summary: Get privacy-safe service activity and readiness metrics
      tags:
      - Operations
      responses:
        '200':
          description: Aggregate service metrics without payer or evidence data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicStats'
        '503':
          $ref: '#/components/responses/Unavailable'
  /goal:
    get:
      operationId: getRevenueGoalStatus
      summary: Get the active revenue goal and next improvement
      description: Returns privacy-safe funnel metrics, conservative contribution margin, goal progress, and the next bounded improvement recommendation. Reading this resource never changes price, spends funds, or sends messages.
      tags:
      - Operations
      responses:
        '200':
          description: Active goal status or not_configured
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevenueGoalStatus'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    PaidVerificationBinding:
      type: object
      description: The immutable spend binding. quoted/payment_required have no paid receipt or refusal; refused has a refusal reason and no paid receipt; delivered has a paid receipt and no refusal reason, including when deterministic verification outcome is fail.
      additionalProperties: false
      required:
      - schema_version
      - binding_digest
      - precheck_receipt_digest
      - request_hash
      - evidence_digest
      - policy_version
      - price_cap_atomic
      - quoted_amount_atomic
      - network
      - asset
      - pay_to
      - quote_id
      - expires_at
      - discovery_survived
      - state
      - paid_receipt_id
      - refusal_reason
      properties:
        schema_version:
          type: string
          const: agent-economy/paid-verification-binding/1.0
        binding_digest:
          $ref: '#/components/schemas/Sha256Digest'
        precheck_receipt_digest:
          $ref: '#/components/schemas/Sha256Digest'
        request_hash:
          $ref: '#/components/schemas/Sha256Digest'
        evidence_digest:
          $ref: '#/components/schemas/Sha256Digest'
        policy_version:
          type: string
          const: agent-economy/precheck-policy/2.0
        price_cap_atomic:
          type: string
          maxLength: 16
          pattern: ^[1-9][0-9]*$
        quoted_amount_atomic:
          type: string
          maxLength: 16
          pattern: ^[1-9][0-9]*$
        network:
          type: string
          enum:
          - eip155:84532
          - eip155:8453
        asset:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        pay_to:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
        quote_id:
          type: string
          pattern: ^qte_[A-Za-z0-9_-]+$
        expires_at:
          type: string
          format: date-time
        discovery_survived:
          type: boolean
          const: true
        state:
          type: string
          enum:
          - quoted
          - payment_required
          - delivered
          - refused
        paid_receipt_id:
          oneOf:
          - type: string
            pattern: ^rcpt_[A-Za-z0-9_-]+$
          - type: 'null'
        refusal_reason:
          oneOf:
          - type: string
            pattern: ^[A-Z0-9_]+$
          - type: 'null'
      oneOf:
      - properties:
          state:
            enum:
            - quoted
            - payment_required
          paid_receipt_id:
            type: 'null'
          refusal_reason:
            type: 'null'
      - properties:
          state:
            const: delivered
          paid_receipt_id:
            type: string
            pattern: ^rcpt_[A-Za-z0-9_-]+$
          refusal_reason:
            type: 'null'
      - properties:
          state:
            const: refused
          paid_receipt_id:
            type: 'null'
          refusal_reason:
            type: string
            pattern: ^[A-Z0-9_]+$
    Sha256Digest:
      type: string
      pattern: ^sha256:[a-f0-9]{64}$
    ErrorResponse:
      type: object
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: object
          additionalProperties: false
          required:
          - code
          - message
          - request_id
          - retryable
          properties:
            code:
              type: string
              pattern: ^[A-Z0-9_]+$
            message:
              type: string
            request_id:
              type: string
            retryable:
              type: boolean
            details:
              type: object
              properties:
                paid_verification_binding:
                  $ref: '#/components/schemas/RefusedPaidVerificationBinding'
              additionalProperties: true
    HealthResponse:
      type: object
      additionalProperties: false
      required:
      - status
      - service
      - version
      - checks
      - time
      properties:
        status:
          type: string
          enum:
          - ok
          - degraded
          - maintenance
        service:
          type: string
          const: agent-verification-utility
        version:
          type: string
        checks:
          type: object
          additionalProperties: false
          required:
          - deploy_enabled
          - runtime_enabled
          - payments_enabled
          - cost_basis_fresh
          properties:
            deploy_enabled:
              type: boolean
            runtime_enabled:
              type: boolean
            payments_enabled:
              type: boolean
            cost_basis_fresh:
              type: boolean
        time:
          type: string
          format: date-time
    RefusedPaidVerificationBinding:
      allOf:
      - $ref: '#/components/schemas/PaidVerificationBinding'
      - properties:
          state:
            const: refused
    RevenueGoalStatus:
      type: object
      required:
      - schema_version
      - status
      - generated_at
      properties:
        schema_version:
          type: string
          const: agent-economy/revenue-goal/1.0
        status:
          type: string
          enum:
          - not_configured
          - active
          - paused
          - completed
          - expired
        goal:
          type: object
          additionalProperties: true
        measurement:
          type: object
          additionalProperties: true
        progress:
          type: object
          additionalProperties: true
        next_improvement:
          type: object
          additionalProperties: true
        latest_evaluation:
          type:
          - object
          - 'null'
          additionalProperties: true
        message:
          type: string
        generated_at:
          type: string
          format: date-time
      additionalProperties: true
    PublicStats:
      type: object
      additionalProperties: false
      required:
      - schema_version
      - service
      - version
      - availability
      - payment
      - operator_identity
      - activity
      - operations
      - generated_at
      properties:
        schema_version:
          type: string
          const: agent-economy/public-stats/1.0
        service:
          type: string
          const: agent-verification-utility
        version:
          type: string
        availability:
          type: string
          enum:
          - available
          - degraded
        payment:
          type: object
          additionalProperties: true
        operator_identity:
          type: object
          additionalProperties: true
        activity:
          type: object
          additionalProperties: true
        operations:
          type: object
          additionalProperties: true
        generated_at:
          type: string
          format: date-time
  responses:
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 1
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unavailable:
      description: Kill switch, maintenance, budget exhaustion, facilitator outage, or unavailable cost basis
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    agentRegistration:
      type: http
      scheme: bearer
      bearerFormat: signed anonymous registration receipt
      description: Optional 15-minute service-local receipt used only to inspect its own registration claim. It grants no API access and does not authorize payment.