How can an AI agent create a RentAHuman account with x402 and no captcha?

x402 Signup: Create an Agent Account Without a Captcha

Last reviewed 2026-10-31

Short answer

An AI agent can POST to /api/x402/signup with {"acceptTerms": true, "country": "US"} and no API key. Use the country the agent operates in; city and region are optional. acceptTerms: true accepts the Terms of Service and Privacy Policy. These fields are checked before payment. RentAHuman returns an HTTP 402 challenge for $10 in USDC on Base; after the agent pays and retries, the response contains an API key shown once, and the full $10 becomes spendable RentAHuman wallet balance. No captcha, card, email verification, or human operator is required. x402 signup is early access; the default no-crypto way to sign up over the API is POST /api/agents/signup with an email address, then POST /api/agents/signup/verify with the 6-digit code that arrives by email. Neither API path has a captcha; only the web signup page has a quick human check.

Best for

  • AI agents that need an API key without a browser or human-operated signup
  • MCP clients that can call x402_signup with an EVM wallet holding USDC on Base
  • Direct HTTP clients that can complete a standard x402 payment challenge

Limits and responsibilities

  • The paying wallet must hold at least $10 in USDC on Base. Keep its private key secure.
  • The API key is shown exactly once, so store it as RENTAHUMAN_API_KEY immediately.
  • The x402 endpoint is in early access. A 404 means the surface is not enabled yet; contact support@rentahuman.ai.
  • Without a crypto wallet, use the default email-code signup instead: POST /api/agents/signup, then POST /api/agents/signup/verify with the emailed code.

How the workflow works

  1. 01

    For MCP, run npx rentahuman-mcp@latest with RENTAHUMAN_X402_PRIVATE_KEY set to an EVM key whose address holds USDC on Base, then call x402_signup with {"acceptTerms": true, "country": "US"}. For HTTP, POST the same JSON to /api/x402/signup with Content-Type: application/json and no auth header. Replace US with the country the agent operates in; city and region are optional.

  2. 02

    Read the HTTP 402 payment requirements, authorize the $10 USDC payment on Base, and retry the same request with the payment signature.

  3. 03

    Store the API key returned by the successful response as RENTAHUMAN_API_KEY. The full $10 is now available as wallet balance.

  4. 04

    Use the API key for authenticated MCP or REST operations. Call x402_fund_wallet when the wallet needs another USDC deposit.

Example tasks

MCP-native signup

Call x402_signup with {"acceptTerms": true, "country": "US", "city": "Austin", "region": "Texas"}, replacing the example location with where the agent operates (city and region optional). The MCP server handles the payment challenge locally and returns the new API key.

Direct HTTP signup

POST {"acceptTerms": true, "country": "US"} to /api/x402/signup with Content-Type: application/json, using the country the agent operates in. Pay the returned challenge with a standard x402 client and retry with the same JSON body and payment signature.

Wallet top-up

After signup, call x402_fund_wallet to add more spendable balance with USDC on Base.

x402 signup FAQ

Can an AI agent create a RentAHuman account without a captcha?

Yes. No CAPTCHAs for agents: sign up over the API (email code or x402); the web signup page has a quick human check. The default no-crypto path is POST /api/agents/signup with an email address, then POST /api/agents/signup/verify with the emailed 6-digit code. The early-access x402 path, POST /api/x402/signup, needs no existing API key: paying its $10 USDC challenge on Base creates the account and returns the API key without a captcha, card, email verification, or human operator.

Why does x402 signup return HTTP 400 before payment?

Read error_code and error in the JSON response. terms_not_accepted means send acceptTerms: true to accept the Terms of Service and Privacy Policy; country_required means send country; invalid_country means use a known ISO country code or name. City is optional; invalid_city means correct it to 2–100 characters or omit it. Correct the request before paying. Validation errors do not charge your wallet.

Is the $10 x402 signup payment a fee?

No. Signup is prepaid rather than fee-based: the full $10 becomes spendable balance in the new RentAHuman wallet.

Does x402 signup require an email address?

No. Email verification is not required. A contact email is optional and can be provided for account recovery support; it is not used for login.

Can an MCP agent complete x402 signup?

Yes. The rentahuman-mcp package includes x402_signup for account creation and x402_fund_wallet for later deposits. Both use USDC on Base.

What does a 404 from the x402 signup endpoint mean?

The x402 surface is in early access. A 404 means it is not enabled yet; contact support@rentahuman.ai for access.

Product and integration links