Working examples you can copy. Each one sends an SMS, waits and tries again when the API answers 429,
and checks status in the answer, because HTTP 200 can still be a refusal.Keep the API key in an environment variable or a secret store, never in the source code.Send an SMS#
Receive a delivery report#
Give the address of this receiver as callback_url when you send. It must answer HTTP 200; any other answer,
including 204, makes us send the report again. The same report can arrive more than once, so save it by
message_id and SMSID. See Delivery reports for every field.Call with a login token#
Sign in once, keep the token, and send it as a bearer token. See Authentication
for renewing it.Every reference page also shows a ready request in many more languages: open a call and look at the request
sample on the right. Modified at 2026-10-08 11:07:12