surewhynot-app X402 API

The X402 API from surewhynot-app — 6 operation(s) for x402.

Operations 6

GET /v1/x402/discover Search the Coinbase x402 Bazaar #
GET /v1/x402/merchant List a merchant's x402 Bazaar resources #
GET /v1/x402/price-normalize Convert USDC between atomic units and human decimals #
GET /v1/x402/test-vector Example x402 payment requirements (free) #
GET /v1/x402/inspect Inspect and lint any x402 paid endpoint's payment challenge #
GET /v1/x402/simulate Pre-flight an x402 payment: cost per rail and affordability #

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/surewhynot-app:surewhynot-app-x402-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

surewhynot-app-x402-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quartermaster X402 API
  version: 1.6.0
  description: Small, reliable utility APIs for AI agents. Paid endpoints charge per call in USDC over the x402 protocol (HTTP 402 flow) - no accounts, no API keys. Free endpoints are open.
  contact:
    url: https://quartermaster.surewhynot.app
servers:
- url: https://quartermaster.surewhynot.app
tags:
- name: X402
paths:
  /v1/x402/discover:
    get:
      summary: Search the Coinbase x402 Bazaar
      parameters:
      - name: query
        in: query
        required: true
        description: Natural-language search
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Max results (1-20)
        schema:
          type: integer
          default: 10
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                type: object
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                type: object
      x-payment:
        protocol: x402
        price: $0.001
        currency: USDC
        note: Unpaid requests receive 402 Payment Required with machine-readable payment requirements.
      tags:
      - X402
      operationId: getV1X402Discover
      x-operation-id-source: derived
  /v1/x402/merchant:
    get:
      summary: List a merchant's x402 Bazaar resources
      parameters:
      - name: payTo
        in: query
        required: true
        description: Merchant wallet address
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Max results (1-50)
        schema:
          type: integer
          default: 20
      responses:
        '200':
          description: Listed resources
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid address
          content:
            application/json:
              schema:
                type: object
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                type: object
      x-payment:
        protocol: x402
        price: $0.001
        currency: USDC
        note: Unpaid requests receive 402 Payment Required with machine-readable payment requirements.
      tags:
      - X402
      operationId: getV1X402Merchant
      x-operation-id-source: derived
  /v1/x402/price-normalize:
    get:
      summary: Convert USDC between atomic units and human decimals
      parameters:
      - name: amount
        in: query
        required: true
        description: Amount to convert
        schema:
          type: string
      - name: decimals
        in: query
        required: false
        description: Token decimals (USDC=6)
        schema:
          type: integer
          default: 6
      - name: direction
        in: query
        required: false
        description: to-human (default) or to-atomic
        schema:
          type: string
          enum:
          - to-human
          - to-atomic
      responses:
        '200':
          description: Converted amount
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                type: object
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                type: object
      x-payment:
        protocol: x402
        price: $0.001
        currency: USDC
        note: Unpaid requests receive 402 Payment Required with machine-readable payment requirements.
      tags:
      - X402
      operationId: getV1X402PriceNormalize
      x-operation-id-source: derived
  /v1/x402/test-vector:
    get:
      summary: Example x402 payment requirements (free)
      responses:
        '200':
          description: Annotated example 402 body
          content:
            application/json:
              schema:
                type: object
      tags:
      - X402
      operationId: getV1X402TestVector
      x-operation-id-source: derived
  /v1/x402/inspect:
    get:
      summary: Inspect and lint any x402 paid endpoint's payment challenge
      description: Decodes the 402 payment requirements, names the network and asset, and flags misconfigurations including missing Bazaar discovery metadata.
      parameters:
      - name: url
        in: query
        required: true
        description: x402 endpoint to inspect
        schema:
          type: string
          format: uri
      responses:
        '200':
          description: Inspection report
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                type: object
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                type: object
      x-payment:
        protocol: x402
        price: $0.002
        currency: USDC
        note: Unpaid requests receive 402 Payment Required with machine-readable payment requirements.
      tags:
      - X402
      operationId: getV1X402Inspect
      x-operation-id-source: derived
  /v1/x402/simulate:
    get:
      summary: 'Pre-flight an x402 payment: cost per rail and affordability'
      description: Decodes an endpoint's 402 challenge, reports the price on every rail it offers (Base and Solana) and the cheapest, and — with an optional payer address — verifies the wallet can afford the call on Base.
      parameters:
      - name: url
        in: query
        required: true
        description: The x402 endpoint to pre-flight
        schema:
          type: string
          format: uri
      - name: address
        in: query
        required: false
        description: Optional payer wallet (0x…) for a Base affordability check
        schema:
          type: string
      responses:
        '200':
          description: Simulation report
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                type: object
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                type: object
      x-payment:
        protocol: x402
        price: $0.003
        currency: USDC
        note: Unpaid requests receive 402 Payment Required with machine-readable payment requirements.
      tags:
      - X402
      operationId: getV1X402Simulate
      x-operation-id-source: derived
externalDocs:
  description: 'Buyer quickstart: how to pay with x402'
  url: https://quartermaster.surewhynot.app/buyers