Android SMS Gateway dual SIM routing: Api usage

Featured illustration for Android SMS Gateway dual SIM routing: Api usage

Android SMS Gateway dual sim routing — api usage. Feature deep dive on dual SIM routing (api usage). Unique examples and failure modes; link matching /features path when exists. Priced by devices and SMS send volume; BYO phone and operator credit.

Written by the SMS Gateway team for operators who run phones and airtime themselves — not for theoretical cloud SMS demos.

InformationAndroid SMS GatewayFeaturesOperations
Article
Published
May 16, 2026
Updated
May 29, 2026
Reading time
16 minute read

Key Takeaways

  • Dual SIM API usage is selecting a send path on a paired handset — android sms gateway dual sim is not a second host.
  • Multi-device uses deviceIds. Slot/subscription fields belong to live OpenAPI; do not invent names in a blog.
  • Omit routing flags and the account primary (and that phone’s default SIM) takes the job.
  • Pin OTP with an explicit id. Round-robin conversations fracture inbound.
  • Priced by devices and SMS send volume. You use your own phone and operator SMS credit. Routing flags do not include operator airtime.
  • Prove with a staff canary. Free is 300 SMS lifetime.

What the API can choose

This feature spoke is dual SIM routing (API usage). Searchers still hit android sms gateway dual sim; the job is to pick a path in code without inventing hosts. Service pricing is based on device count and total SMS sent through the gateway. Pillar: dual SIM and multi-device. Practices: dual SIM routing best practices.

If a field is not in OpenAPI this week, it is not a production contract. Copy-paste from an old gist is how slot selection “mysteriously” no-ops.

deviceIds vs SIM slot

deviceIds selects which paired Android claims the job. Dual SIM inside that phone is a second axis. Many teams set the default subscription in the app and only pin device id from the API. That is valid and easier to support.

IntentMechanismNote
This chassis, not that onedeviceIds on POST /messagesMulti-device accounts; numeric ids from the panel
This SIM on a dual-SIM phoneApp default slot and/or documented subscription fieldConfirm OpenAPI — blogs do not freeze field names
OTP never shares promoSeparate deviceId (or dedicated phone)Safer than hoping slot B is “usually quiet”
Look up what happenedGET /messages/{id} + webhooksdeviceId in payloads helps on-call

Send shape (confirm OpenAPI)

Official sample uses a named device. Live field names: docs.sms-gateway.app.

curl -X POST "https://app.sms-gateway.app/api/v1/messages" \
  -H "Authorization: Bearer $SMS_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":["+14155552671"],"text":"Your login code is 481920. It expires in 5 minutes.","type":"sms","deviceIds":[3]}'

Keys in env — secure API keys. PHP/C# pages are REST samples, not an SDK package.

Errors worth mapping

  • Unknown device id — you deployed a nickname map that drifted.
  • Device offline — queue waits; this is not a slot bug.
  • Insufficient plan volume — Free/Developer pause; not silent $0.0x overage.
  • Empty SIM — operator reject; switch path or top up.

DLR and inbound still per MSISDN

message.delivered / message.received carry the number that actually sent or received. STOP on slot B does not suppress slot A unless you join them in CRM. DLR · webhooks.

Canary: 300 SMS lifetime on Free is enough to prove both paths once.

Client checklist

  • OpenAPI pulled this week.
  • OTP uses a hardcoded device id from config, not “first healthy.”
  • Logs store deviceId + message id, not the Bearer token.
  • Idempotency-Key on OTP.
  • Staff A/B canary after app or OS update.

Next steps

Pair the dual-SIM phone ( setup), send two labeled messages, then encode the pin in your worker. Meters: pricing.

Jump to the live product docs for this topic—not another long-form article.

FAQ

Frequently asked questions

Direct answers about android sms gateway dual sim.

How do I send on a specific phone?

Pass deviceIds on POST /messages. Confirm the array shape at https://docs.sms-gateway.app/. Omit it and the primary device sends.

How do I pick SIM slot via API?

Only if the live OpenAPI documents a subscription/slot field. If it is not there, set the default in the Android app and pin the device id.

Can I split a batch across two SIMs on one phone?

That depends on whether the send body exposes per-recipient path selection. Do not assume one POST round-robins slots. Check docs; test with labeled canaries.

Is this a packaged SDK?

No. Site PHP/C# pages are HTTPS/JSON samples. Keep the Bearer token in env.

Does routing change billing?

Still devices plus send volume. Dual SIM is one device. You still fund both operators.
Keep learning

Topically related guides—chosen by subject overlap, not a fixed sitewide footer.

Information
android sms gateway contacts

Android SMS Gateway contact lists: Api usage

Android SMS Gateway contact lists — api usage. Feature deep dive on contact lists (api usage). Unique examples and failure modes; link matching /features path when exists. Priced by devices and SMS send volume; BYO phone and operator credit.

Sep 21, 202516 min
Read article

Browse the full Android SMS gateway knowledge base or return to how an Android SMS gateway works.

Get started

Test the gateway on your own Android phone

Install the app, pair one device, and validate your API flow before choosing a paid plan.

You supply the phone, SIM, and operator SMS credit.