Skip to main content

Get Campaign Leads

Retrieve all leads associated with a specific campaign. Returns lead configuration including assigned user mappings, priority, weightage, and dialing settings.

Endpoint​

GET https://{Cms_Domain_Name}:{port}/cms/configuration/cc/{contactCenterId}/process/{processId}/campaign/{campaignId}/campaign-lead

Authentication​

HeaderValue
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer {AuthToken}
info

The AuthToken is obtained from the Token Generation endpoint.

Path Parameters​

ParameterTypeRequiredDescription
contactCenterIdIntegerYesContact center ID
processIdIntegerYesProcess ID (from Get All Processes)
campaignIdIntegerYesCampaign ID (from Get All Campaigns)

Sample Request​

curl -X 'GET' \
'https://{Cms_Domain_Name}:443/cms/configuration/cc/1/process/1/campaign/1/campaign-lead' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {AuthToken}'

Sample Response​

{
"http_code": 200,
"method": "GET",
"request_id": "a7f1e14d-4bc1-4d37-9d82-6e7443eb5c6c",
"response": [
{
"http_code": 200,
"error_data": null,
"data": {
"id": 1,
"campaignContextId": 1,
"leadId": 2,
"priority": 1,
"weightage": 1,
"enabled": true,
"maxAttempt": 10,
"churnCount": 0,
"fetchOrderDetails": [],
"leadDialingConfigurationEnabled": true,
"leadDialingEnabledAtAllTime": true,
"campaignLeadDialingConfigurations": [],
"campaignLeadUserMappings": [
{
"id": 29,
"campaignLeadId": 1,
"campaignUserId": 1
},
{
"id": 30,
"campaignLeadId": 1,
"campaignUserId": 3817
},
{
"id": 31,
"campaignLeadId": 1,
"campaignUserId": 3802
}
],
"dateAdded": "2025-09-10T06:49:57.192+00:00",
"dateModified": "2026-03-23T10:43:01.523+00:00",
"ref": 1,
"version": 22
}
}
]
}

Response Fields​

FieldTypeDescription
idIntegerCampaign-lead mapping ID
campaignContextIdIntegerParent campaign ID
leadIdIntegerLead list identifier
priorityIntegerLead priority (lower = higher priority)
weightageIntegerLead weightage for distribution
enabledBooleanWhether the lead is active
maxAttemptIntegerMaximum dialing attempts per contact
churnCountIntegerNumber of churned contacts
fetchOrderDetailsArrayCustom fetch order configuration
leadDialingConfigurationEnabledBooleanWhether custom dialing config is active
leadDialingEnabledAtAllTimeBooleanWhether dialing is enabled 24/7
campaignLeadDialingConfigurationsArrayTime-based dialing rules
campaignLeadUserMappingsArrayList of assigned agent mappings
campaignLeadUserMappings[].idIntegerMapping record ID
campaignLeadUserMappings[].campaignLeadIdIntegerCampaign-lead ID
campaignLeadUserMappings[].campaignUserIdIntegerCampaign-user ID
dateAddedStringISO 8601 creation timestamp
dateModifiedStringISO 8601 last modification timestamp
refIntegerReference counter
versionIntegerRecord version number

Error Responses​

Status CodeDescription
400Bad Request — Invalid path parameters
401Unauthorized — Missing or invalid token
403Forbidden — Insufficient permissions
404Not Found — Campaign or process does not exist
500Internal Server Error
{
"statusCode": 404,
"status": "Not Found",
"errorCode": "CONF-1001",
"errorMessage": "Object doesn't exist"
}