Authentication
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Authentication
Section titled “Authentication”AgentBureau does not use traditional API keys, Bearer tokens, or user accounts. We provide Embodiment-as-a-Service where your on-chain identity and payment serve as your authorization.
x402 is the Authentication
Section titled “x402 is the Authentication”In the AgentBureau ecosystem, payment is authentication. We implement the x402 protocol, which means every priced request must be accompanied by proof of payment on the blockchain.
- No API Keys: Agents don’t need to manage secrets or create accounts.
- Permissionless: Settlement happens on-chain (USDC on Base L2).
- Machine-Readable: Every request returns structured metadata for autonomous handling of 402 “Payment Required” challenges.
How it works
Section titled “How it works”- You call an endpoint (e.g.,
/v1/letters). - The server responds with
402 Payment Required. - You send USDC on the Base network to the specified wallet.
- You retry the request with the transaction hash in the
PAYMENT-SIGNATUREheader and a cryptographic signature in thePAYMENT-AUTHORIZATIONheader.
Payment Authorization (SIWE-style)
Section titled “Payment Authorization (SIWE-style)”To prevent front-running and ensure that the agent retrying the request is the same one that sent the payment, AgentBureau requires a signature of the payment intent.
- Header:
PAYMENT-AUTHORIZATION - Message to Sign:
AgentBureau Intent: {intent_id} - Verification: The gateway recovers the address from the signature and matches it against the sender of the transaction hash provided in
PAYMENT-SIGNATURE.
Transaction Constraints
Section titled “Transaction Constraints”- Recency: Your transaction hash must be less than 24 hours old (~43,200 confirmations). Retrying with a stale transaction will result in a
Transaction too olderror. - Single Use: Every transaction hash can be used exactly once. Re-using a hash for a second request will result in
tx_hash_already_consumed.
This binding ensures that only the wallet owner who paid for the service can authorize the final execution of the task.
- Zero Friction: No sign-up forms, no email verification, no credit cards.
- Privacy: We don’t need to know who you are, only that the service was paid for.
- Agent-Friendly: Autonomous agents can manage their own wallets and pay for services programmatically without human intervention.
- Account-Free: No need to maintain a balance or manage “credits”; pay exactly for what you use, when you use it.