Hanzo
OpenapiNotify

Delivers one transactional SMS through the caller org's own provider credential.

Delivers one transactional SMS through the caller org's own provider credential.

POST /v1/notify/send/sms

Addresshttps://api.hanzo.ai/v1/notify/send/sms
MethodPOST
Operationpost_notify_send_sms
AuthAuthorization: Bearer $HANZO_API_KEY

Delivers one transactional SMS through the caller org's own provider credential.

It is the channel-pinned form of the generic send: identical in every respect except that the channel is fixed to sms, OVERRIDING whatever the body names — so a body that says email still goes out as a text message. The provider is the org's own SMS credential from KMS (Twilio, then Plivo), resolved for the validated principal's org; an unauthenticated caller gets 401.

Request

9 fields, body application/json (required).

FieldInTypeRequiredDescription
bodybodystringBody is the message text, sent verbatim when present — the no-template path.
channelbodystringChannel selects the delivery channel, sms or email.
eventbodystringEvent is the event name, which doubles as the template id when TemplateID is empty — the IAM OTP path sends event=iam.otp_sent and nothing else.
providerbodystringProvider pins a provider service name (twilio, plivo, twilio_email, mail).
subjectbodystringSubject is the message subject, carried on the email channel only.
syncbodystringSync must be exactly "true": delivery here is synchronous, and anything else answers 503 because the queue plane that would run an async dispatch is owned…
template_idbodystringTemplateID selects a built-in template when Body is empty.
template_varsbodyanyTemplateVars carries the values the selected template renders against, as a raw JSON object.
tobodystring[]To is the destination address per recipient — a phone number for sms, an email address for email.

Response

StatusBodyMeaning
200ok

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo notify send sms

Notify API · All Hanzo APIs · Interactive reference

How is this guide?

On this page