Asking is all this does. Everything you write here is stored awaiting approval and is not
usable. Your provider serves only what they have approved, so nothing you send to these endpoints
changes what the gateway accepts until somebody decides.This is the part most often misread: a sender ID you have just created and can see in the list
will still be refused at submission.
The four calls
Available from gateway 0.9.7. Against anything older they are not routed and answer
404.
What a listing tells you
The four states
enforcement is the field worth reading first
Asking for one
The response is the stored row, which will read
"status": "PENDING".
There is no account field, and that is deliberate
A registration made this way applies to every login on your account. Scoping one to a single
login is your provider’s to do.
Proposed stamps
tlvs is stored as proposed and is never applied as you sent it. Where stamps are required —
India’s DLT regime being the usual case — your provider decides the values that are actually
attached to your traffic, and reads yours as a suggestion.
This is why the listing calls the field requested_tlvs rather than tlvs. It is what you asked
for, not what is in force.
Changing one
An edit can take a live sender ID out of service
Changing the sender ID itself or the note on an approved registration puts it back toPENDING, and it stops being accepted until your provider approves it again. Your provider’s
decision was about the old text, so it does not carry over.
Because that is you stopping your own traffic, and an API has no form to warn you in, it is
refused unless you say you mean it:
"confirm_suspend": true to proceed. Read the status on the response — PENDING coming back
is the only notice you get that it stopped being served.
Changing only the label never suspends anything and needs no confirmation.
Taking a request back
PENDING request can be withdrawn. An approved sender ID is your provider’s to remove —
withdrawing one here would stop traffic that is flowing, from an endpoint whose whole job is to ask
for permission.
An id that is not yours, does not exist, or is no longer pending all answer the same 404. They are
deliberately indistinguishable, so an id cannot be probed to learn which accounts hold which
registrations.
Errors
Plus the shared ones — see API errors.
A
409 on POST is usually good news. “That sender ID is already approved for this account”
means the thing you wanted registered is registered. It is answered as a conflict rather than a
success because a second row for the same sender ID would be indistinguishable from the first.Related
Templates
The same four calls for the wording you send.
Sender IDs and templates
The same thing through the portal, with the states shown as badges.
Choosing a sender ID
What a sender ID may contain and how carriers treat it.
Custom TLVs
Stamps on an individual message, as opposed to on a registration.