Developers

A proxy API your code and agents can call

Everything in the dashboard is an API call. The same key works over REST and MCP, and metered routes accept x402 payments so agents can pay per request.

  • REST + OpenAPI
  • MCP server
  • x402 on Base
  • HTTP and SOCKS5 credentials

REST API

Buy a proxy with one request

# Live prices (public, no key)
curl https://agentproxy.global/api/v1/catalog

# Balance
curl https://agentproxy.global/api/v1/balance \
  -H "x-api-key: $AGENTPROXY_KEY"

# Buy 1 GB of residential traffic
curl https://agentproxy.global/api/v1/orders \
  -H "x-api-key: $AGENTPROXY_KEY" \
  -H "content-type: application/json" \
  -d '{"productId":3,"productPackage":{"gb":1}}'
const res = await fetch("https://agentproxy.global/api/v1/orders", {
  method: "POST",
  headers: {
    "x-api-key": process.env.AGENTPROXY_KEY,
    "content-type": "application/json",
  },
  body: JSON.stringify({ productId: 3, productPackage: { gb: 1 } }),
});
const order = await res.json();
console.log(order.proxyData?.hostname);

Reference

Main endpoints

Authenticate with the x-api-key header. Full schemas are in the OpenAPI docs.

MethodPathWhat it does
GET/api/v1/catalogLive sell prices for every plan (public)
GET/api/v1/productsProducts available to your account
GET/api/v1/balanceBalance in USD cents
GET/api/v1/ledgerCredits and debits
POST/api/v1/ordersBuy a plan
GET/api/v1/orders/:idOrder status and proxy credentials
POST/api/v1/orders/:id/extendExtend a time-based order
POST/api/v1/depositsCreate a crypto deposit invoice
GET/api/v1/deposits/:idInvoice status
POST/api/v1/keysCreate an API key
GET/api/v1/metered/quotex402 metered route

MCP

Give your agent proxy tools

Add the MCP server to your agent with your API key. It can then list plans, check the balance, fund it with a deposit invoice and buy proxies on its own.

{
  "mcpServers": {
    "agentproxy": {
      "url": "https://mcp.agentproxy.global/mcp",
      "headers": { "x-api-key": "apx_live_..." }
    }
  }
}

Tools

list_productsget_balancelist_ordersget_ordercreate_ordercreate_depositmetered_quoteapg_rotate_ip

More on proxies for AI agents.

x402

Pay per request, no top-up

x402 turns HTTP 402 Payment Required into a real payment flow. The server states a USDC price on Base; the client signs a payment and retries. No account balance needed.

GET /api/v1/metered/quote
→ 402 Payment Required
  PAYMENT-REQUIRED: { scheme, network: base, asset: USDC, amount, payTo }

GET /api/v1/metered/quote
  PAYMENT-SIGNATURE: <signed USDC authorization>
→ 200 OK
  PAYMENT-RESPONSE: { transaction, network }

Developer questions

How do I get an API key?

Sign in with a wallet, open API keys in the dashboard and create one. The secret is shown once; send it in the x-api-key header.

Is there an OpenAPI spec?

Yes. Interactive Swagger docs are at /api/docs.

Which MCP clients work?

Any client that supports remote MCP servers over HTTP with custom headers. Pass your API key as x-api-key.

Are there rate limits?

Yes, per key and per IP. A 429 response includes Retry-After; back off for that many seconds.

Are SDKs available?

TypeScript, Python and Go clients and the apg CLI exist and are being prepared for public release. Until then, the REST API works from any language.

Get an API key in one signature.

Sign in with a wallet, create a key, and make your first order from code.