post https://campaign-api.omni.chat/v1/audiences
Creates a new static audience based on file.
The audience represents a set of recipients for the campaign. It consists of contact data that will be used to launch the campaign.
To upload a file you'll need to send a request of type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a audience.
The file will go through a series of checks to validate that it is correctly formatted and meets specifications. We return an error for uploads that fail any of our checks.
Checks we perform:
- File extension.
- File size.
- Number of lines.
- File header.
- Column separator.
- Field format.