Send an SMS message
Send a single SMS — now, or at a future time by passing scheduled_at. The recipient must be a valid E.164 number. It doesn't have to be one of your contacts: a number you've never stored is sent to without creating a contact (pass create_contact to add one), and opt-outs and the suppression list still apply. Marketing sends additionally require the recipient's prior express consent on record and honor recipient-local quiet hours (they are deferred to the next allowed window, never dropped). The sender is chosen by the recipient's country — the active number or Sender ID whose reach covers it, exactly as campaigns route — unless you pin one with from (a snum_… id from List SMS numbers, or the number / Sender ID string). Pass an Idempotency-Key header to make retries safe: the same key with the same body replays the original message instead of sending (and billing) twice. Billing is per segment. Read delivery state back with Retrieve an SMS message. Requires the sms:send capability.
Request
- Base URL: https://www.unitpost.com/api/v1
- URL: https://www.unitpost.com/api/v1/sms
- Auth: HTTP bearer
Request body
Response
Accepted for delivery or scheduled.
Changes
No recorded changes to this operation across all 1 revision of this API.