Key Takeaways
- PowerShell send-SMS against an Android SMS gateway is HTTPS/JSON via Invoke-RestMethod — not a PowerShell SDK, NuGet, or “Complete SDK” product.
- Live paths and fields live in Developer Center. This page is a sample pattern.
- HTTP success is not delivery. Use DLR or webhooks for terminal status.
- Put API keys in environment variables / SecretManagement — never in script history.
- Idempotency keys stop double-sends when scripts retry.
- You bring the Android and operator credit. We meter devices and send volume.
PowerShell is a REST client
Sending SMS with PowerShell against an Android SMS gateway API is the same HTTPS/JSON contract as cURL or any language sample — not a branded PowerShell SDK. Hub: Android SMS gateway API. Live fields: Developer Center. Sibling probe: cURL send SMS.
If the only success test is StatusCode 200, you tested the Windows box, not the radio.
PS> Invoke-RestMethod -Method Post … █
Accepted ≠ delivered. Not an SDK.
Smoke checklist
| Check | Pass | Fail tells you |
|---|---|---|
| TLS + auth | No 401 after env key | Stale key in profile/history |
E.164 to | Staff canary rings | Excel/leading-zero damage |
| Device online | PDU leaves | OEM kill / offline phone |
| Idempotency | Retry does not double-text | Missing client reference |
| DLR / webhook | Terminal status later | Accepted-only lie |
Invoke-RestMethod shape
Pattern only — confirm URI, headers, and JSON in Developer Center before production:
$headers = @{ Authorization = "Bearer $env:SMS_GATEWAY_API_KEY" }
$body = @{ to = $to; message = $text; clientSmsId = $idem } | ConvertTo-Json
Invoke-RestMethod -Method Post -Uri $env:SMS_GATEWAY_URL -Headers $headers `
-Body $body -ContentType 'application/json' -TimeoutSec 30Other language samples stay samples — PHP, C#— not multi-language “Complete SDK” products.
Keys in env
Prefer process env or SecretManagement modules. Never commit keys. OTP bodies must not land in transcript logs. DLR: delivery reports.
Cost
You bring the Android and operator SMS credit. Script retries without idempotency still meter volume. Free: 1 device / 300 SMS lifetime / 300 contacts. See device and SMS volume pricing.
Checklist
- No “PowerShell SDK” product claim.
- Keys from env only.
- Timeouts set.
- Idempotency on retries.
- Accept ≠ delivered documented.
- OTP isolated from marketing scripts.
- Developer Center for live fields.
- No Unlimited SMS titles.
Next steps
Pre-launch gates: phone-as-gateway pre-launch. Setup: device setup.
Related product pages
Jump to the live product docs for this topic—not another long-form article.
- SMS API documentationLive endpoint reference
- device and SMS volume pricingPlans and allowances
- Android SMS gateway product guideDefinition, product, and how to buy
- download the Android gateway appGet the APK





