API Key Security for the CurvePioneer Reseller API v2
CurvePioneer is a wallet-based SMM panel: you top up a wallet and pay per order. The reseller API v2 lets your own bot, script or storefront place those same orders automatically. Because every order is charged to your wallet, your API key is effectively a spending credential. This guide explains exactly how the key works, how to keep it safe, and how to react when something goes wrong.
1. How authentication works on API v2
The API follows the standard SMM-panel convention so existing reseller scripts work with minimal changes. There is a single endpoint, https://curvepioneer.com/api/v2, and every request sends two required fields:
- key: your personal API key
- action: what you want to do, for example
services,add,statusorbalance
There are no OAuth flows, bearer tokens or per-panel credentials to juggle. You never connect anything and never bring your own supplier keys: one CurvePioneer key gives access to the services listed for your account. The full list of actions and parameters lives in the API v2 documentation.
curl -X POST https://curvepioneer.com/api/v2 \
-d "key=$CURVEPIONEER_API_KEY" \
-d "action=balance"
# {"balance":"100.8429","currency":"USD","balance_inr":"9075.86"}The balance action is the safest first call: it proves your key works without spending anything. A matching quick test for an order is reel_quote, which returns the price and planned quantities for a curve-delivered reel without charging your wallet.
2. Generate your key
- Create an account or sign in.
- Open the API page at
/api-access. - Generate a key. It is displayed once; copy it straight into your secret store.
- Run the
balancecall above to confirm it works.
Treat the key like a card number. Never commit it to Git, never paste it into a chat or screenshot, and never put it in front-end code. If you think it was exposed, rotate it immediately.
3. Store the key safely
Wrong: hardcoded in source
const key = "cp_live_abc123"; // ends up in Git history forever
Right: environment variable or secret manager
# .env (listed in .gitignore)
CURVEPIONEER_API_KEY=paste_your_key_here
// Node.js
const key = process.env.CURVEPIONEER_API_KEY;
if (!key) throw new Error("CURVEPIONEER_API_KEY is not set");On a VPS, keep the file readable only by the user that runs your bot. On hosted platforms, use their encrypted environment settings. If several people work on your scripts, give them access to the secret store rather than sending the raw key around.
4. Keep the key on a server
Many resellers run a Telegram bot or a small storefront that forwards customer orders to CurvePioneer. The safe pattern is always the same: your customer talks to your server, and only your server talks to the API. Never ship the key inside a mobile app, browser extension or JavaScript bundle; any key that reaches a device you do not control should be considered public.
Use POST requests. The endpoint also accepts GET for compatibility with older scripts, but a key inside a PAGE_URL tends to leak through server logs, proxies and browser history.
5. Rotate and revoke
The /api-access page has two controls:
- Rotate issues a new key and immediately invalidates the old one. Use it on a schedule and after any suspected leak, staff change or laptop loss.
- Revoke turns API access off entirely until you generate a new key. Use it when you stop automating for a while.
Plan rotation as a short checklist: rotate, update the secret in every place your scripts read it, restart the bot, then run a balance call. Because the old key stops working instantly, do it during a quiet window rather than in the middle of a large batch of orders.
6. Read error responses correctly
| HTTP | Meaning | What to do |
|---|---|---|
| 401 | Invalid API key (wrong, rotated or revoked) | Stop retrying; check the secret your script loads |
| 429 | Too many requests | Back off with exponential delay, batch status checks |
| 402 | Insufficient wallet balance on add_reel | Top up your wallet, then retry; nothing was created |
| 503 | API temporarily disabled | Retry later |
| 200 + error | Business error, e.g. incorrect order ID | Log it and fix the request |
A 401 should never be retried in a loop: it will not fix itself, and hammering the endpoint with a bad key only fills your logs. Alert yourself instead. For 429, reduce frequency: use the orders parameter on status to check up to 100 orders in one request instead of one call per order.
7. Protect your wallet, not just the key
- Top up in sensible amounts. Your wallet balance is the maximum a leaked key could spend. Keep roughly what your normal volume needs.
- Validate input before calling add. Check links and quantities from your customers before forwarding them.
- Lean on duplicate protection. Identical orders inside the duplicate window are blocked or return the first order ID, so a double-click in your bot does not double-charge.
- Review recent calls. The API page lists your recent requests; unfamiliar activity is the signal to rotate.
- Use quotes first. For curve-delivered reels, call
reel_quotebeforeadd_reelto confirm the price.
8. Next steps
With authentication sorted, move on to placing real orders: the API integration guide walks through services, add, status and the curve-based reel actions in JavaScript and Python. If you are wondering what the curve parameter actually does, read natural growth curve views. Questions about your key or account go to our Telegram support.
Frequently Asked Questions
Where do I get my CurvePioneer API key?
Sign in, open the API page at /api-access and generate a key. The full key is shown only once, so copy it into a password manager or your server's secret store right away. The same page lets you rotate or revoke the key later.
How is the key sent with a request?
The reseller API v2 uses the standard SMM-panel format: one endpoint, https://curvepioneer.com/api/v2, and every request carries a key field and an action field as form parameters. Send requests with POST from your server so the key never appears in browser history or shared URLs.
What happens if my key leaks?
Anyone holding the key can place orders that are charged to your wallet. Rotate the key on /api-access immediately: the old key stops working and a new one is shown once. Then update the secret wherever your scripts read it.
What do 401 and 429 responses mean?
A 401 with {"error": "Invalid API key"} means the key is wrong, rotated or revoked. A 429 means you are sending requests too fast; back off and retry later. Business errors such as an incorrect order ID come back as HTTP 200 with an error field so classic panel scripts can read them.
Can I use the API key in a browser extension or front-end app?
No. Any key shipped to a browser can be extracted by anyone who opens developer tools. Keep the key on a server or a private bot you control, and let your own front end talk to that server instead.
Automate your orders with API v2
Create an account, top up your wallet, and generate your key on the API page.
Create an account