Introduction
This page describes the/agent API endpoints.
These endpoints are protected by a bearer auth token. See the
brand agent token endpoint for more
information on how to get such a token.
The examples in the sections that follow use variables that you might want to
configure on a terminal session:
AGENT_TOKEN with the help of jq:
Message submit
Send a message to a single phone number. If you typically send more than one messages in bursts, rather use batching. An urgent message that the recipient is waiting for (like those that contain an OTP) should not be batched. For such messages this direct submit is likely to be the correct solution. Note there is a per-provider limit on the messages per second that will be accepted on this endpoint (this is usually around50 mps). Please contact us
for more details if you are concerned about this limitation.
Endpoint: POST /message/:msidn
Request schema
- Either the
contentof thetemplateproperty must have a value, but not both. - The
contentproperty contains a Message Content object. - The
contentproperty must contain valid content for theproviderTypeof the brand agent you are using. - The
templateproperty contains a Template Content object. - The
userRefproperty is limited to a length of36characters; and it cannot be an empty string. - If the
smsSenderIdis notnullthis value takes precedence over the sender ID provided on the template. - The
isMarketingflag should be set totrueif the batch contains marketing messages. The default value isfalse