DocketLayer uses x402 as its sole authentication mechanism. There are no API keys, no accounts, and no onboarding. A valid payment is authorization. An invalid or missing payment is a rejection.Documentation Index
Fetch the complete documentation index at: https://docs.docketlayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
The 402 flow
When your agent calls a paid DocketLayer endpoint without a payment header:- DocketLayer returns HTTP 402 Payment Required with a machine-readable
X-Payment-Requirementsheader describing exactly what is needed — the amount, the recipient address, the network, and the currency - Your x402 client library reads these requirements, constructs a $0.99 USDC transaction on Solana, signs it with your wallet’s private key, and retries the original request with an
x402-paymentheader containing cryptographic proof of payment - DocketLayer verifies the payment and returns the data
Payment requirements header
TheX-Payment-Requirements header on a 402 response contains:
maxAmountRequired is in USDC lamports — 990,000 = $0.99. asset is the USDC mint address on Solana mainnet.
Payment header format
A valid paid request includes:Replay protection
Each payment transaction signature is claimed atomically within a 5-minute window. The first request using a given transaction signature succeeds. Any subsequent request using the same signature within 5 minutes is rejected as a replay. Your x402 library handles this by constructing a fresh transaction on each call.Settlement
DocketLayer verifies payment by simulating the transaction against the Solana RPC (simulateTransaction with sigVerify: true) before performing any query work. Once the query completes successfully, the transaction is broadcast on-chain (sendRawTransaction). Settlement is fire-and-forget — the synchronous response is not held for on-chain confirmation.
Wallet identity
The fee payer extracted from the verified transaction is your wallet address for that request. DocketLayer uses this address for:- Per-wallet rate limiting
- Scoping wallet resources (
/v2/wallet/keys,/v2/wallet/deliveries)
x402 client setup
Free endpoints
The following require no payment and never trigger a 402 response:GET /v2/status— coverage and system health- MCP tools:
docketlayer_status,docketlayer_court_list,docketlayer_pricing
Further reading
- Wallet setup guide — creating a Solana wallet and funding it with USDC
- x402 protocol specification — the open standard DocketLayer implements