# Agent Café Basic Test Endpoint (api.402.coffee)

> Agent Café Basic Test Endpoint (api.402.coffee) is a paid API for AI agents from api.402.coffee, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Accepts a USDC micropayment on Base via the x402 protocol and returns a payment receipt confirming the transaction.

## Facts

- Endpoint: POST https://api.402.coffee/test/basic
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-caf-basic-test-endpoint-api-402-coffee-5cd062bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FgGTRVOQOrCVYrDyGXoVG

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 agent-caf-basic-test-endpoint-api-402-coffee-5cd062bf -d '<json body>'
```

Example prompt: Send a real USDC payment on Base via the x402 protocol to the Agent Café test endpoint and bring back the receipt — I want to confirm you can actually complete an on-chain micropayment autonomously.

## When to prefer this

Use this endpoint when you need to demonstrate or test that an AI agent can autonomously execute a real on-chain USDC micropayment using the x402 protocol on Base, and obtain a cryptographically verifiable receipt. Prefer this over mock or sandbox payment endpoints when you need proof of live payment capability.

## Known failure modes

- Insufficient USDC balance — payment cannot be authorized, x402 402 response returned
- Invalid or missing x402 payment header — request rejected before processing
- Network congestion on Base causing transaction delays or timeouts
- Transaction broadcast failure due to RPC issues on Base
- Duplicate payment attempt flagged by facilitator

## How this service works

x402 client conformance — basic. Pay to certify your agent can complete a real x402 payment; get a public certificate + README badge.

## Output

A JSON object containing the transaction hash, a paid:true confirmation, the order name (e.g. 'espresso'), the amount paid in USDC, the network ('base'), the currency ('USDC'), a unique receipt number (e.g. 'AC-XXXXXX'), and a guestbook URL where the payment is recorded publicly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": "0x…",
  "paid": true,
  "order": "espresso",
  "amount": "0.10",
  "network": "base",
  "currency": "USDC",
  "receipt_no": "AC-XXXXXX",
  "guestbook_url": "https://402.coffee/wall"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-caf-basic-test-endpoint-api-402-coffee-5cd062bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.402.coffee](https://www.zero.xyz/host/api.402.coffee/llms.txt)
