Skip to content
Developer docs

Integrate Star Telecom APIs with clear examples and responses.

All endpoints accept JSON and require a Bearer token. Everything the dashboard can do, the API can do.

Base URL
https://startelecom.io/api
Auth header
Authorization: Bearer YOUR_API_KEY
Format
application/json

Quick start

Grab an API key from the dashboard, set your base URL, and copy the request samples. A key can be limited to part of the API when you create it; a key created without scopes can use all of it.

API key scopes
voipSIP lines, credit top-ups, call records and spend
smsSend SMS, read delivery logs and route options
didBrowse, buy, request, route and cancel phone numbers
accountRead-only wallet balance, subscription and usage
whatsappCheck whether phone numbers are registered on WhatsApp
telegramCheck whether phone numbers are registered on Telegram
viberCheck whether phone numbers are registered on Viber
imessageCheck whether phone numbers are registered with iMessage
airbnbCheck whether phone numbers are registered on Airbnb
POST/api/sms/send
Your first request
Request
curl https://startelecom.io/api/sms/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "to": "12025550123", "message": "Hello from Star Telecom" }'
Response
{ "messages": [ { "id": 2381, "recipient": "12025550123", "status": "sent" } ] }
Out-of-scope keys receive 403 with { "error": "insufficient_scope", "key_scopes": ["voip"] }.

VoIP APIs

Manage SIP lines, caller IDs, balances and call logs.

GET/api/voip/accounts
List SIP lines

Every SIP line on the account with its account_id, which the other endpoints use to target one line. Also returns your wallet balance.

Response
{
  "accounts": [{ "id": 483, "extension": "700483", "label": "Acme Ltd", "is_primary": false, "auto_renew": true, "expires_at": "2026-08-31T13:58:57+00:00", "sip_balance": 12.5 }],
  "extra_line_price_eur": 5,
  "wallet_balance_eur": 53.2396
}
GET/api/voip/plans
List routes and prices

Every VoIP route you can use, with the per-minute price for each destination prefix. The longest matching prefix wins. initblock / billingblock are seconds charged for the first block and each block after it.

Response
{ "plans": [{ "id": 42, "name": "USA All Pass 100%", "tech_prefix": "10001", "region": "United States", "tariff": [{ "destination": "United States", "prefix": "1", "rate": 0.4, "initblock": 60, "billingblock": 60 }] }] }
PATCH/api/voip/plan
Switch a line to a route
Request
{ "id_plan": 42, "account_id": 483 }
Response
{ "status": "ok", "id_plan": 42, "name": "USA All Pass 100%", "account_id": 483 }
Requires an active subscription and the voip scope. Routes and prices change, so read the list rather than hard-coding IDs.
POST/api/voip/accounts
Create a SIP line

Buys an extra SIP line and charges the monthly fee to your wallet.

Request
{ "label": "Acme Ltd" }
Response
{ "message": "Additional SIP line created.", "account": { "id": 484, "extension": "700484", "label": "Acme Ltd", "sip_balance": 0 } }
POST/api/voip/account/update
Change caller ID, password or connection mode
Request
{ "account_id": 483, "sip_callerid": "12025550123", "sip_password": "optional-new-secret", "sip_connection_mode": "registration" }
Response
{ "status": "ok", "sip_callerid": "12025550123", "sip_connection_mode": "registration", "sip_ip2ip_host": null }
GET/api/voip/calls
Read call records

Per-call records for one SIP line or every line. Omit account_id to get them all.

Request
?account_id=483&from=2026-08-01&to=2026-08-21&limit=100&page=1
Response
{ "data": [{ "id": 140691, "account_id": 483, "started_at": "2026-08-21T04:14:45Z", "from": "12025550100", "to": "12025550123", "direction": "outbound", "answered": true, "billed_seconds": 60, "talk_seconds": 42, "cost_eur": 0.35 }], "total": 403, "has_more": true }
GET/api/voip/calls/summary
Call spend per line
Request
?from=2026-08-01&to=2026-08-21
Response
{ "lines": [{ "account_id": 483, "label": "Acme Ltd", "calls": 2, "billed_minutes": 2, "cost_eur": 0.51 }], "totals": { "calls": 403, "billed_minutes": 359.73, "cost_eur": 157.58 } }
POST/api/voip/account/charge
Charge SIP account

Moves wallet funds onto one line’s call credit. Minimum €10.

Request
{ "account_id": 483, "amount": 10 }
Response
{ "status": "ok", "sip_balance": 42.75 }
POST/api/voip/account/transfer
Move credit between lines

Your wallet is not touched, so this is how you reclaim credit from a line you no longer need.

Request
{ "from_account_id": 483, "to_account_id": 484, "amount": 12.5 }
Response
{ "status": "ok", "amount": 12.5, "from_balance": 0, "to_balance": 12.5 }
GET/api/voip/dtmf-poll
Read caller DTMF (live)

Digits the far-end caller presses during an active call. Poll every ~500ms; each read drains the buffer. For push, open an SSE stream at /api/voip/dtmf-stream?token=YOUR_API_KEY.

Response
{ "digits": [{ "digit": "4", "channel": "PJSIP/webrtc-700483-00000a1b", "duration": 180, "ts": 1731460485 }] }

Numbers (DID)

Everything the dashboard Numbers page does, over the API: browse buyable numbers and buy one instantly, or request a number for a country that needs manual setup and accept the price we send back. Buying and accepting a quote both charge your wallet.

GET/api/dids
List your numbers

Every number with routing, price, status and concurrent-line support, plus your SIP lines and IVR flows so you can route a number to one.

Response
{ "dids": [{ "id": 42, "number": "442037...", "country": "United Kingdom", "iso": "GB", "routing_type": "sip", "user_sip_account_id": 1001, "monthly_price_eur": 3.5, "inbound_rate_eur": 0, "supports_lines": true, "status": "active" }], "accounts": [{ "id": 1001, "label": "Main line" }], "flows": [{ "id": 7, "name": "Support menu" }], "wallet_balance_eur": 24.80 }
GET/api/dids/catalog
Browse buyable numbers
Request
?countryId=44&typeId=1&search=london&page=1
Response
{ "groups": [{ "groupId": "grp_123", "country": "United Kingdom", "city": "London", "type": "Local", "skus": [{ "skuId": "sku_1", "channels": 2, "setup_eur": 2, "monthly_eur": 3.5 }], "inbound_included": true }], "total": 128, "countries": [...], "types": [...] }
POST/api/dids/buy
Buy a number

routing_type is sip, app or ivr. Charges your wallet and returns the new number.

Request
{ "groupId": "grp_123", "skuId": "sku_1", "countryId": "44", "typeId": "1", "routing_type": "sip", "user_sip_account_id": 1001 }
Response
201 { "did": { "id": 58, "number": "442038081234", "status": "active" } }
POST/api/did-requests
Request a number

For a country or type not in the catalogue. number_type is local, tollfree or mobile. Does not charge your wallet.

Request
{ "country": "Japan", "number_type": "local", "preferred_routing": "sip", "note": "Tokyo area preferred" }
Response
201 { "id": 301, "status": "pending" }
POST/api/did-requests/{id}/accept
Accept or decline a quote

Accept takes payment from your wallet and sets the number up. Decline (POST …/decline) closes the request with an optional reason.

Request
{ "reason": "Changed my mind" }   // decline only
Response
{ "status": "accepted", "did_id": 59 }
PATCH/api/dids/{id}/routing
Change inbound routing

"sip" rings a SIP line (pass user_sip_account_id), "app" rings the mobile app, "ivr" runs an IVR flow (pass dtmf_flow_id). A number cannot forward to an external phone number.

Request
{ "routing_type": "ivr", "dtmf_flow_id": 7 }
Response
{ "status": "ok", "routing_type": "ivr" }
PATCH/api/dids/{id}/capacity
Concurrent lines

Read (GET) or set how many simultaneous calls a number accepts. Above the included lines, incoming is metered per minute.

Request
{ "max_calls": 4 }
Response
{ "max_calls": 4, "included": 2, "supported": true }
POST/api/dids/{id}/cancel
Release a number

Stops billing at the end of the current period.

Response
{ "status": "released", "ends_at": "2026-12-13T00:00:00+00:00" }

SMS APIs

Send SMS and monitor delivery activity. route_option_id is optional; omit it for automatic routing by destination. Direct value: alpha. GAMMA, EPSILON, PRO and ETA need a specific subroute.

POST/api/sms/send
Send SMS
Request
{ "to": ["12025550123"], "message": "Your code is 123456", "route_option_id": "alpha" }
Response
{ "messages": [{ "id": 2381, "recipient": "12025550123", "status": "sent" }] }
GAMMA: use option_id from ?expand=gamma for your destination country. EPSILON: epsilon_1…epsilon_11. PRO: pro_1…pro_12. ETA: eta_1…eta_4. Bare gamma/epsilon/pro/eta are invalid.
GET/api/sms/available-routes
Available routes
Request
?expand=gamma    # or ?expand=epsilon | pro | eta
Response
{ "gamma": { "33": [{ "option_id": "acb913c880d4…", "name": "CH1", "price": 0.0714, "prefix": "33" }] } }
GAMMA option_ids can change without notice. Fetch shortly before sending. Opted-out numbers are rejected per recipient and not charged.
POST/api/sms/send
Test tool

Send the same message through one or more routes to see which delivers. Each test message starts with the route name.

Request
{ "to": "12025550123", "message": "Route test", "test_all_routes": true }
// or: "test_routes": ["alpha", "gamma", "epsilon_1"]
Response
{ "messages": [{ "route": "ALPHA", "status": "sent" }, { "route": "GAMMA", "status": "sent" }] }
GET/api/sms/logs
View SMS logs
Request
?limit=10&page=1&search=1202&from=2026-01-01&to=2026-01-31
Response
{ "data": [{ "id": 2381, "date": "2026-01-20 14:45:12 UTC", "to": "12025550123", "status": "delivered", "route": "ALPHA", "cost": 0.03 }], "has_more": true }

Number checks

WhatsApp, Telegram, Viber, iMessage and Airbnb. Every batch needs at least 2,000 numbers. WhatsApp numbers must be from one country. The other platforms use the same requests with the path prefix /api/telegram-checks, /api/viber-checks, /api/imessage-checks or /api/airbnb-checks. Export returns only registered numbers.

GET/api/whatsapp/status
Price

Current price per number. Does not charge the wallet.

Response
{ "price_per_number_eur": 0.004 }
POST/api/whatsapp/quote
Quote a batch
Request
{ "numbers": ["4915112345678", "..."] }
Response
{ "count": 2400, "total_eur": 9.60 }
POST/api/whatsapp/jobs
Start a check

Charges the wallet for the quoted cost and starts the check.

Response
{ "job_id": 9001, "status": "queued" }
GET/api/whatsapp/results
Jobs and results

Poll /jobs/{id} until status is completed, then read results.

Request
?job_id=9001&limit=50
Response
{ "data": [{ "number": "4915112345678", "registered": true }], "has_more": true }

CLI Check

Place a real test call over one of your voice routes to a live handset abroad and see the caller ID it actually shows: delivered, replaced or restricted. Each report costs €0.50 (max 30/day). Reports that can’t connect are refunded.

GET/api/cli-check/options
Routes, countries & operators
Response
{ "plans": [{ "id": 1, "name": "Worldwide" }], "countries": [{ "name": "Denmark", "operators": ["TDC", "Telenor"] }], "price_eur": 0.5 }
POST/api/cli-check
Run a report
Request
{ "plan_id": 7, "country": "Denmark", "cli": "442037654321", "operator": "TDC" }
Response
{ "report": { "id": 11, "status": "pending", "stage": "dispatching" } }
POST/api/cli-check/batch
Run a bulk report

Test one caller ID to one destination across several routes at once.

Request
{ "plan_ids": [1, 106], "country": "Denmark", "cli": "442037654321" }
Response
{ "reports": [{ "id": 11, "batch_id": "6f0b1c2d-...", "plan_id": 1, "status": "pending" }, { "id": 12, "plan_id": 106, "status": "pending" }] }
GET/api/cli-check/{id}
Get one report
Response
{ "id": 11, "outcome": "delivered", "reported_cli": "442037654321", "operator": "TDC" }
outcome is one of delivered, replaced, restricted, not_delivered or failed.

Rates

Retrieve pay-as-you-go voice rates: the cheapest per-minute price for each destination across all routes.

GET/api/rates/voice
Retrieve rates
Request
?search=United&limit=10&page=1
Response
{ "data": [{ "destination": "United States", "prefix": "1", "rate": 0.15, "tiers": [{ "rate": 0.2, "count": 4 }, { "rate": 0.4, "count": 12 }] }] }

IVR Studio (DTMF)

Build automated outbound call flows. IVR Studio places the call from your SIP line, runs your saved flow, and stores the keypad input. Requires the IVR Studio add-on. Minutes are charged from the selected line’s credit and the line’s route must allow IVR.

POST/api/dtmf/upload
1. Upload audio
Response
{ "audio_token": "aud_7f2…" }
POST/api/dtmf/flows
2. Save a flow
Request
{ "name": "Support menu", "steps": [{ "type": "play", "audio_token": "aud_7f2…" }, { "type": "menu", "options": { "1": "sales", "2": "support" } }] }
Response
{ "flow_id": 7 }
POST/api/dtmf/call
3. Start the call

Pass account_id to choose which SIP line dials; omit it for the primary line. destinations (max 500) instead of destination for bulk.

Request
{ "flow_id": 7, "destination": "12025551234", "account_id": 483, "callerid": "12025550100" }
Response
{ "session_id": "ivr_8f21", "status": "dialing" }
Errors: 422 line not found / not ready / suspended / insufficient SIP balance · 403 IVR calls not permitted on this route.
GET/api/dtmf/result/{session_id}
4. Poll the result
Response
{ "status": "completed", "digits": "1", "duration": 38, "cost_eur": 0.4 }
Need delivery events pushed to you?
Configure webhooks for SMS and voice status updates.
Webhook docs