API: How to schedule campaigns by timezone

Featured illustration for API: How to schedule campaigns by timezone

API: How to schedule campaigns by timezone. Actionable guide on how to schedule campaigns by timezone 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
June 16, 2025
Updated
June 27, 2025
Reading time
16 minute read

Key Takeaways

  • Scheduling campaigns by timezone via the Android SMS gateway API means you convert local civil time to ISO-8601 (usually UTC) before POST.
  • scheduleAt is on the send body. It is refused beyond 38 days. PATCH /campaigns/{id} can re-time a campaign.
  • The control plane does not know “9am in Lagos” unless you send that instant.
  • A scheduled job still needs a charged, Doze-exempt phone at fire time.
  • You bring airtime. Pricing is devices plus send volume.

Android sms gateway api how to schedule campaigns by timezone is clock math plus a radio that is still online at T. Ops without API: schedule campaigns by timezone. Feature: scheduled SMS.

Developer Center. You bring the phone and airtime. We meter devices and volume.

Store UTC. Speak local. Fire when the SIM is awake.

Convert timezone in your code

Recipients in IST vs EST are different instants. DST shifts. Your worker uses a tz database; the send body carries the instant.

“9:00” without a zone is how you text someone at 02:00 and earn a STOP.

scheduleAt on POST /messages

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":"Reminder: your invoice is due tomorrow.","type":"sms","scheduleAt":"2026-09-01T09:00:00Z"}'

# Times are ISO-8601 UTC unless the string carries an offset.
# scheduleAt is refused beyond 38 days. PATCH /campaigns/{id} can re-time a campaign.

Bulk lists: CSV/Excel campaigns or POST /campaigns per docs. API.

Timezone pitfalls

MistakeResultFix
Server local time as UTCShifted by the VPS zoneAlways UTC in logs + payload
Ignore DSTAn hour off twice a yearIANA tz in conversion
One timestamp for a global listNight traffic in half the filePer-row local → UTC
Schedule > 38 daysRefusedRe-POST or PATCH campaign later

Civil time is a standards mess; start from IANA tz.

38-day horizon

The public send note: refused beyond 38 days. Long campaigns need a re-schedule job you own.

Quiet hours are your policy

The API will fire at the instant you send. Quiet hours, consent, STOP: blacklist.

The phone must be alive at T

Doze · failover limits. A 09:00 campaign on a dead battery is a 00:00 backlog.

Scheduled still burns airtime

Free: 300 SMS lifetime. Developer: 25,000/year. Starter/Pro/Business uncap platform volume, devices 2/5/15. Pause on Free/Developer at allowance. No unlimited carrier SMS. Pricing.

Checklist

  • Per-recipient tz → UTC unit tests around DST.
  • Idempotency-Key per scheduled logical send.
  • Canary 10 minutes ahead on a staff phone.
  • Horizon < 38 days or a re-queue worker.

Next steps

Schedule one staff SMS for 5 minutes ahead in a non-UTC zone and watch the lock screen. C# samples · setup.

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 schedule campaigns by timezone.

How do I schedule SMS campaigns by timezone with the Android SMS gateway API?

Compute the instant in the destination zone (DST-aware), serialize ISO-8601, send scheduleAt on POST /messages or use campaigns. Confirm fields in Developer Center.

Does the API accept a timezone name like Africa/Lagos?

The public sample uses an ISO-8601 timestamp. Do not invent a timeZone field here — check docs if one exists later.

What is the schedule horizon?

scheduleAt is refused beyond 38 days on the public send sample notes.

Who pays when the job fires?

The operator, when the SIM sends. Free is 300 SMS lifetime on the platform.
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.