API Payments for API Providers

Let AI agents pay as they access your API.

[01]USE CASES

What AI agents can pay to access.

Apply API Payments to endpoints and software-generated resources delivered programmatically.

01

Paid APIs

Charge for access to a protected endpoint or operation.

02

Data Access

Sell datasets, search results, or generated reports.

03

AI Tools

Require payment before an AI agent runs a model, workflow, or specialized tool.

04

Digital Services

Return paid, software-generated results without a manual purchase step.

[02]how it works

Payment inside the API request flow.

  1. 01 ai agent

    Request the Resource

    The AI agent calls a protected API route.

  2. 02 provider

    Receive Payment Requirements

    The service returns the amount, cryptocurrency, network, and payment destination required for access.

  3. 03 ai agent

    Complete Payment

    The AI agent follows the x402 payment requirements and completes payment using a supported fiat account or cryptocurrency wallet.

  4. 04 goat flow

    Verify the Result

    GOAT Flow verifies the payment and returns a signed payment receipt.

  5. 05 ai agent

    Retry with the Receipt

    The AI agent sends the original request again with the payment receipt attached.

  6. 06 provider

    Return the Resource

    The merchant's middleware verifies the receipt and the API returns the requested result.

[03]what you get

Payment infrastructure for machine-accessed services.

01

Payment Requirements

Return clear payment information when an AI agent requests a protected resource.

02

Pay-per-Request Pricing

Set payment requirements for a specific API route or digital resource.

03

Automatic Payment Verification

GOAT Flow confirms fiat payments through Stripe and cryptocurrency payments on the selected blockchain network before access is provided.

04

Signed Payment Receipts

Give the protected service a verifiable result tied to the payment and request.

05

Middleware and Sidecar Options

Protect routes through supported TypeScript or Go middleware, or a language-independent sidecar.

06

No Checkout Page Required

Keep payment inside the AI agent-to-API request flow.

[04]integration & onboarding

Integrate API Payments in the way that fits your service.

Custom Integration

Best for: Services that want to connect GOAT Flow payments to their existing backend and fulfillment flow.

Setup steps

  1. Complete your GOAT Flow merchant application and configure your cryptocurrency receiving wallet.
  2. Define the paid service and its price.
  3. Use GOAT Flow APIs or server SDKs to create and track the transaction.
  4. Receive the payment result through the API or an authenticated webhook.
  5. Return the result, grant access, or start an asynchronous job from your backend.

MPP Integration

Best for: APIs that want AI agents to complete payment and receive access directly inside the request flow.

Setup steps

  1. Complete your GOAT Flow merchant application and configure your cryptocurrency receiving wallet.
  2. Register the protected API route and its price.
  3. Enable MPP and add a supported middleware or verification sidecar.
  4. Return payment requirements when an AI agent requests the protected resource.
  5. Verify the payment receipt before forwarding the original request to your API.

[05]example flow

See a paid API request from start to finish.

Request
GET /v1/report
Accept: application/json
User-Agent: ExampleAgent/1.0

Choose each stage to see how the request changes. The example uses placeholder values and never contacts a real API.

[06]payment, fulfillment & trust

A verified payment result before access is returned.

Who is responsible for what

01

API Provider

Defines paid routes, pricing, and response content, and remains responsible for access, availability, and service quality.

02

GOAT Flow

Creates and tracks the transaction, provides x402 payment requirements, receives fiat payment results from Stripe or verifies cryptocurrency payments on the selected blockchain network, and issues a signed receipt or authenticated status update.

03

Stripe

Handles card details, authorization, processing, and settlement for eligible merchants.

04

Blockchain Network

Confirms cryptocurrency payments sent directly to the merchant’s configured wallet and makes the result available for verification.

05

AI Agent

Reads the x402 payment requirements, completes payment using a supported fiat account or cryptocurrency wallet, and retries the original request with the payment receipt.

06

Middleware or Sidecar

Verifies the receipt signature, merchant, route, and expiry before allowing the request to reach the protected API.

07

Webhook Integration

Receives authenticated payment status updates and triggers asynchronous fulfillment when an immediate API response is not required.