SALT19 Proof402 API

The proof402 API from SALT19 — 3 operation(s) for proof402.

GitHub OpenAPI

Operations 3

POST /v1/commerce-decision Commerce Decision #
POST /v1/commerce-receipt Commerce Receipt #
POST /v1/commerce-verify Commerce Verify #

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/salt19-com:salt19-com-proof402-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

salt19-com-proof402-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SALT19 Agent Utility Grid Proof402 API
  version: 0.5.1
  description: SALT19 Agent Utility Grid with Proof402 machine-commerce preflight, x402 payment/delivery binding verification, Ed25519 signed receipts, and Merkle-batched audit evidence.
  contact:
    name: SALT19
    email: info@salt19.com
    url: https://salt19.com/
  x-guidance: Use the request schema for the selected POST utility. Paid routes use x402 v2 on Base mainnet with USDC. An unpaid request returns HTTP 402 with PAYMENT-REQUIRED; satisfy that challenge and retry the same request with the payment proof. Utility results are bounded decision-support evidence, not guarantees of security, compatibility, legal suitability, or runtime correctness.
  x-semantic-idempotency:
    required_for_paid_operations: true
    http_header: Idempotency-Key
    guarantee: one operation_id -> at most one durable execution effect and one successful economic transaction
    retry_rule: preserve the same operation ID after timeout or ambiguous response; never mint a new ID merely to retry the same intended purchase
  x-x402-client-compatibility:
    standard_clients_supported: true
    semantic_idempotency_header: recommended
    fallback: payment-proof-derived operation identity on paid retry
  x-proof402:
    version: proof402-v1
    commerce_root: SHA-256(domain || request_hash || offer_hash || policy_hash || payment_hash || settlement_hash || delivery_hash || nonce)
    receipt_signature: Ed25519
    free_verification: /proof402/receipts/{id}
  x-fresh-state-grid:
    version: 0.6.0
    positioning: live external state without buyer signup, subscriptions, or upstream API-key management
    acquisition_price_floor_usd: 0.01
  x-salt19-linked-verification:
    description: Receipt verification URLs are returned by paid decision/Proof402 results and require a concrete receipt identifier. They remain live runtime endpoints but are intentionally excluded from standalone agent discovery because an arbitrary probe has no valid receipt ID.
    routes:
    - /receipts/{id}
    - /proof402/receipts/{id}
  x-salt19-acquisition-router:
    version: free-tool-selection-v1
    start_here: /discover/find-tool
    pricing: /discover/pricing
    mcp_tools:
    - find-salt19-tool
    - salt19-pricing
    payment_preflight: x402-payment-preflight
servers:
- url: https://api.salt19.com
tags:
- name: proof402
paths:
  /v1/commerce-decision:
    post:
      operationId: commerce-decision
      summary: Commerce Decision
      description: 'Before an autonomous agent pays an x402 challenge, bind the request, accepted payment offer, and machine spending policy into a deterministic GO/WARN/BLOCK decision with SHA-256 commitments. Current x402 price: $0.01. A stable Idempotency-Key is required across challenge and paid retry.'
      tags:
      - proof402
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request:
                  type: object
                  properties:
                    method:
                      type: string
                      maxLength: 16
                    resource:
                      type: string
                      minLength: 1
                      maxLength: 2048
                    parameters:
                      type: object
                    body: {}
                    content_type:
                      type: string
                      maxLength: 128
                  required:
                  - resource
                  additionalProperties: false
                payment_required:
                  type: object
                  properties:
                    x402Version:
                      type: integer
                      enum:
                      - 2
                    resource:
                      type: object
                    accepts:
                      type: array
                      minItems: 1
                      maxItems: 16
                      items:
                        type: object
                    extensions:
                      type: object
                  required:
                  - x402Version
                  - accepts
                  additionalProperties: true
                policy:
                  type: object
                  properties:
                    max_amount_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    max_per_day_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    spend_24h_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    allowed_networks:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_assets:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    blocked_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    max_timeout_seconds:
                      type: integer
                      minimum: 1
                      maximum: 3600
                  additionalProperties: false
              required:
              - request
              - payment_required
              - policy
              additionalProperties: false
            example:
              request:
                method: POST
                resource: https://seller.example/v1/data
                body:
                  symbol: ETH
              payment_required:
                x402Version: 2
                accepts:
                - scheme: exact
                  network: eip155:8453
                  amount: '20000'
                  asset: '0x833589fCD6eDb6E08f4c7b7cC6A8Bf10A74A5f7'
                  payTo: '0x1111111111111111111111111111111111111111'
                  maxTimeoutSeconds: 60
              policy:
                max_amount_atomic: '50000'
                max_per_day_atomic: '5000000'
                spend_24h_atomic: '700000'
                allowed_networks:
                - eip155:8453
      responses:
        '200':
          description: Proof402 result
        '402':
          description: x402 Payment Required
        '428':
          description: Idempotency-Key required
      x-payment-info:
        price: $0.01
        network: eip155:8453
        protocols:
        - x402: {}
      x-proof402:
        security_authoritative_primitives:
        - SHA-256
        - Ed25519
        - Merkle tree
        experimental_mtb_crypto_in_trusted_path: false
  /v1/commerce-receipt:
    post:
      operationId: commerce-receipt
      summary: Commerce Receipt
      description: 'Verify an x402 commercial state and persist a signed Ed25519 Proof402 receipt whose Commerce State Root commits request, offer, policy, payment, settlement, and delivery evidence; receipts are later Merkle-batched for public inclusion proofs. Current x402 price: $0.03. A stable Idempotency-Key is required across challenge and paid retry.'
      tags:
      - proof402
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request:
                  type: object
                  properties:
                    method:
                      type: string
                      maxLength: 16
                    resource:
                      type: string
                      minLength: 1
                      maxLength: 2048
                    parameters:
                      type: object
                    body: {}
                    content_type:
                      type: string
                      maxLength: 128
                  required:
                  - resource
                  additionalProperties: false
                payment_required:
                  type: object
                  properties:
                    x402Version:
                      type: integer
                      enum:
                      - 2
                    resource:
                      type: object
                    accepts:
                      type: array
                      minItems: 1
                      maxItems: 16
                      items:
                        type: object
                    extensions:
                      type: object
                  required:
                  - x402Version
                  - accepts
                  additionalProperties: true
                payment_payload:
                  type: object
                settlement:
                  type: object
                policy:
                  type: object
                  properties:
                    max_amount_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    max_per_day_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    spend_24h_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    allowed_networks:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_assets:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    blocked_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    max_timeout_seconds:
                      type: integer
                      minimum: 1
                      maximum: 3600
                  additionalProperties: false
                delivery: {}
                expected_delivery:
                  type: object
                  properties:
                    required_fields:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    expected_sha256:
                      type: string
                      pattern: ^[0-9a-fA-F]{64}$
                  additionalProperties: false
                target_salt19_operation_id:
                  type: string
                  minLength: 8
                  maxLength: 128
              required:
              - request
              - payment_required
              - payment_payload
              - settlement
              - delivery
              additionalProperties: false
            example:
              request:
                method: POST
                resource: https://seller.example/v1/data
              payment_required:
                x402Version: 2
                accepts:
                - scheme: exact
                  network: eip155:8453
                  amount: '20000'
                  asset: 0x...
                  payTo: 0x...
                  maxTimeoutSeconds: 60
              payment_payload:
                x402Version: 2
                accepted:
                  scheme: exact
                  network: eip155:8453
                  amount: '20000'
                  asset: 0x...
                  payTo: 0x...
                payload:
                  signature: 0x...
                  authorization:
                    from: 0x...
                    to: 0x...
                    value: '20000'
                    validAfter: '0'
                    validBefore: '1999999999'
                    nonce: 0x...
              settlement:
                success: true
                transaction: 0x...
                network: eip155:8453
                payer: 0x...
              delivery:
                result: ok
      responses:
        '200':
          description: Proof402 result
        '402':
          description: x402 Payment Required
        '428':
          description: Idempotency-Key required
      x-payment-info:
        price: $0.03
        network: eip155:8453
        protocols:
        - x402: {}
      x-proof402:
        security_authoritative_primitives:
        - SHA-256
        - Ed25519
        - Merkle tree
        experimental_mtb_crypto_in_trusted_path: false
  /v1/commerce-verify:
    post:
      operationId: commerce-verify
      summary: Commerce Verify
      description: 'Verify that an x402 v2 payment payload, settlement evidence, original request, accepted offer, spending policy, and delivered response are mutually bound; SALT19 operations can additionally be checked against authoritative D1 commercial state. Current x402 price: $0.01. A stable Idempotency-Key is required across challenge and paid retry.'
      tags:
      - proof402
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          minLength: 8
          maxLength: 128
          pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$
        description: Recommended for the strongest semantic at-most-once retry contract. Standard x402 clients may omit it; SALT19 derives a compatibility operation identity from the payment proof and canonical purchase on paid retry.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                request:
                  type: object
                  properties:
                    method:
                      type: string
                      maxLength: 16
                    resource:
                      type: string
                      minLength: 1
                      maxLength: 2048
                    parameters:
                      type: object
                    body: {}
                    content_type:
                      type: string
                      maxLength: 128
                  required:
                  - resource
                  additionalProperties: false
                payment_required:
                  type: object
                  properties:
                    x402Version:
                      type: integer
                      enum:
                      - 2
                    resource:
                      type: object
                    accepts:
                      type: array
                      minItems: 1
                      maxItems: 16
                      items:
                        type: object
                    extensions:
                      type: object
                  required:
                  - x402Version
                  - accepts
                  additionalProperties: true
                payment_payload:
                  type: object
                settlement:
                  type: object
                policy:
                  type: object
                  properties:
                    max_amount_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    max_per_day_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    spend_24h_atomic:
                      type: string
                      pattern: ^[0-9]+$
                    allowed_networks:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_assets:
                      type: array
                      maxItems: 32
                      items:
                        type: string
                    allowed_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    blocked_payees:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    max_timeout_seconds:
                      type: integer
                      minimum: 1
                      maximum: 3600
                  additionalProperties: false
                delivery: {}
                expected_delivery:
                  type: object
                  properties:
                    required_fields:
                      type: array
                      maxItems: 64
                      items:
                        type: string
                    expected_sha256:
                      type: string
                      pattern: ^[0-9a-fA-F]{64}$
                  additionalProperties: false
                target_salt19_operation_id:
                  type: string
                  minLength: 8
                  maxLength: 128
              required:
              - request
              - payment_required
              - payment_payload
              - settlement
              - delivery
              additionalProperties: false
            example:
              request:
                method: POST
                resource: https://seller.example/v1/data
              payment_required:
                x402Version: 2
                accepts:
                - scheme: exact
                  network: eip155:8453
                  amount: '20000'
                  asset: 0x...
                  payTo: 0x...
                  maxTimeoutSeconds: 60
              payment_payload:
                x402Version: 2
                accepted:
                  scheme: exact
                  network: eip155:8453
                  amount: '20000'
                  asset: 0x...
                  payTo: 0x...
                payload:
                  signature: 0x...
                  authorization:
                    from: 0x...
                    to: 0x...
                    value: '20000'
                    validAfter: '0'
                    validBefore: '1999999999'
                    nonce: 0x...
              settlement:
                success: true
                transaction: 0x...
                network: eip155:8453
                payer: 0x...
              delivery:
                result: ok
              expected_delivery:
                required_fields:
                - result
      responses:
        '200':
          description: Proof402 result
        '402':
          description: x402 Payment Required
        '428':
          description: Idempotency-Key required
      x-payment-info:
        price: $0.01
        network: eip155:8453
        protocols:
        - x402: {}
      x-proof402:
        security_authoritative_primitives:
        - SHA-256
        - Ed25519
        - Merkle tree
        experimental_mtb_crypto_in_trusted_path: false
x-salt19-standard-x402-compatibility: payment-proof-derived-idempotency-v1
x-salt19-payment-identity:
  official_extension: payment-identifier
  required: false
  internal_authority: canonical semantic operation id
  conflict_policy: fail-closed
x-salt19-late-settlement:
  states:
  - PENDING
  - UNRESOLVED
  - RECHECKING
  - CONFIRMED
  - CONFIRMED_LATE
  - FAILED
  - OUTCOME_UNKNOWN
  authority: Base receipt/log verification under facilitator uncertainty
x-proof402-delivery-receipt-compatibility:
  status: proposal-compatibility-adapter
  scheme: x402-delivery-receipt-proposal-compat-v0
  receipt_projection: /proof402/delivery-receipts/{id}
  verifier: /proof402/delivery-receipt/verify
  authority: Proof402 Ed25519/D1 receipt remains canonical
x-salt19-payability-promotion-gate:
  version: external-payability-advertisement-gate-v1
  rule: Paid routes with a fresh deterministic external-payability FAIL are omitted until a later certification no longer fails. Transient transport/retryable HTTP failures remain discoverable with degraded evidence.