All seller guides
Get started with the API
In short: Tick Allow API Access in Profile & Preferences and copy your API key. Call https://apiv2.telecomsxchange.com with HTTP Digest authentication (your username, and the API key as the password). Read your balance and payout history, manage the numbers you sell and message your buyers. The API reference documents every endpoint.
What the seller API gives you
- Your codeUsername, with the API key as password
- then, POST /sellers/balance, TelecomsXchange APIDigest auth, hourly quota and per-second cap
- then, status: success, JSON replyBalance, payouts, numbers and buyers
- then, /sellers/buyers/message, Your buyersGet your message in inbox and email
On this page
This quickstart takes you from no key to reading your earnings and managing the numbers you sell. Every request and response below is real in shape; your figures will differ. For every endpoint and parameter, see the API reference.
Turn on API access#
- Go to Settings → Profile & Preferences.
- Tick Allow API Access.
- Copy the API Key and click Save. Regenerate replaces the key at once; the old one stops working.
The examples read your credentials from the environment:
export TCXC_USERNAME="your-portal-username"
export TCXC_API_KEY="the-key-from-preferences"Read your balance#
Your seller balance is what buyers' traffic has earned you, less payouts and fees.
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
https://apiv2.telecomsxchange.com/sellers/balance{"status": "success", "balance": "22631.26"}Tip
{"status": "fail", "error": "authorization error"} means the username or key is wrong, or Allow API Access
is off. See Errors.
Check your payouts#
Payout History, as in the portal: payouts, their fees, HLR lookups and anonymous-listing fees.
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
https://apiv2.telecomsxchange.com/sellers/payhistory \
-d "date_from=2026-10-01 00:00:00" -d "date_to=2026-10-31 23:59:59"{
"status": "success",
"transactions": [
{"i_payout": "2873", "amount": "500", "ts": "2026-10-14 22:14:41", "notepad": "Bank Wire"}
]
}Manage the numbers you sell#
List your numbers, optionally from a prefix:
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
https://apiv2.telecomsxchange.com/sellers/did/list -d prefix=380Each number shows its rates (price_1, smpp_price), setup_fee and monthly_fee, its status (idle until a
buyer purchases it), capabilities (voice, sms, fax, video) and whether it needs KYC
(verification_required). Add a number with /sellers/did/add and change one with /sellers/did/edit/{i_did};
see Phone numbers for every field.
Message your buyers#
List the buyers who use your routes, then write to one or all of them. Messages land in their portal inbox and by email.
curl --digest -u "$TCXC_USERNAME:$TCXC_API_KEY" -X POST \
https://apiv2.telecomsxchange.com/sellers/buyers/listSee Messages for sending, replying and reading your inbox.
Where next#
| To | Use |
|---|---|
| Check a number's carrier, ported and roaming status | HLR lookups |
| See the busiest destinations on the exchange | Voice and SMS market |
| Read the same records your buyers see | Reports |
What if something goes wrong?#
| You see | What to do |
|---|---|
HTTP 401, authorization required |
Send Digest credentials. Most clients need Digest switched on explicitly, such as --digest in cURL. |
authorization error |
Check the username and key, and that Allow API Access is ticked in Profile & Preferences. |
Rate limit exceeded (HTTP 429) |
Slow down and retry with backoff. |
| A call works in the portal but not in the API | Compare the fields with the API reference; they match the portal's form fields. |
Common questions
Where do I find my API key?
In Profile & Preferences, under API Key. Once Allow API Access is on, the dashboard also shows an API Keys card with your API Login and the key.
Can I upload my rate deck through the API?
Not yet. Rate decks are uploaded in the portal; see Upload your rate deck. The seller API covers your balance, payouts, phone numbers, buyers, messages and HLR lookups.
Is there a request limit?
Yes. Each account has an hourly quota and a per-second cap. Above either you get HTTP 429 with the message "Rate limit exceeded". Contact support if you need more.
- Where do I find my API key?
- In Profile & Preferences, under API Key. Once Allow API Access is on, the dashboard also shows an API Keys card with your API Login and the key.
- Can I upload my rate deck through the API?
- Not yet. Rate decks are uploaded in the portal; see Upload your rate deck. The seller API covers your balance, payouts, phone numbers, buyers, messages and HLR lookups.
- Is there a request limit?
- Yes. Each account has an hourly quota and a per-second cap. Above either you get HTTP 429 with the message "Rate limit exceeded". Contact support if you need more.
Finished this guide?
This guide matches platform build 83b4ebc9. Markdown version.