Overview
The Agentic API is the x402-paid surface for Brickken agentic methods. It covers ERC-8004 agent identity, reputation, and agent-owned ERC-20 token operations on Base mainnet and Base Sepolia. Every agentic operation is a two-step flow:- Prepare the unsigned transaction — free, no x402 payment required.
- Send the operation — the x402 USDC payment is charged here, and only here.
brickken-relayed(recommended). You do not sign the blockchain transaction. You pay the x402 charge and Brickken’s relayer signs, pays native gas, and broadcasts the operation on your behalf. No EOA, no native gas, no on-chain signing on your side.client-signed. You sign the prepared blockchain transaction with your own private key and submit the signed payload. Use this when you want to retain full self-custody of signing.
Base URLs
| Environment | Base URL |
|---|---|
| Sandbox | https://api.sandbox.brickken.com |
| Production | https://api.brickken.com |
Networks
The Agentic API runs on Base, with Base Sepolia for tests. The x402 payment rail is operation-aligned: you pay on the same chain the operation runs on.| Network | chainId (decimal) | Hex | Use |
|---|---|---|---|
| Base mainnet | 8453 | 0x2105 | Production |
| Base Sepolia | 84532 | 0x14a34 | Testing |
| Ethereum Sepolia | 11155111 | 0xaa36a7 | Legacy testing |
Authentication Flow
For x402, omitx-api-key.
- Prepare (free). Call a semantic facade such as
POST /x402/agent/register, orPOST /prepare-transactionswith an eligiblemethod. For relayed execution, passexecutionMode: "brickken-relayed". The response returnstxId,transactions, and anx402Requirementsquote of the upcoming send price. No payment is taken at this step. - Send. Call
POST /send-transactions. The API responds402 Payment Requiredwith aPAYMENT-REQUIREDheader describing the exact chain, asset, transfer method, amount, recipient, and timeout. - Sign the x402 payment locally with the payer’s private key, and retry the send with
X-PAYMENT. - Brickken verifies the payment, then (in
brickken-relayedmode) signs and broadcasts the operation. The settlement is returned in thePAYMENT-RESPONSEheader.
PAYMENT-REQUIRED; do not hardcode them client-side. On Base Sepolia the payment rail uses EIP-3009; on Base mainnet it follows the advertised token’s transfer method.
In
brickken-relayed mode, x402 payment is mandatory — API keys are not accepted on the send step. The payment is reserved when you pay and only settled after the operation confirms on-chain. If the operation reverts or its authorization expires before confirmation, the reservation is released.Base Sepolia Testing
UsechainId: "84532" (eip155:84532). The Base Sepolia x402 payment asset is Circle USDC:
USDC, version 2, authorization window 300s). Fund the payer with the exact asset advertised by PAYMENT-REQUIRED before signing. The Base Sepolia ERC-8004 registries are:
- Identity:
0x8004A818BFB912233c491871b3d84c89A494BD9e - Reputation:
0x8004B663056A597Dffe9eCcC1965A193B7388713
Discovery
https://api.brickken.com) is the public x402scan target. Sandbox exposes the same discovery routes for QA.
Prepare and Send
The semantic/x402/... routes prepare unsigned transactions for free. They do not submit transactions on-chain by themselves.
Brickken-relayed (recommended)
Prepare withexecutionMode: "brickken-relayed" and omit signerAddress — Brickken supplies its relayer as the signer.
txId, exactly one transaction { to, data, value }, and x402Requirements. Submit those to send-transactions and complete the x402 payment; Brickken signs and broadcasts:
Client-signed
Prepare with your ownsignerAddress, sign the returned transaction locally, then send the signed payload:
send-transactions x402 batches must contain only x402-eligible prepared transactions, and all transactions in the batch must be on the same chain. A brickken-relayed send carries a single txId and exactly one transaction.
Polling
For relayed operations, poll status withGET /get-transaction-status by txId or operation hash — no API key is required for brickken-relayed transactions. A response of status: "pending" means the operation was broadcast but not yet confirmed; do not pay or resubmit the same txId again. Brickken’s reconciliation settles after confirmation or releases the payment on revert or authorization expiry.
Endpoint Groups
Facade requests use the same body fields as the matching backendmethod, except method is optional and ignored because the path fixes it.
Agent Identity
Register, maintain, and transfer ownership of ERC-8004 agent identities.
Reputation
Give, revoke, and respond to ERC-8004 feedback.
Agent Tokens
Create and operate agent-owned ERC-20 tokens.
Pricing
Review free prepare and per-operation send prices.
POST /prepare-transactions directly and pass method explicitly. newTokenizedAgent remains a legacy alias for agent registration, but it is not published in x402scan discovery.
Common Fields
| Field | Type | Required | Description |
|---|---|---|---|
chainId | string | Yes | Target chain ID. Use 8453 for Base mainnet or 84532 for Base Sepolia. Decimal and hex values are accepted. |
method | string | Yes for /prepare-transactions; no for /x402/... facades | One of the eligible method names. Facades derive it from the path. |
executionMode | string | No | brickken-relayed (Brickken signs and broadcasts) or client-signed (default). |
signerAddress | string | Conditional | Required in client-signed mode. Omit in brickken-relayed mode — Brickken sets its relayer as the signer. |
gasLimit | string or number | No | Optional explicit gas limit (client-signed). |
nonce | number | No | Optional explicit nonce when managing nonces manually (client-signed). |
Response Shape
The prepare response includestxId, transactions, and optional info. For agentRegister, save info.agentUuid for later set-uri, set-metadata, and transfer-ownership calls.