Bot developers
Two APIs. One string format.
The account API hands your bot its balance, usage, orders and ready-made proxy lines on a read-only key. The partner API creates customers, funds them and rotates their credentials. Every string is -key-value pairs after the login, so your parser never has to guess.
Proof
Lines your bot can use. One GET.
/proxies builds ready-to-use lines from the credentials the account already holds — nothing is created, no data is spent. Ask for the country, the session model, the count (up to 1,000) and the format your bot parses.
Read the API docs# 3 sticky US lines in URL format — the key stays in an env var curl "https://api.basilproxies.com/api/v1/proxies?product=residential&country=us&session=sticky&count=3&format=url" \ -H "Authorization: Bearer $BASIL_API_KEY"
What the string looks like.
Build one by hand to see the token order, then let /proxies or the dashboard generate the rest. A session token picks sticky; the password never carries anything.
eu-residential2.basilproxies.com:2115:basl_7k2m9x4z-cc-de-city-berlin-sess-k4mz61pq-ttl-60:vq20hxw8Example with placeholder credentials — yours generate in the dashboard. One port: a session token holds one IP; targeting rides the username.
Strings
Every token, in its place.
The first line uses all five tokens. Drop any of them, or reorder them, and the line still works — a parser that reads -key-value pairs after the login reads every string the pool will ever hand out.
Read the docs# All five tokens: cc · city|isp · os · sess · ttl (any order) eu-residential2.basilproxies.com:2115:USER-cc-de-city-berlin-os-android-sess-9f2k41ab-ttl-60:PASS # URL format, rotating: same login, no session token http://USER-cc-de:[email protected]:2115
Which product
Selling proxies with the bot? That's the partner API.
The account API is read-only by design — a leaked key exposes data, not money. When your bot needs to hand each customer their own credentials, the partner API does it in one call: POST /customers with an initial balance creates the customer, funds them from your pool and returns working credentials. Top up the same customer for repeat purchases, send an Idempotency-Key on every write, and take back whatever they leave unused.
See white-labelFrom the blog
Read more.
Gateway codes in a bot log: E01 to E53 and what your bot should do
Every E-code our gateway sends on port 2115, its HTTP status, and the one thing a bot should do about it: retry, wait, rotate, change targeting or stop.
Plugging port-2115 lines into a ticket bot: the import file, line by line
Build a clean proxy import file for a ticket bot: what each field of a 2115 line means, the three formats, and a script that pulls and checks the file.
Which IP-check URL your bot should call, and how often
Use a plain-text IP echo over HTTPS, call it when a sticky session starts and once before payment, and never in a loop on a rotating line.
Before you ask.
The account API (/api/v1) reads your own account: balance, usage, orders, subscriptions, proxy lines, sub-accounts. Seven GETs, nothing that spends money. The partner API (/api/reseller/v1) creates and funds customers from a wholesale pool — that's for bots that sell proxies, and it comes with a partner account.
60 requests a minute per account, shared by both of its keys; past that you get 429 with a Retry-After header. Two active keys at most; revoke one and it fails on the next request. Data is always in MB, 1 GB = 1000 MB.
A new login can answer 407 or 503 for the first minute or two while the gateways pick it up. Retry before touching anything. If it persists, check that every targeting token sits on the username — the password carries nothing.
Yes, and it's the same result. Tokens ride the username as -key-value pairs in any order: cc, city or isp, os, sess, ttl. One port, 2115; a sess token makes the line sticky and the password never changes. When a hand-built string misbehaves, diff it against one from the dashboard.
Sub-accounts: up to five under one login, each with its own credentials and balance, listed by GET /res2/subaccounts. Meter each instance on its own sub-account and move gigabytes between them from the dashboard.
No. Poll /balance or /usage from a script — 60 a minute is plenty for a top-up check — or let the Discord bot's /alerts DM you at a threshold you set.