MPZ API > Bulk Add Subscribers

Use the API to bulk insert subscribers, from comma delimited (CSV) data. Using the API you can quickly upload bulk subscriber data as compressed BASE64 code, and then retrieve bulk update progress using the Query Bulk Imports API.

Request

Submit an XML Request with the following details:
Post URL: https://mpzmail.com/api/v3.0/subscribers/bulkSubscribers/
Fields to Post
apiKey String REQUIRED The APIKey of the requesting user.
groupID Int REQUIRED The group ID the subscriber belongs to.
fileData BASE64 REQUIRED The Base64 encoded data to upload. The original comma delimited data before encryption, must be in this format.
Download Sample File

Response

Data Sent Back
error Int Indicates wether an error has occured. 0 for no error. 1 for error.
status String If there's been an error, a text description of the error that occured will be here.
importID Int If a success, an import ID will be sent back which you can then use to query the import job status.

Sample request XML

<xml>
     <apiKey>44-121312131223</apiKey>
     <groupID>213213</groupID>
     <fileData>ZW1haWwsZmlyc3RuYW1lLGxhc3ROYW1lLGNvbXBhbnlOYW1lLGhvdXNlTm8sYWRkcmVzczEsYWRkcmVzczIsdG93bixjb 3VudHksY291bnRyeSxwb3N0Q29kZSxkYXRlT2ZCaXJ0aCxnZW5kZXIsY3VzdG9tRmllbGQxLGN1c3RvbUZpZWxkMixjdX N0b21GaWVsZDMsY3VzdG9tRmllbGQ0LGN1c3RvbUZpZWxkNSxjdXN0b21GaWVsZDYsY3VzdG9tRmllbGQ3LGN1c3RvbUZ pZWxkOCxjdXN0b21GaWVsZDksY3VzdG9tRmllbGQxMA==</fileData>
</xml>

Sample response XML

<xml>
     <error>0</error>
     <status>success</status>
     <importID>124124</importID>
</xml>

Comments