Skip to main content

Agent API quickstart

Audience: developers and agents integrating over HTTP.
Prerequisites: a Base USDC wallet (production facilitator), or local X402_AGENT_TEST_MODE for signature-only smoke tests.
Base URL: https://xintel.aispace.bot (or http://localhost:5173 when developing).

Flow

1. Free shelf

Example shape:
Index rows also include avatar and follower fields; use username and reportCount to pick a handle.

2. Free report menu

Metadata only — no narrative or analytics bodies yet.

3. Request bodies (expect 402)

Without payment you get 402 and an x402 v2 challenge (accepts, extensions with unitPriceUsd, reportCount, etc.).

4. Pay and retry

Settle the challenge (production: x402 facilitator / EIP-3009 TransferWithAuthorization on Base USDC), then retry the same URL with:
(X-Payment is also accepted.)
Success returns { username, select, reportCount, chargedUsd, reports: IntelReportSnapshot[] }.

Range example

Price = $0.01 × N matching reports (override via X402_INTEL_REPORT_USD on the deployment).

Next