API Reference
The ECM REST APIs allow to configure campaigns, strategies and insert contacts to a campaign. It currently supports the following functions:
Manage Campaigns
Upload Contacts to campaigns
Insert DNC callers
Manage campaign strategies
On this page:
- 1 Login
- 1.1 Example Request
- 1.2 Example Response
- 2 Campaign
- 2.1 Get Cisco Campaigns
- 2.1.1 Example Response
- 2.1.2 Example Response
- 2.2 Create campaign
- 2.2.1 Example Request
- 2.2.2 Example Response
- 2.3 Create Campaign by Skill Group
- 2.3.1 Example Request
- 2.3.2 Example Response
- 2.4 Update Campaign
- 2.4.1 Example Request
- 2.5 Get Campaigns List
- 2.5.1 Example Response
- 2.6 Delete campaign
- 2.7 Pause Campaign
- 2.8 Resume Campaign
- 2.1 Get Cisco Campaigns
- 3 DNC (Do Not Call)
- 4 Upload Contacts in a campaign
- 5 Call Strategies
- 5.1 Create strategy
- 5.1.1 Example Response
- 5.1.2 Example Response
- 5.2 Create Attempt
- 5.2.1 Example Request
- 5.2.2 Example Response
- 5.3 Get Strategies
- 5.3.1 Example Response
- 5.1 Create strategy
Login
This API is used to get an access token that will be used as a bearer token in the rest of the APIs for authentication/authorization. This API also returns license and user details
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/api/login |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
Request Body |
|
Example Request | Example Request{
"username":"admin",
"password":"admin"
} |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response{
"license":"valid",
"licStatus":"trial",
"licensedTo":"KPMG",
"creationDate":"2019-09-16T19:00:00Z",
"expiryDate":"2022-10-16T19:00:00Z",
"supportExpiryDate":null,
"numberOfAgents":5,
"valid":true,
"userDetails":{
"id":1,
"username":"admin",
"userId":null,
"email":null,
"fullName":"Administrator",
"type":"DB",
"isActive":true,
"profileExists":false,
"lastLogin":"Fri Jun 11 13:40:55 PKT 2021",
"lastUpdated":"1623400855424",
"dateCreated":"1615193443313",
"createdBy":null,
"updatedBy":null,
"profilePicture":null,
"roles":[{
"id":1,
"name":"Administrator",
"description":"Administrator Role",
"permissions":null}]},
"token_type":"Bearer",
"token":"JWT-TOKEN",
"expires_in":36000,
"refresh_token":"JWT-REFRESH-TOKEN"
}
|
Campaign
Get Cisco Campaigns
This API fetches the Cisco campaigns from UCCE/UCCX. A campaign from this list can be choosen to associated with ECM campaign in campaign create API
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/fetchCiscoCampaigns |
Authorization | Bearer token retrieved from login API |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
Request Parameters |
|
HTTP Request | - |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | In case of CCE: Example Response[
{
"ciscoCampaignId": "5001",
"ciscoCampaignName": "IVR_based",
"ciscoTableName": "DL_5002_5002",
"ciscoFileName": "test.txt",
"ciscoFilePath": "//Sprawler/import/",
"campaignType": "0"
}
]In case of CCX response: Example Response[
{
"ciscoCampaignId": "5001",
"ciscoCampaignName": "IVR_based"
"campaignType": "0"
}
] |
Create campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/createCampaign |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body |
|
HTTP Request | Example Request{
"startTime": "22:10",
"endTime": "22:23",
"name": "sample_campaign",
"description": "details",
"strategyId": "22",
"status": "1",
"type": "0",
"crmCampaignId": "crm_campaign_1",
"ciscoCampaignId": "5001",
"weekDays": "0,1,2",
"enabled": true,
"description": "details",
"smsTemplate": "sms-template"
} |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response{"id": "2",
"crmCampaignId": "crm_campaign_1",
"ciscoCampaignId": "5001",
"ciscoCampaignName": "IVR_based",
"smsTemplate": "sms template",
"description": "details",
"enabled": true,
"endTime": "22:23",
"strategyId": "22",
"name": "sample_campaign",
"startTIme": "22:10",
"status": "1",
"type": "0",
"lastUpdated": "2018-11-14T11:01:42Z",
"dateCreated": "2018-11-14T11:01:42Z",
"weekdays": "0,1,2"
}
|
Create Campaign by Skill Group
This API is used for creating a campaign in ECM using a UCCE skill group. The skill group name passed is JSON is used to associated UCCE campaign with ECM campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/createCampaignBySkilllGroup |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body |
|
HTTP Request | Example Request{
"crmCampaignId":"1122",
"name": "Agent_Camp",
"description": null,
"dialerType":"PREDICTIVE",
"skillGroup": "skillGroupName",
"enabled": true,
"endTime": "23:30",
"startTime": "00:00",
"strategyId": 2,
"type": 0,
"weekDays": "0,1,2,3,6",
}
|
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response{"id": "2",
"crmCampaignId": "1122",
"ciscoCampaignId": "5001",
"ciscoCampaignName": "IVR_based",
"dialerType":"PREDICTIVE",
"skillGroup": "skillGroupName",
"smsTemplate": "sms template",
"description": null,
"enabled": true,
"endTime": "23:30",
"strategyId": "2",
"name": "Agent_Camp",
"startTime": "00:00",
"status": "1",
"type": "0",
"lastUpdated": "2018-11-14T11:01:42Z",
"dateCreated": "2018-11-14T11:01:42Z",
"weekdays": "0,1,2,3,6"
}
|
Update Campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/update |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | PUT |
Input/Output Format | JSON |
Request Body |
|
HTTP Request | Example Request{
"id":1
"name":"updated name"
} |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response |
|
Get Campaigns List
This will return the complete list of campaigns
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
Request Body |
|
HTTP Request |
|
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response[
{"id": "2",
"crmCampaignId": "crm_campaign_1",
"ciscoCampaignId": "5001",
"ciscoCampaignName": "IVR_based",
"smsTemplate": "sms template",
"description": "details",
"enabled": true,
"endTime": "22:23",
"strategyId": "22",
"name": "sample_campaign",
"startTIme": "22:10",
"status": "1",
"type": "0",
"lastUpdated": "2018-11-14T11:01:42Z",
"dateCreated": "2018-11-14T11:01:42Z",
"weekdays": "0,1,2"
},
...
] |
Delete campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/delete?id=1 |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | DELETE |
Input/Output Format | JSON |
Request Parameters |
|
HTTP Request |
|
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response |
|
Pause Campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/pause?id=1 |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Parameters |
|
HTTP Request |
|
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response |
|
Resume Campaign
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/resume?id=1 |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Parameters |
|
HTTP Request | - |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response |
|
DNC (Do Not Call)
This resource is used to update the DNC list in ECM so that the system does not dial contacts that are present in the DNC list.
Get DNC Contacts
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/contact |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
Request Parameters |
|
HTTP Request |
|
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response[
{
"id": 1,
"name": "David",
"updateById": 1,
"primaryNumber": "03062558180",
"dataCreated": "2019-07-31T12:02:09Z",
"lastUpdated": "2019-07-31T12:02:09Z"
},
...
] |
Upload Single Contact to DNC
Protocol | HTTP or HTTPS |
|---|---|
URL | https://<UMM-FQDN>/umm/ecm/contact/save |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format |