Send (or schedule) a message
https://api.joinotify.com/messagesThe one way to send. What changes between a text and a template is type in the
body — not the URL.
type | What for |
|---|---|
text | Free text. Only inside the 24-hour window |
template | Approved template. Opens a conversation at any time |
test | Same as template, defaulting to hello_world with translated errors |
Need an image, a video, a document, buttons or a carousel? The mirror is the way:
POST /v1/{phone_number_id}/messages takes the full Cloud API payload, with any
type Meta supports.
Scheduling. With sendAt (an ISO 8601 instant) or delaySeconds (relative),
the answer is 202 and the message goes on the queue. Entitlement and phone number
are re-checked at send time, not now.
Idempotency. With the Idempotency-Key header, a repeat of the same call returns
the first answer, with Idempotent-Replayed: true, and nothing is sent again — not
even when the first answer was an error. The same key with another body is refused
with 422 idempotency_key_reused; while the first request is still running, the
repeat gets 409 idempotency_in_progress.
Headers
1 optional
An identifier for the operation, chosen by you — 8 to 128 characters from letters,
digits, _, -, . and :. Repeating the call with the same value and the same
body returns the first answer instead of running again. Valid for 24 hours, per account.
min. 8 charactersmax. 128 characterspattern ^[A-Za-z0-9_.:-]{8,128}$
Body Paramsapplication/json
2 required9 optional
Allowed values:texttemplatetest
min. 5 characters
min. 1
max. 4096 characters
default pt_BR