Table of Contents
Send notifications to users through API:
NOTE: In case of a new user (i.e. the user doesn’t exist on your contact list in AiSensy Platform) then a new contact will get created with the incoming details.
The request body contains data with the following structure:
object with key-value pairs. The only string is allowed as the key's value.
Optional. The object should contain keys already added as assistant attributes paired with values that you want to set as user's attributes.
optional fields are not necessary for the request payload
The medial URL provided in the media object should be publically accessible, otherwise, the request will be rejected
The length of the template params array should be equal to the number of params required in the campaign whose name is provided in campaignName field. Otherwise, the request will be rejected
Tags should be created in your project before using them. It can be done by anyone with manager level access
If a tag doesn't exist in your project, it will be ignored
Attributes should be added to the project before using them. It can be done by anyone with manager level access
If an attribute doesn't exist in your project, it will be ignored
If successful, the response body will return a status of 200.