Developers

Send SMS from your Android phone with a REST API

Already have a phone with a good mobile plan? NHZ Gateway turns it into an SMS API for your website, shop or CRM. Pair it once, then send with a single HTTPS request and get replies and delivery reports on webhooks.

How it works

  1. Install the app on any Android 7 or newer phone and type the pairing code from your dashboard.
  2. Create an API key in Settings.
  3. Call the API. The phone picks up queued messages within seconds and sends them from its SIM, at a pace you set to keep the number healthy.
  4. Receive events. Replies and delivery reports are posted to your webhook, signed with HMAC-SHA256.

Send a message

curl -X POST https://gateway.nhzglobal.com/api/v1/messages \
  -H "Authorization: Bearer nhz_your_key" \
  -H "Content-Type: application/json" \
  -d '{"to": "+14155550123", "message": "Your order #1042 has shipped"}'

The response lists each queued message with its id, plus any numbers skipped because they are invalid or opted out. Numbers without a + get your account's default country code.

Send a verification code

curl -X POST https://gateway.nhzglobal.com/api/v1/otp \
  -H "Authorization: Bearer nhz_your_key" \
  -d '{"to": "+447700900123"}'

Then check the code the user types with /api/v1/otp/verify. Attempts, expiry and resend limits are handled for you.

Receive replies

Set a webhook URL in Settings and we will POST message.received and message.status events. Each request carries an X-NHZ-Signature header so you can check it came from us, and failed calls are retried for about eight hours.

Good uses for a phone-based SMS API

Keep it transactional. A phone on a consumer mobile plan is right for expected, one-to-one messages. For marketing blasts, connect Twilio or another registered SMS provider in the dashboard and pass provider_id in the same API call.

Compared with a hosted SMS API

Hosted SMS APIs charge per message and, in the US, require 10DLC brand and campaign registration before you can send. A paired phone has no per-message fee and works the moment it is online, which makes it ideal for prototypes, internal alerts and modest transactional volume. Many teams start on a phone and add a provider route later without changing their code.

Full reference: NHZ Gateway API documentation.

Try NHZ Gateway free. Pair a phone in a minute, then text, automate and connect your website.

Start free trial See pricing