Bulk Message Upload
The bulk message upload API is provided for clients who want to upload large batches of individual messages included in a CSV format. Once the .CSV file is uploaded successfully, the messages are queued into the Volt MX Foundry Messaging to start sending message notifications.
You can see the progress of uploaded messages in the Message Queue section.
Post data should have a key as uploadFile for the uploaded file.
CSV File Format
- Bulk messages can be processed in one time.
- CSV should have data in the following order:
- APP_ID
- SUBSCRIBER_KSID
- MESSAGE_DATA contains the message to be sent / pushed
- The first line can be with or without a header line.
Request URL
The key values can be provided either in the URL or as part of the post data. URL is on priority.
The following table details the key-values.
Key | Value |
---|---|
DELIMITER | %7c |
SOURCE_FORMAT | APP_ID%2cSUBSCRIBERS_KSID%2cMESSAGE_DATA |
IGNORE_ROW | false |
Note: The values of IGNORE_ROW can be either true or false.
- True means there is a header in the CSV file.
- False means there is no header in the CSV file.
Request Method
HTTP POST
Input Parameters
Input parameters are appended at the end of the URL.
Note: '%7c' is encoded value of '|' and '%2c' is of ',' Delimiters
- APP_ID: Application ID is a unique key used to identify the subscribed application.
- SUBSCRIBER_KSID: Volt MX Subscription Identification number of the application. For more details, refer to Ksid
- MESSAGE_DATA contains the message to be sent / pushed
Sample CSV File Format with Delimiter as '|' symbol
excel|11|Test Message.
excel|12|Test Message.
excel|21|Test Message.
excel|32|Test Message.
excel|22|Test Message.
Response Code
Code | Description |
---|---|
400 | Please choose a valid file to upload data. |
400 | Invalid content in the uploaded file @ line 1. |
200 | Messages queued successfully. |