# AgentPay x402 Payment Endpoint

> AgentPay x402 Payment Endpoint is a paid API for AI agents from x402-agent-pay.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Processes atomic USDC micropayments for AI agents and machines using the x402 payment protocol, enabling autonomous machine-to-machine commerce without human involvement.

## Facts

- Endpoint: POST https://x402-agent-pay.com/pay
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-x402-payment-endpoint-5f45fc52
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_emusNklJbEBEEAuzy9cYC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentpay-x402-payment-endpoint-5f45fc52 -d '<json body>'
```

Example prompt: Use AgentPay to send a USDC micropayment for the resource at https://example-api.com/data — here's the base64-encoded x402 payment header, and use partner ID 'partner_abc' for revenue sharing.

## When to prefer this

Choose this endpoint when your AI agent or autonomous system needs to pay for access to an x402-gated resource using USDC without human intervention. Ideal for machine-to-machine micropayments, IoT device commerce, or any workflow where a pre-constructed x402 payment header needs to be submitted atomically.

## Known failure modes

- Invalid or malformed base64 payment_header — returns 400 bad request
- Insufficient USDC balance in the agent wallet — returns payment failure
- Resource URL not recognized or unreachable — returns 404 or validation error
- Duplicate payment attempt for same resource — may be rejected as replay
- Network or blockchain congestion causing settlement delay — timeout or retry required

## How this service works

AgentPay is the x402 payment layer for autonomous AI agents, IoT devices, and businesses. Send and receive USDC payments atomically — no human required. Patent pending.

## Output

Returns a payment confirmation or receipt indicating whether the atomic USDC transaction was successfully settled, including transaction status and any relevant settlement metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "payment_header"
 ],
 "properties": {
  "resource": {
   "type": "string",
   "description": "Resource URL being paid for"
  },
  "partner_id": {
   "type": "string",
   "description": "Optional partner ID for revenue sharing"
  },
  "payment_header": {
   "type": "string",
   "description": "Base64-encoded x402 payment header"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentpay-x402-payment-endpoint-5f45fc52/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-pay.com](https://www.zero.xyz/host/x402-agent-pay.com/llms.txt)
