Machine Economy Observatory Preflight API

The Preflight API from Machine Economy Observatory — 1 operation(s) for preflight.

GitHub OpenAPI

Operations 1

POST /v1/preflight Compare a proposed payment with a bounded historical snapshot #

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/machineeconomyobservatory-com:machineeconomyobservatory-com-preflight-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

machineeconomyobservatory-com-preflight-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MEO Public Pilot Preflight API
  version: 0.2.0
  description: 'Before an autonomous agent pays a machine service, MEO Preflight compares the proposed resource, payment destination, network, asset and amount with independently observed economic history. It returns dated matches, material changes, economic activity context, evidence freshness and explicit unknowns. Read-only; it does not execute or approve payments and never treats missing evidence as safe. Pilot scope: two services; third-party public probe observations retained by MEO, not independently verified settlements. Settlement/buyer history, current activity and payment destination history are UNKNOWN. Evidence may be stale.'
servers:
- url: https://api.machineeconomyobservatory.com
security: []
tags:
- name: Preflight
paths:
  /v1/preflight:
    post:
      operationId: preflightPayment
      summary: Compare a proposed payment with a bounded historical snapshot
      description: Exact resource lookup; amount uses decimal asset units. No live probe or payment. A successful lookup may still return UNKNOWN or INSUFFICIENT_EVIDENCE. Do not send credentials or signatures. Maximum body size 4096 bytes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreflightInput'
            example:
              resource: https://blockrun.ai/api/v1/exa/search
              payTo: '0x0000000000000000000000000000000000000001'
              network: eip155:8453
              asset: USDC
              amount: '0.011'
      responses:
        '200':
          description: Historical context, material difference, or UNKNOWN
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightResult'
        '400':
          description: Malformed JSON or invalid fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '405':
          description: Method not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Body exceeds 4096 bytes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Unsupported media type or content encoding
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Unsupported network or asset; structured insufficient-evidence response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightResult'
        '500':
          description: Internal error; no internal details exposed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Preflight
components:
  schemas:
    PreflightInput:
      type: object
      properties:
        resource:
          type: string
          format: uri
          maxLength: 2048
          description: Public HTTPS resource URL, no query, credentials or fragment. Exact resource matching only; never fetched.
        payTo:
          type: string
          minLength: 1
          maxLength: 128
          description: Proposed recipient; EVM networks require a 0x-prefixed 40-hex-character address. Never logged or interpreted as wallet ownership.
        network:
          type: string
          minLength: 1
          maxLength: 64
          pattern: ^[a-z0-9-]+:[a-zA-Z0-9_-]+$
          description: CAIP-style network; v0.1 supports eip155:8453 only.
        asset:
          type: string
          minLength: 1
          maxLength: 128
          pattern: ^[A-Za-z0-9:._/-]+$
          description: v0.1 supports source-reported USDC currency label only; no token contract validation.
        amount:
          type: string
          pattern: ^(0|[1-9][0-9]{0,23})(\.[0-9]{1,6})?$
          description: Nonnegative decimal asset units, maximum six decimal places. Not atomic units. No exponent notation.
      required:
      - resource
      - payTo
      - network
      - asset
      - amount
      additionalProperties: false
    Error:
      type: object
      properties:
        request_id:
          type: string
          format: uuid
        error:
          type: string
      required:
      - request_id
      - error
      additionalProperties: false
    PreflightResult:
      type: object
      properties:
        request_id:
          type: string
          format: uuid
        version:
          const: 0.1.0
        result_state:
          type: string
          enum:
          - HISTORICAL_CONTEXT
          - MATERIAL_DIFFERENCE
          - UNKNOWN
          - UNSUPPORTED
        evidence_outcome:
          const: INSUFFICIENT_EVIDENCE
        match_status:
          type: string
          enum:
          - EXACT_RESOURCE
          - UNRESOLVED
        resolved_service:
          anyOf:
          - type: 'null'
          - type: object
            properties:
              id:
                type: string
              name:
                type: string
              resource:
                type: string
                format: uri
            required:
            - id
            - name
            - resource
            additionalProperties: false
        economic_history:
          type: object
          properties:
            state:
              type: string
              enum:
              - PAYMENT_TERMS_OBSERVED
              - UNKNOWN
            settlement_state:
              const: UNKNOWN
            observation_count:
              type: integer
              minimum: 0
            payment_term_observation_count:
              type: integer
              minimum: 0
            history_change_state:
              type: string
              enum:
              - UNKNOWN
              - CHANGE_OBSERVED
              - NO_CHANGE_IN_CAPTURED_TERMS
            payment_destination_history:
              const: UNKNOWN
          required:
          - state
          - settlement_state
          - observation_count
          - payment_term_observation_count
          - history_change_state
          - payment_destination_history
          additionalProperties: false
        current_activity:
          type: object
          properties:
            state:
              const: UNKNOWN
            last_reported_status:
              type:
              - string
              - 'null'
            observed_at:
              type:
              - string
              - 'null'
              format: date-time
          required:
          - state
          - last_reported_status
          - observed_at
          additionalProperties: false
        material_findings:
          type: array
          items:
            type: string
        payment_term_comparisons:
          type: object
          properties:
            network:
              type: string
              enum:
              - UNKNOWN
              - MATCH
              - DIFFERENT_FROM_OBSERVED
            asset:
              type: string
              enum:
              - UNKNOWN
              - MATCH
              - DIFFERENT_FROM_OBSERVED
            amount:
              type: string
              enum:
              - UNKNOWN
              - WITHIN_OBSERVED_RANGE
              - OUTSIDE_OBSERVED_RANGE
            payTo:
              type: string
              enum:
              - UNKNOWN
              - MATCH
              - DIFFERENT_FROM_OBSERVED
            observed_terms:
              anyOf:
              - type: 'null'
              - type: object
                properties:
                  networks:
                    type: array
                    items:
                      type: string
                  asset:
                    type: string
                  amount_min:
                    type: string
                  amount_max:
                    type: string
                  payTo:
                    type:
                    - string
                    - 'null'
                required:
                - networks
                - asset
                - amount_min
                - amount_max
                - payTo
                additionalProperties: false
            observed_at:
              type:
              - string
              - 'null'
              format: date-time
            amount_unit:
              const: decimal_asset_units
            basis:
              const: LAST_CAPTURED_TERMS_ONLY
          required:
          - network
          - asset
          - amount
          - payTo
          - observed_terms
          - observed_at
          - amount_unit
          - basis
          additionalProperties: false
        evidence_freshness:
          type: object
          properties:
            state:
              type: string
              enum:
              - UNKNOWN
              - RECENT_SNAPSHOT
              - STALE
            latest_observed_at:
              type:
              - string
              - 'null'
              format: date-time
            retrieved_at:
              type:
              - string
              - 'null'
              format: date-time
            age_seconds:
              type:
              - integer
              - 'null'
              minimum: 0
            stale_after_seconds:
              const: 86400
          required:
          - state
          - latest_observed_at
          - retrieved_at
          - age_seconds
          - stale_after_seconds
          additionalProperties: false
        evidence_confidence:
          type: object
          properties:
            strength:
              type: string
              enum:
              - LIMITED
              - NONE
            basis:
              type: string
              enum:
              - SINGLE_THIRD_PARTY_SOURCE_UNVERIFIED
              - NO_MATCHING_PUBLIC_EVIDENCE
          required:
          - strength
          - basis
          additionalProperties: false
        evidence:
          type: object
          properties:
            snapshot_id:
              type: string
            sources:
              type: array
              items:
                type: string
                format: uri
          required:
          - snapshot_id
          - sources
          additionalProperties: false
        limitations:
          type: array
          items:
            type: string
      required:
      - request_id
      - version
      - result_state
      - evidence_outcome
      - match_status
      - resolved_service
      - economic_history
      - current_activity
      - material_findings
      - payment_term_comparisons
      - evidence_freshness
      - evidence_confidence
      - evidence
      - limitations
      additionalProperties: false