/secure/senders, and everything said there applies: four
calls, the same envelope, and what you write is stored awaiting approval and is not usable until
your provider decides.
The four calls
Available from gateway 0.9.7.
The listing carries the same fields as sender IDs — including the
four states, of which only
APPROVED is usable — with one
difference worth noticing: value is the wording and label is the name you gave it.
Asking for one
The placeholder grammar
Write the message as the regulator writes it, with a placeholder standing in for the part that changes:
Everything around a placeholder is matched exactly. Change a word of it and the message no longer
matches the template.
What is refused before it is stored
The wording is checked by the same code that will compile it if approved, so anything accepted here will load. Four refusals, each with a reason:A placeholder that is not one of the three
A placeholder that is not one of the three
Nothing but a placeholder
Nothing but a placeholder
Two placeholders with nothing between them
Two placeholders with nothing between them
Blank wording, or longer than 2000 characters
Blank wording, or longer than 2000 characters
Longer than any message a template could approve.
Changing one
PUT replaces rather than patches — a field you do not send is cleared. Send the whole row.
Send "confirm_suspend": true to proceed with an edit that would suspend a live template, and read
the status on the response.
Errors
The same set as/secure/senders — 400, 404, 409, 412,
429 and 503, with the message naming which.
Related
Sender IDs
The same four calls for the names you send from.
Sender IDs and templates
The same thing through the portal.