Overwing Preflight API

Overwing Preflight: should an agent sign this Solana transaction? Simulates the unsigned transaction, compares what it would take from the wallet against the caller's policy, and answers allow or refuse. Every verdict is published.

GitHub OpenAPI

Operations 9

GET /api/v1/preflight What Preflight checks, the policy fields, the reason codes, the guarantee and… #
GET /api/v1/preflight/x402 How to check an x402 payment before signing it #
POST /api/v1/preflight/x402 Should the agent sign this x402 payment? #
POST /api/v1/preflight/checks Check one unsigned Solana transaction against a policy before an agent signs it. #
GET /api/v1/preflight/checks/{id} The public record of one verdict and of every transaction reported against it. #
POST /api/v1/preflight/checks/{id}/reports Report the transaction that landed after a verdict. #
GET /api/v1/preflight/record The public record: counts, every miss, the latest verdicts, and what the… #
POST /api/x402/preflight Check one unsigned Solana transaction and pay $0.01 in USDC (x402), no account #
POST /api/x402/preflight/x402 Should the agent sign this x402 payment? #

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/overwing-ai:overwing-ai-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

overwing-ai-preflight-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Overwing Preflight API
  version: 0.21.0
  contact:
    name: Overwing
    email: support@overwing.ai
    url: https://overwing.ai
  x-guidance: 'To check text before it is sent or acted on, POST /api/x402/evaluate with {"input": "<text>"} and pay $0.002 in USDC over x402; branch on recommended_action in the response (block, redact, review, allow). The text can be in any language; responses are in English, and GET /api/v1/languages lists the languages tested. Add rule_set "outbound-message" and a context object (recipient, channel, owns_contact_info) when the text is a message to a known recipient. To identify a bot, GET /api/x402/atlas/lookup?user_agent=<string> for $0.001. To try either with no payment and no key, call POST /api/v1/evaluate or GET /api/v1/atlas/lookup with no Authorization header, 10 a day each. Everything under /api/v1 other than those two needs a key from POST /api/v1/signup. Full guide: /llms.txt.'
  summary: Guardrails that check text before an agent sends it, open data on AI agents (Atlas), a check of whether a site is reachable by agents (Beacon), and clearance for agents on legacy systems (Tower).
  description: 'Overwing makes five products, all in this API. Preflight (/api/v1/preflight): one check of an unsigned Solana transaction against the caller''s policy, answering allow or refuse before an agent signs it. Guardrails (/api/v1/evaluate): send any text and a rule set slug; receive a pass/fail/review verdict per rule and in aggregate, one recommended action (block, redact, review, allow) and calibrated confidence, typically in under 500 ms. Atlas (/api/v1/atlas): a registry of AI crawlers, fetchers and browser agents, and a lookup that says what a User-Agent claims to be and whether the claim can be verified. Beacon (/api/v1/beacon): one paid lookup that says whether a site is reachable by agents, that is whether they can find it, read it and use it; $1 over x402 at /api/x402/beacon, or $5 by card. Tower (/api/v1/tower): typed operations on legacy business systems, where each write is executed, sent to a person for review, or refused, with a signed receipt for every step; in pilot, against a mock adapter. POST /api/v1/evaluate and GET /api/v1/atlas/lookup work with no key, 10 calls a day each; everything else takes `Authorization: Bearer ow_live_...` from POST /api/v1/signup (Tower actions take an agent key, `ow_agent_...`). Every error is `{ "error": "..." }`. The same operations are available over MCP (hosted at /mcp, or the overwing-mcp npm package) and, for evaluate and lookup, over A2A at /a2a. Plain-text guide at /llms.txt; human-readable reference at /docs.'
servers:
- url: https://overwing.ai
security:
- bearerAuth: []
tags:
- name: Preflight
  description: 'Overwing Preflight: should an agent sign this Solana transaction? Simulates the unsigned transaction, compares what it would take from the wallet against the caller''s policy, and answers allow or refuse. Every verdict is published.'
paths:
  /api/v1/preflight:
    get:
      tags:
      - Preflight
      operationId: preflightOverview
      summary: What Preflight checks, the policy fields, the reason codes, the guarantee and…
      security: []
      responses:
        '200':
          description: Overview
          content:
            application/json:
              schema:
                type: object
  /api/v1/preflight/x402:
    get:
      tags:
      - Preflight
      operationId: describePreflightX402
      summary: How to check an x402 payment before signing it
      security: []
      responses:
        '200':
          description: Description
          content:
            application/json:
              schema:
                type: object
    post:
      tags:
      - Preflight
      operationId: preflightX402
      summary: Should the agent sign this x402 payment?
      security:
      - {}
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - payment_required
              properties:
                payment_required:
                  description: The PAYMENT-REQUIRED header value (base64) or its decoded JSON
                  oneOf:
                  - type: string
                  - type: object
                requested_url:
                  type: string
                  format: uri
                network:
                  type: string
                  description: CAIP-2 network to pay on
                policy:
                  type: object
                  properties:
                    max_per_call_usd:
                      type: number
                    new_payee_max_usd:
                      type: number
                    allowed_networks:
                      type: array
                      items:
                        type: string
                    allowed_payees:
                      type: array
                      items:
                        type: string
                    blocked_payees:
                      type: array
                      items:
                        type: string
                    allow_testnets:
                      type: boolean
                    max_price_drift:
                      type: number
                fresh_quote:
                  type: boolean
                  description: Also fetch the resource unpaid and compare its quote
      responses:
        '200':
          description: Verdict
          content:
            application/json:
              schema:
                type: object
                properties:
                  decision:
                    type: string
                    enum:
                    - allow
                    - review
                    - refuse
                  reasons:
                    type: array
                  terms:
                    type: object
                  payee:
                    type: object
                  price:
                    type: object
        '400':
          description: payment_required missing or unreadable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Daily allowance for this address used
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/preflight/checks:
    post:
      tags:
      - Preflight
      operationId: preflightCheck
      summary: Check one unsigned Solana transaction against a policy before an agent signs it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreflightRequest'
            example:
              transaction: <base64 serialized transaction>
              policy:
                wallet: <the wallet that signs>
                max_sol_out: 0.05
                allowed_programs:
                - '11111111111111111111111111111111'
      responses:
        '200':
          description: 'The verdict: allow or refuse, with every reason'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightVerdict'
        '400':
          description: transaction or policy is missing or malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Daily allowance reached and no prepaid credits left
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The Solana node could not be reached; no verdict was given
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Preflight is not enabled on this deployment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/preflight/checks/{id}:
    get:
      tags:
      - Preflight
      operationId: preflightVerdict
      summary: The public record of one verdict and of every transaction reported against it.
      security: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The verdict as published
          content:
            application/json:
              schema:
                type: object
        '404':
          description: No such verdict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/preflight/checks/{id}/reports:
    post:
      tags:
      - Preflight
      operationId: preflightReport
      summary: Report the transaction that landed after a verdict.
      security: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - signature
              properties:
                signature:
                  type: string
                  description: The landed transaction's signature in base58
      responses:
        '200':
          description: The outcome
          content:
            application/json:
              schema:
                type: object
                properties:
                  outcome:
                    type: string
                    enum:
                    - miss
                    - not_a_miss
                  why:
                    type:
                    - string
                    - 'null'
                  covered:
                    type: boolean
        '400':
          description: signature is not a transaction signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such verdict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Too many reports from this address today
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: The Solana node could not be reached; nothing was recorded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/v1/preflight/record:
    get:
      tags:
      - Preflight
      operationId: preflightRecord
      summary: 'The public record: counts, every miss, the latest verdicts, and what the…'
      security: []
      responses:
        '200':
          description: The record
          content:
            application/json:
              schema:
                type: object
        '503':
          description: The record is not available right now
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/x402/preflight:
    post:
      tags:
      - Preflight
      operationId: x402Preflight
      summary: Check one unsigned Solana transaction and pay $0.01 in USDC (x402), no account
      security: []
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.010000'
        protocols:
        - x402: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreflightRequest'
      responses:
        '200':
          description: The verdict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightVerdict'
        '400':
          description: transaction or policy is missing or malformed; not charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Payment required
        '502':
          description: The Solana node could not be reached; not charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/x402/preflight/x402:
    post:
      tags:
      - Preflight
      operationId: x402PreflightX402
      summary: Should the agent sign this x402 payment?
      security: []
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - payment_required
              properties:
                payment_required:
                  description: The PAYMENT-REQUIRED header value (base64 JSON) or the decoded x402 v2 object
                requested_url:
                  type: string
                network:
                  type: string
                policy:
                  type: object
                fresh_quote:
                  type: boolean
      responses:
        '200':
          description: 'The verdict: decision, reasons, terms, payee, price'
          content:
            application/json:
              schema:
                type: object
        '400':
          description: payment_required is missing or not x402 terms; not charged
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Payment required
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message
    PreflightVerdict:
      type: object
      properties:
        id:
          type: string
        decision:
          type: string
          enum:
          - allow
          - refuse
          description: The one field to branch on. Sign only on allow
        reasons:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              detail:
                type: string
          description: Every reason to refuse. Empty on an allow. Codes are listed at GET /api/v1/preflight
        effects:
          type:
          - object
          - 'null'
          description: 'What the simulation says would happen to the wallet: sol_out_lamports, token_out, token_in (atomic units as strings, by mint) and control changes. Null when it could not be simulated'
        programs:
          type: array
          items:
            type: string
          description: Every program the transaction would run
        digest:
          type: string
          description: sha256 of the message with its blockhash zeroed
        slot:
          type:
          - integer
          - 'null'
        covered:
          type: boolean
          description: 'Whether the guarantee applies: an allow made only of programs Overwing names'
        decided_at:
          type: string
          format: date-time
        valid_for_seconds:
          type: integer
          description: A verdict covers a transaction that lands within this many seconds
        receipt:
          type: object
          description: The published payload, its hash, and an Ed25519 signature over the hash
        record_url:
          type: string
    PreflightRequest:
      type: object
      required:
      - transaction
      - policy
      properties:
        transaction:
          type: string
          maxLength: 2000
          description: The serialized Solana transaction in base64, legacy or v0, signed or not. Signatures are ignored
        policy:
          type: object
          required:
          - wallet
          additionalProperties: false
          properties:
            wallet:
              type: string
              description: The address to protect. It must sign the transaction
            max_sol_out:
              type: number
              minimum: 0
              description: Required unless max_sol_out_lamports is given. The most SOL the transaction may take from the wallet, fees included
            max_sol_out_lamports:
              type:
              - integer
              - string
              description: The same limit as a whole number of lamports
            max_token_out:
              type: object
              additionalProperties:
                type:
                - integer
                - string
              description: Atomic units that may leave, by mint. A mint not listed may not leave at all
            min_token_in:
              type: object
              additionalProperties:
                type:
                - integer
                - string
              description: Atomic units that must arrive, by mint
            allowed_programs:
              type: array
              items:
                type: string
              description: When given, every program the transaction runs, top-level or inner, must be listed
            allow_delegation:
              type: boolean
              default: false
              description: Whether a spending approval on the wallet's token accounts is acceptable
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ow_live_<32 hex>
      description: 'API key from the dashboard, from POST /api/v1/api-keys, or from POST /api/v1/signup (one call, no browser). A key has a scope: full (every endpoint) or evaluate (POST evaluate and evaluate/batch, GET rule-sets, me, usage and the Atlas reads; everything else answers 403). Give agents an evaluate key.'