Documentation / v1

API EternityProxy

Buy static proxies and activation keys. For rotating proxies, choose a pool, buy traffic, and generate connection strings.

Base URLhttps://api.eternityproxy.com/api/v1
Get an API key

Open API in the bot’s private chat or in your Mini App profile. Select Create key and save the key.

Check your balance

Call GET /account/balance. The bot and API share a USD balance.

Choose a product

Use GET /catalog for product IDs and current prices.

Authentication and request format

Send the API key in every request. The key is shown when you create or replace it. Replacing or revoking a key invalidates the old key.

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Use JSON for request bodies. Keep the key on your server and substitute it in the examples below. The examples use sample prices and credentials.

IP allowlist

Under API → IP allowlist, you can add up to 20 IPv4 or IPv6 addresses for your server. An empty list allows any IP. Requests from unlisted addresses return 403 IP_NOT_ALLOWED.

Order lifecycle

Get a quote_id from POST /quotes. The price is held for 10 minutes. Pass that quote_id to POST /orders to buy.

Reuse the original quote_id after a timeout

Repeating POST /orders with the same ID returns the original order. Request a new quote if the old one expired before the order was placed.

If an order is pending, poll GET /orders/{order_id} until it reaches complete or failed. Failed orders are refunded to your balance.

Retrieve a purchase

Find the purchase through GET /orders?limit=20&offset=0 and use its id with GET /orders/{order_id}. Once delivered, credentials contains the proxy connection strings or purchased activation keys.

To keep a separate traffic balance, create a subaccount in the selected pool. Include its account_id when requesting a quote, confirm the order, and generate proxies once the traffic is credited. Omit account_id to credit the pool’s main account shared with the bot.

Errors and limits

HTTPMeaning
200 / 201Request completed or resource created.
202Order accepted and awaiting delivery.
400Invalid parameters or request body.
401API key missing or invalid.
403The requester’s IP is not on the allowlist.
404 / 405Resource not found or HTTP method not allowed.
409Conflict, such as a price change, insufficient funds, or an expired quote.
413 / 429Request body too large or rate limit exceeded.
500 / 503Server error or temporarily unavailable. When retrying a purchase, reuse the original quote_id.

The error field contains a code such as INSUFFICIENT_BALANCE. Each key owner can send up to 5 requests per second and 180 per minute, with 2 in flight at a time. You can hold up to 30 active quotes. JSON bodies can be up to 4 KiB.

Endpoint reference

Loading endpoints…