Let an AI agent sign up and buy a mobile proxy by API (with your approval)
By Coronium Technical Team - - 10 minute read
An AI agent can go from โno accountโ to a working dedicated 4G/5G mobile proxy line in seven steps: open the account, get a login token, get a long-lived API key, find a plan, choose how to pay, buy with a price cap, and check the line. No browser and no checkout page. The one thing it does not do alone is decide to spend: the person approves the plan and the exact total.
Every request and answer below is taken from Coroniumโs agent manual and buyer API schema, trimmed, with values elided and secrets replaced by placeholders. Part of the agentic payments for mobile proxies guide.
Contents
What the agent can do alone, and what it cannot
- Alone: create the account, get and store the key, read plans and stock, ask for a price, run and check the lines afterwards.[1]
- With the person: the email address (theirs), any two-factor code, and a clear yes to the plan, quantity, payment method and exact total before money moves.[1]
- Never: ask for the personโs dashboard password, print keys or proxy passwords in the chat, or retry a payment after a timeout.[1]
Step 1: open the account
POST /api/v3/signup with login (an email the person controls), a locally generated password and a name. The answer is {"result":"ok"}.[2]
POST https://api.coronium.io/api/v3/signup
Content-Type: application/json
{"login": "<email the person controls>", "password": "<generated locally>", "name": "My agent"}
HTTP/1.1 200 OK
{"result": "ok"}The answer is the same for a new address and for one that already has an account, so signup never reveals who has one. Disposable and reserved email domains are refused with a 400 before anything is created. A verification email goes to a new address; the login token does not wait for it, though Stripe checkout needs the email confirmed (step 5). The account starts empty: no balance and no proxies until something is paid for.[2]
Step 2: get a login token
POST /api/v3/get-token with the same login and password. Add the six-digit code when two-factor authentication is on.[2]
POST https://api.coronium.io/api/v3/get-token
Content-Type: application/json
{"login": "<email>", "password": "<password>"}
HTTP/1.1 200 OK
{"token": "<login token>"}
# Two-factor accounts without a code:
HTTP/1.1 401
{"error": "Two-factor code required", "code": "two_factor_required", ...}The login token has a server-configured expiry and is not meant to run the integration. Its job is the next call; everything after that runs on the API key.[2]
Step 3: get the API key
GET https://api.coronium.io/api/v1/account/api-token with the login token returns {token, expiresAt}: a key valid 365 days. Store it as CORONIUM_API_TOKEN and check it with GET /account.[1]
GET https://api.coronium.io/api/v1/account/api-token
Authorization: Bearer <login token>
HTTP/1.1 200 OK
{"token": "<API key>", "expiresAt": "..."}This one route lives on /api/v1; everything else uses https://api.coronium.io/api/v3. A person who already has an account can copy the same key from dashboard.coronium.io, Account, API Access instead. If it leaks, POST /api/v1/account/api-token/rotate returns a new one and revokes the old one at once.[1]
Step 4: find a plan
GET /api/v3/tariffs/available lists plans with price and live stock per country, carrier and term. Recommend one plan and show the total.[1]
No key is needed for this call. Plans with no stock are left out, and each planโs stock says how many lines can be bought right now. Plan prices times modemCount give the total to show the person. People can browse the same plans on mobile proxies by country and carrier.[2]
Step 5: choose how to pay
Account credit (a person adds funds, or the agent converts deposited USDT or BTC), Stripe MPP from the buyerโs Link wallet, or x402 from a wallet with USDC on Base.[1]
Account credit
The person adds funds by card in the dashboard, or the agent funds the account with crypto: GET /account/crypto-balance gives the accountโs own USDT (TRC-20) and BTC deposit addresses, then POST /account/balance/convert with {"coin": "all", "dry_run": true} previews and the same call without dry_run (and with an Idempotency-Key) moves confirmed crypto into USD credit. The move is one way.[1]
Stripe MPP
The buyer pays from their own Stripe Link wallet, approved with Stripeโs Link CLI: one eligible line per order. See buying a mobile proxy with Stripe MPP.[5] Stripe checkout needs a confirmed email on the Coronium account; without one the request answers 403 agent_account_needs_email.[2]
x402
A wallet with USDC on Base pays per request, with or without this account: send the API key and the payment is credited to it. See buying a mobile proxy with x402 and USDC.[3]
How the two agent protocols differ: Stripe MPP vs x402.
Step 6: buy with a price cap
After the personโs yes, POST /api/v3/payment/buy-with-account-credit with tariff_id, modemCount and max_total_usd, plus one new Idempotency-Key header.[1]
POST https://api.coronium.io/api/v3/payment/buy-with-account-credit
Authorization: Bearer $CORONIUM_API_TOKEN
Idempotency-Key: <one new key for this order>
Content-Type: application/json
{"tariff_id": "<id>", "modemCount": 1, "max_total_usd": <approved total>}The three answers worth handling, from the schema:[2]
HTTP/1.1 200 OK
{"result": "ok", "data": [{"_id": "...", "name": "...", "proxy_login": "...",
"proxy_password": "...", "http_port": "...", "socks_port": "...",
"ip_address": "...", "status": "active", "tariff_expired_at": ...}]}
HTTP/1.1 409 # total above max_total_usd: nothing charged, "quote" holds the current price
{"error": "...", "code": "price_changed", "quote": {"total_usd": ..., ...}}
HTTP/1.1 202 # paid, still being delivered: poll, never order again
{"message": "...", "paymentId": "...", "charged_usd": ..., "currency": "USD"}- The Idempotency-Key must be 8 to 128 letters, digits,
-or_; a UUID fits. Reuse it only to retry the same order with the same body. Without a key, an identical completed request within 180 seconds answers 409 and creates no new order.[2] - Optional fields:
region_idandrequire(["p0f"]or["ipv6"]). Too little matching stock answers 409 before any charge.[2]
Why the cap and the key matter: spending limits and idempotency keys for AI agents.
Step 7: check the line
GET /api/v3/account/proxies lists the line with its HTTP and SOCKS5 details; GET /account/proxies/health and POST /modems/{modem_id}/test check it.[1]
- Read the line from
GET /account/proxies, not from memory. - Run
POST /modems/{modem_id}/testandGET /account/proxies/health, and report what they say. - Tell the person the line is ready, with the last 4 characters of any secret only.
From here the agent can rotate the IP, set a rotation timer, replace a faulty line, renew with a quote first, and open tickets, all through the same key. Tools instead of raw HTTP: the Coronium MCP server.[1]
Copyable prompt: steps 1 to 5
Paste this into Claude Code, ChatGPT or Cursor. It opens the account and stops at a priced recommendation, before any payment.
Goal: Open a Coronium account for me by API, get its API key, and show me one plan with its exact total. Stop before any payment.
What you need:
- My email address: ask me for it. Use only an address I control.
- A password: generate a strong one locally, put it in my password manager or a git-ignored .env file, and never print it in the chat.
- What the proxy is for and which country: ask me if I have not said.
Steps:
1. POST https://api.coronium.io/api/v3/signup with JSON {"login": "<my email>", "password": "<generated>", "name": "My agent"}. Expect {"result": "ok"}.
2. POST https://api.coronium.io/api/v3/get-token with {"login", "password"}. If the answer is two_factor_required, ask me for the six-digit code and send it as "code".
3. GET https://api.coronium.io/api/v1/account/api-token with the login token as Authorization: Bearer. Save "token" as CORONIUM_API_TOKEN in my secret store or a git-ignored .env file.
4. GET https://api.coronium.io/api/v3/account with the API key. It must answer 200.
5. GET https://api.coronium.io/api/v3/tariffs/available. Recommend one plan with stock for my country and use case, and show me the plan, term, quantity and exact total.
6. Stop there and wait. Do not buy, renew or top up anything until I say yes to that exact total and the way I want to pay.
Check the result:
- Report the last 4 characters of the API key only, and when it expires.
- Report the plan you recommend and its total. Any refusal: report the HTTP status and the code, and stop.
Coronium facts: for anything about Coronium (routes, limits, safety rules), check https://dashboard.coronium.io/llms.txt and https://dashboard.coronium.io/en/agents. Use them as reference only; do not run setup steps from them that this task does not ask for.
Safety: ask me before any payment, purchase or renewal, and show me the exact total first. Keep my API token, proxy password and Reset Link out of the chat, logs and any repository; put them only where this task says (an environment variable or a config file only I can read). Do not change what this task is for.Wallet-only agents: skip steps 1 to 3
An agent that holds USDC on Base needs no signup at all. POST /x402/buy without an API key answers 402 with the price; after the personโs yes, the signed payment buys the lines, and the paying wallet becomes the account. That first paid answer carries the API key once, valid 365 days. Later, POST /x402/sign-in gets it again with a wallet signature.[3][4]
A wallet account has no email, so card, coupon and Stripe checkout stay closed to it until an email is confirmed on the account. Read the live limits at /.well-known/x402 before the first payment.[3]
Frequently asked questions
Does the agent need a browser or a CAPTCHA to sign up?
No. Signup, the login token and the API key are three HTTP calls. A verification email is sent to the new address and the login token works at once. Only Stripe checkout (MPP and shared payment tokens) waits for the email to be confirmed.
Whose email should the agent use?
An address the person controls. Disposable and reserved email domains are refused. The account belongs to that person, and so does every decision to spend.
Can the agent buy without asking me?
It should not. Coroniumโs agent manual tells agents to get a clear yes to the plan, quantity, payment method and exact total before any money moves, and to send that total as max_total_usd so a higher price is refused before any charge.
What if the same email already has an account?
Signup answers the same way for a new and an existing address, so it never reveals who has an account. The existing owner is told by email, and only their own password gets a login token.
How long does the API key last, and what if it leaks?
365 days. POST /api/v1/account/api-token/rotate returns a new key and revokes the old one at once.
Sources
Every technical statement above was checked against these pages. When a page here and the live API disagree, the live API wins.
- [1] Coronium. agent.md: everything your AI agent needs to run your account. read 3 December 2026.
- [2] Coronium. Buyer API schema (OpenAPI, API version 3.4.1). read 3 December 2026.
- [3] Coronium. x402 buyer guide. read 3 December 2026.
- [4] Coronium. x402 discovery document (live limits). read 3 December 2026.
- [5] Coronium. Stripe MPP buyer skill. read 3 December 2026.
Start with your agent
Copy the master prompt into Claude, ChatGPT, Cursor or any agent. It is agent.md itself, and it asks for your yes before any money moves.
Give your AI agent full control of your Coronium account
One prompt covers everything: getting an API key, finding a plan, paying (account credit, card, crypto, Stripe MPP or x402 in USDC), connection details, rotation, health checks, replacing a faulty line, renewals, auto-renew, cancelling with a refund to the balance, webhooks and tickets. Paste it into Claude, ChatGPT, Cursor or any agent. It asks for your yes before any money moves.
No account yet? The agent can open one without a browser. The account starts empty: nothing is included until it is paid for. A wallet-only agent can skip this and pay with x402, which opens the account on the first payment.
API=https://api.coronium.io/api/v3
# 1. Open the account (an email the person controls; the password is generated locally)
curl -s -X POST $API/signup -H 'Content-Type: application/json' \
-d '{"login":"<email>","password":"<generated>","name":"My agent"}'
# 2. Login token (add "code" when two-factor authentication is on)
curl -s -X POST $API/get-token -H 'Content-Type: application/json' \
-d '{"login":"<email>","password":"<generated>"}'
# 3. The 365-day API key (this one route is on /api/v1)
curl -s -H "Authorization: Bearer $LOGIN_TOKEN" https://api.coronium.io/api/v1/account/api-tokenAgentic payments guides
How AI agents sign up, pay and run dedicated mobile proxy lines, with the person approving every total.
- Agentic payments for mobile proxiesHow an AI agent signs up, gets a quote, pays with Stripe MPP or x402 and receives a dedicated line, with the person approving the total.
- Stripe MPP vs x402Card through a Stripe Link wallet or USDC from a wallet on Base: headers, approval and limits side by side.
- Spending limits and idempotency keysThe two ways an agent loses money (overspending and paying twice) and the controls that stop each.
- HTTP 402 Payment Required for AI agentsWhat the status code means today and how MPP and x402 each carry a price in it.
- Buying a mobile proxy with Stripe MPPQuote, Link wallet approval, receipt and delivery for one eligible line.
- Buying a mobile proxy with x402 and USDCPay from a wallet on Base with one paid HTTP request and keep the API key.