API: How to segment contact lists

Featured illustration for API: How to segment contact lists

API: How to segment contact lists. Actionable guide on how to segment contact lists in context of android sms gateway api. Include prerequisites, steps, limits, and internal links. 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 GatewayHow-ToHub C
Article
Published
November 2, 2025
Updated
November 16, 2025
Reading time
16 minute read

Key Takeaways

  • API how-to for segmenting contact lists: keep OTP, receipts, and promo in separate lists (and separate deviceIds). Confirm campaign/list fields in OpenAPI — do not invent segment=vip.
  • Spreadsheet upload stays in the panel; bulk to[] is POST /messages; list campaigns are POST /campaigns.
  • Suppression (STOP) is a segment of its own: exclude it from every promo send.
  • Airtime follows every row you actually send, including retries.
  • Service pricing is based on device count and total SMS sent through the gateway. You need a working Android phone with a SIM and SMS credit from your mobile operator. Operator message costs are yours—we do not sell carrier SMS balance.

This Hub C how-to is how to segment contact lists when you send through an Android SMS gateway API. Segmentation is your data model plus whichever list/campaign objects the OpenAPI actually exposes. Guessing field names from a blog is how you 4xx on launch day.

Service pricing is based on device count and total SMS sent through the gateway. Contacts and lists, API docs.

OTP, receipts, promo traysOTPopspromo
The cyan dot is a contact. Promo is a different tray and a different SIM.
A “VIP segment” that still blasts from the OTP SIM is not a segment. It is a routing bug with a marketing name.

Hub C: lists in your app vs the panel

Many teams keep source-of-truth in the CRM and only push E.164 slices at send time. Others use panel lists. Both need STOP exclusion. STOP how-to.

Segment table

SliceListdeviceIdsSTOP?
Login / 2FANever a promo exportOTP SIMN/A (not a campaign)
Order / shippingTransactionalOps SIMUsually no
Consented promoMarketing minus suppressionPromo SIMYes
SuppressionDo-not-sendAlready out

POST /campaigns, not a mystery segment API

Contact-list campaigns: POST /campaigns. Ad-hoc numbers: POST /messages with to[]. Spreadsheet upload stays in the panel. Sample bulk shape:

curl -X POST "https://app.sms-gateway.app/api/v1/messages" \
  -H "Authorization: Bearer $SMS_GATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: bulk-inv-1042" \
  -d '{"to":["+14155552671","+14155552672"],"text":"Hi — invoice INV-1042 of BDT 2,400 is due on 12 Aug.","type":"sms","dedupe":true}'

# Contact lists: POST https://app.sms-gateway.app/api/v1/campaigns (see https://docs.sms-gateway.app/).
# Panel CSV upload remains available for spreadsheet campaigns.

You need a working Android phone with a SIM and SMS credit from your mobile operator. Operator message costs are yours—we do not sell carrier SMS balance.

OTP never rides a promo list

OTP verification. Peak CSV: bulk consent.

CSV is still a list

Excel eating plus signs is a format incident. Invalid number format. Deduplicate before you burn airtime.

Checklist

  • Lists named by purpose, not “all.”
  • STOP excluded from promo exports.
  • Campaign fields from docs, not this article.
  • OTP contacts never in the blast CSV.
  • Device pool matches the slice.

Next steps

Confirm list/campaign objects in the docs, pair via downloads, canary one slice of five staff numbers.

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

FAQ

Frequently asked questions

Direct answers about android sms gateway api how to segment contact lists.

Is there a segmentId field I should guess?

No. Live list/campaign parameters are at https://docs.sms-gateway.app/. This page is how to think about slices.

Can one list hold OTP and marketing?

You can store them that way. You should not send them that way. Split lists and radios.

Does a smaller segment reduce gateway device cost?

It reduces sends and operator parts. Device count is still how many phones are paired.

Where is the contacts feature page?

/features/contacts-and-lists
Keep learning

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

Information
android sms gateway api how to avoid spammy wording

API: How to avoid spammy wording

API: How to avoid spammy wording. Actionable guide on how to avoid spammy wording in context of android sms gateway api. Include prerequisites, steps, limits, and internal links. Priced by devices and SMS send volume; BYO phone and operator credit.

Sep 28, 202416 min
Read article
Information
android sms gateway api how to choose prepaid vs postpaid sims

API: How to choose prepaid vs postpaid SIMs

API: How to choose prepaid vs postpaid SIMs. Actionable guide on how to choose prepaid vs postpaid SIMs in context of android sms gateway api. Include prerequisites, steps, limits, and internal links. Priced by devices and SMS send volume; BYO phone and operator credit.

Feb 15, 202616 min
Read article
Information
android sms gateway api how to design otp templates

API: How to design OTP templates

API: How to design OTP templates. Actionable guide on how to design OTP templates in context of android sms gateway api. Include prerequisites, steps, limits, and internal links. Priced by devices and SMS send volume; BYO phone and operator credit.

Feb 23, 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.