Introduction
This page describes some JSON objects used by the API.Message Content
TheMessageContent object specifies the body of a message to send.
- The
rcsproperty is a flexible data structure that specifies the RCS message. - The
waproperty is a JSON object that specifies a valid WhatsApp message structure. - The
smsproperty is valid SMS text. - You must supply a value for one of the properties; the mandatory property depends on the provider you are sending to.
- You may supply values for more than one property. For instance, providing a value for
smsis required to fall back to SMS. - The
fallbackChainis an array of Brand Agent IDs. If a message fails for a reason that triggers fallback then the next item in the chain will be tried. The fallback processing can continue until the last item in the chain has been tried. - For every agent identified in the
fallbackChainthere must content for the assocciated provider type. For example if the chain contains an SMS agent then thesmsproperty must be supplied. - Each string in the
fallbackChainmust identify an existing agent. These values are not verified during submit, but they are verified during processing. An invalid entry will terminate fallback processing. - The
fallbackChaincannot contain any duplicates, and it cannot contain theagentIdassociated with the send request.
Template Content
TheTemplateContent object specifies how you want to use a template.
See the template create endpoint if you want to add templates to your account.
- The
idobject must identify an existing template. - If the template does not have any parameters, the
modeldoes not have to be supplied. - If the template has parameters the model contains the name-value pairs to fill in the template.
- Every template parameter must have an entry in the model.
welcome-message and parameter names: firstName and lastName.
An object that uses this template looks like this: