> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proofable.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Pay per call

> Pay for one new proof or access grant per call with x402 in Base USDC, with no account. Built for machines and agents.

Two endpoints accept per-call payment. Checking an existing proof is free.

| Resource | Method | What it does | Base cost |
| - | - | - | - |
| `/api/v1/verification` | POST | Create a new proof | 4+ credits (gate + verifier + proof write) |
| `/api/v1/verification/access/grant` | POST | Create a signed private-proof sharing capability | 2 credits, flat |

The exact price for each request is in the `PAYMENT-REQUIRED` header. It scales with the verifier's weight and optional add-ons (IPFS pinning, extra chains).

## Flow

**1. Request the resource**

Send the normal request with the required parameters (address, check IDs, or gate ID).

**2. Read the payment requirements**

An unpaid request returns **HTTP 402**. Decode the base64 **`PAYMENT-REQUIRED`** response header as an x402 v2 `PaymentRequired` object.

**3. Authorize payment**

Use an x402-compatible client to select the payment method and sign the payload. Private key stays in the client or wallet.

**4. Retry the same request**

Repeat the identical method, URL, query, and body with the base64 **`PAYMENT-SIGNATURE`** request header.

**5. Confirm settlement**

A successful paid call returns **HTTP 200**, the result, and a base64 **`PAYMENT-RESPONSE`** settlement header.

## Proof check

Check existing proofs before granting access, releasing a payment, or allowing an agent action. Checks carry no charge at any query size, verifier count, or result limit. Per-plan rate limits are the only control.

```bash theme={"system"}
curl --get \
  "https://api.proofable.me/api/v1/proofs/check" \
  --data-urlencode "address=0x1111111111111111111111111111111111111111" \
  --data-urlencode "verifierId=ownership-basic"
```

Inline policy uses the same evaluator:

```bash theme={"system"}
curl \
  -X POST "https://api.proofable.me/api/v1/proofs/check" \
  -H "content-type: application/json" \
  -d '{"subject":{"accountId":"0x1111111111111111111111111111111111111111"},"requirements":[{"verifierId":"proof-of-human"}]}'
```

## Proof creation

```http theme={"system"}
POST https://api.proofable.me/api/v1/verification
```

Cost = gate check (1 credit) + each verifier's weight + proof write (2 credits) + optional add-ons. Verifier weights range from 1 (ownership-basic) to 70 (wallet-risk). [`GET /api/v1/payments/pricing`](https://docs.proofable.me/pricing) returns the per-verifier credit table.

## Settlement

| Property | Current production requirement |
| - | - |
| Scheme | `exact` |
| Network | Base mainnet (`eip155:8453`) |
| Asset | USDC on Base |

Each call settles at its exact credit cost, down to sub-cent amounts, with no rounded-up minimum and no settlement cap. Per-credit price: [Pricing](https://docs.proofable.me/pricing.md).

Always enforce a client-side maximum before signing. Treat the decoded `PAYMENT-REQUIRED` header as the source of truth for the current amount, asset, recipient, and timeout.

After payment, validate all of the following before accepting the result:

* HTTP status is `200`
* `PAYMENT-RESPONSE` is present and decodes successfully
* settlement reports success on the selected network
* the payer and transaction are present
* the response body reports a completed operation

## Discovery

The payment challenge includes the x402 v2 Bazaar extension with the HTTP input, JSON output example, and JSON Schema. After the facilitator completes a successful settlement, the resource can be indexed for agent and marketplace search, with no separate registration step. See [x402 Bazaar discovery](https://docs.cdp.coinbase.com/x402/bazaar).

## Agent spending limits

Pair x402 with an agent permission proof to limit autonomous spending.

* Grant `agent-delegation` with `allowedActions: ["make_payment"]`, plus `allowedPaymentTypes: ["x402"]` and a `maxSpend` cap; the spend rails and ceiling are required together.
* `maxSpend` is a whole-number string in token base units. For USDC, 25 USDC is `"25000000"`.
* Use `toAgentDelegationMaxSpend('25', 6)` from `@proofable/sdk` when constructing the cap.
* The calling application should also enforce a per-request maximum before signing any payment.

Details: [Agent permissions](https://docs.proofable.me/agents/agent-delegation.md). Every endpoint: [API overview](https://docs.proofable.me/api/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.