The Add Campaign Bulk Data (V4) API facilitates the bulk addition of data to Outbound Campaigns (Dialers). This data comprising numbers/leads is structured with mapped headers, including PhoneNumber, Name, Priority, Skill, etc, for integration into the dialer.
When you call this API multiple times, the data is stored in a queue and subsequently added to the outbound campaign in a queued manner.
The data must be entered manually following the example format below.
{"map":["PhoneNumber","Name","Priority","ExpiryDate","AgentId","skill"],"data":[["81XXXXXXX8","Ironman",6,"YYYY-MM-DD","Bobby","Skillname"],["86XXXXXXXX0","KommuramBheem",7,"YYYY-MM-DD","Bobby","GeneralSkill"],["81XXXXXX8","CaptainAmerica",8,"YYYY-MM-DD","Bobby","Skillname"]]}
Note
- The maximum count of data to be added is 500 per request.
- Maximum of 5 Requests allowed per minute.
- Parameters with ‘*’ are mandatory parameters.
- Total characters length per row including all headers is 2000.
Name field validation
- All letters and numbers are allowed (a-z, A-Z, 0-9, _)
- Only these special characters are allowed: space ( ) . + $ % - :
APIs Domain NameFor domestic ccaas - enter the domain: in1-ccaas-api.ozonetel.com
For international ccaas - enter the domain: api.ccaas.ozonetel.com
For Partners - enter the respective URL
To access this API the following parameters MUST be passed.
If you add both the checkduplicte and isdelete parameters in the payload, then only isdelete considered
Parameter | Description |
|---|---|
apiKey* | Your CloudAgent account API key. Available in your account admin login. |
campaignName* | Name of the campaign to which the data is to be added. |
bulkData* | Data to be inserted |
userName* | Your CloudAgent account username |
action |
|
checkDuplicate | "true" - checks for duplicate leads in payload & campaign data in all lead statuses. If duplicate presents are found in the payload, then only the first lead in the payload will get added. "false" - API doesn't check for duplicate numbers if passed false. |
callBackUrl | Add the call-back URL if needed. It should be publicly accessible. |
isDelete | "true": When set to true, the API verifies the status of existing leads in the campaign. If the number already exists in the campaign data, it will not be added again. |
Possible Responses
Success response | API Response: "{""transactionId"": ""129171716445505819319510"", ""status"": ""success"", ""message"": ""queued successfully""} Callback response: { "data": { "totalNoUploaded": "xxxx", "numbersProcessed": "xxxx", "numbersNotProcessed": "xx", "failedFilePath": " xxxx " , "transactionId": "1292017169670681719733108", "status": "Success", "message": "File Successfully uploaded.", "startDateTime": "2024-05-29 12:47:56", "endDateTime": "2024-05-29 12:48:19" } } |
Passing Invalid apiKey Value | {"status": "error","message": "Invalid userName or apiKey"} |
Missing apiKey Value / Passing Invalid apiKey Key / Missing apiKey key | {"status": "error","message": "apiKey should not be empty"} |
Passing Invalid userName Value | {"status": "error","message": "Invalid userName or apiKey"} |
Missing userName Value / Passing Invalid userName Key / Missing userName key | {"status": "error","message": "userName should not be empty"} |
Passing Invalid CampaignName Key | {"status": "error","message": "campaignName should not be empty"} |
Passing Invalid CampaignName Value | {"status": "error","message": "Invalid Campaign Name"} |
Missing Campaign Name Key / Missing Campaign Name Value | {"status": "error","message": "campaignName should not be empty"} |
Passing Invalid bulkData Key | "{ |
Passing Invalid bulkData Value | "{ |
Missing bulkData Key | "{ |
Missing bulkData Value | "{ |
word PhoneNumber missing in bulk data map field value | "API Response : {""transactionId"": ""1292017169670681719733108"", CallBack response : |
If data is not as per map fields | "API Response : {""transactionId"": ""129861716888265726411532"", CallBack response : |
Adding data to inbound campaign | {"status": "error","message": "Invalid Campaign Name"} |
If the campaign-mapped file and API-mapped file not matching | "API Response : {""transactionId"": ""129861716888265726411532"", CallBack response : |
More than 5 hits per minute. | {"status": "error","message": "too many Requests and failed to add Data to queue"} |
Callback Url response for successful case of leads upload. | { |
Callback Url response for a failed case of leads upload. | CallBack response : |
Sample response with failed file path:
Please note that the failed file path is a pre-signed URL, valid for 24 hours.
{"data":"{"totalNoUploaded":"6","numbersProcessed":"2","numbersNotProcessed":"4","failedFilePath":"https://etl-dataprocessing.s3.ap-south-1.amazonaws.com/172067852912917131638630_error.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA5D7NL2UC6QCNZQO6%2F20240711%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20240711T061551Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEI3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5Bc0ZzRqSb1GQlqo5ndy3o1qqpT2bMW2ngK%2BRWR2p9TBnKN7Msk7Vw%2FmVGjEJyo4hXZqMKTZvbQGOrAB1yoQCAlEPtwrPDXHVb6ZzEE0sWYXmyTjzvUMnmFZmBAcdL03wSA0hladm0jbDD2CE%2Fd%2FncNlq3BPir6QTBQiIJiuuY1MjdQrzAyN9lsRmdpeMxLiM2N5n1swVBBrCZZPPoOHF0oUstzjPt5TwIj3jdNO%2BzcbaYzR%2Blmohyfin74YmVZSxQBSR0gfS2dISXXO7Prb%2BIayHDu5cpZytMUNMM5C6M%2F4u7h8O9coWr0%2B63U%3D&X-Amz-Signature=dad6909867eb45be476dde2c751776975659fdb2841d89d9b3dcf018b28baf34", "transactionId":"172067852912917131638630","status":"Success","message":"File Successfully uploaded.","startDateTime":"2024-07-11 11:45:29","endDateTime":"2024-07-11 11:45:54"}"}
