API Reference
The ECM REST APIs allow configuring resources such as campaigns, strategies, campaign contacts, and preference settings . It currently supports the following functions:
- Manage Campaigns
- Upload Contacts to campaigns
- Insert DNC callers
- Manage campaign strategies
- Define preference configurations
On this page:
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
CODE
|
HTTP Response | 200: Success 400: Invalid request body 401: Unauthorized 404: Not found 405: HTTP method not allowed 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
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 401: Not Authorized 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | In case of CCE: Example Response
CODE
In case of CCX response: Example Response
CODE
|
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
CODE
|
HTTP Response | 201: Success 401: Not Authorized 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
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
CODE
|
HTTP Response | 200: Success 401: Not Authorized 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
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
CODE
|
HTTP Response | 200: Success 401: Not Authorized 404: Not Found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Complete Campaign object with the updated values (Ref: Response of create campaign) |
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 401: Not Authorized 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
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 401: Not Authorized 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response |
Campaign Status (Pause/Resume)
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/campaign/campaignUpdateStatus |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body |
|
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Campaign with id successfully paused/resumed |
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 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
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 | JSON |
Request Body |
|
HTTP Request | Example Request
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Update Single Contact in DNC
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/contact/update |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body |
|
HTTP Request | Example Response
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Delete Contact from DNC
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/contact/delete?id=1 |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | DELETE |
Input/Output Format | JSON |
Request Parameters | id: This is the id of the DNC contact in the DNC list |
HTTP Request | |
HTTP Response | 204: Success - No Content 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | 204: Not content |
Bulk Upload Contacts to DNC
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/contact/uploadCsv |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | File: A CSV file as an attachment, multipart file The File format should be the following: contact-number,optional-name |
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | message: File is uploading. |
Upload Contacts to Campaign
This API is used to push contacts to an ECM campaign for making calls or sending messages.
Upload Single contact
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callback/insertCallback |
Bearer token-from-login-API | |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
HTTP Request |
CODE
|
Request Body |
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | statusString: callback data saved |
Bulk upload contacts to a campaign
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callback/uploadBulkCaller |
Bearer token-from-login-API | |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
Request Body |
phone1,phone2,phone3,phone4,phone5,businessParam1,businessParam2..... businessParam12, dialTime If an attribute is not required then it should be left empty and then a comma. For example, the user wants to upload contacts with phone1 and businessParam1. The file entries will look like below, 0300948984,,,,,businessParam1
|
HTTP Request | - |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | File is uploaded |
Get campaign contacts
This API is used to get the status of the campaign contacts in the ECM database.
Protocol | HTTP or HTTPS | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | https://<UMM-FQDN>/umm/ecm/callback/getList | ||||||||||||||||||||||
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 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable | ||||||||||||||||||||||
Example Response | Example Response
CODE
|
Call Strategies
Get Strategies
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategy |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | GET |
Input/Output Format | JSON |
HTTP Request | - |
Request Parameters | |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Create strategy
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategy/save |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
HTTP Request | Example Response
CODE
|
Request Parameters | |
HTTP Response | 200: Success 404: Not found 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Update Name
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategy/updateName |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
HTTP Request | Example Response
CODE
|
Request Parameters | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | 200 - Success |
Delete Strategy
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategy/delete?id=1 |
Authorization | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
HTTP Request | |
Request Parameters |
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | 200 - Success |
Get Strategy Attempts
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategyAttempt/save |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Create Strategy Attempt
Protocol | HTTP or HTTPS | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategyAttempt/save | ||||||||||||
Authorizaitoion | Bearer token-from-login-API | ||||||||||||
Content-Type | Application/JSON | ||||||||||||
HTTP Method | POST | ||||||||||||
Input/Output Format | JSON | ||||||||||||
Request Body |
If the call result is one of the above, it allows to define which attempt should be made and after how much time. Example: This means if call_result = BUSY then go for attempt 2 and execute it after 30 minutes. In the case of an SMS attempt, it allows defining what to do if there's no reply from the customer; i.e. whether the system should make another attempt or close the contact. Example: | ||||||||||||
HTTP Request | Example Request
CODE
| ||||||||||||
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable | ||||||||||||
Example Response | Example Response
CODE
|
Update Strategy Attempt
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategyAttempt/update |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | Example Request
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Delete Strategy Attempt
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategyAttempt/delete?id=1 |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | 200: Success |
Update Attempt Order
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/callStrategyAttempt/updateOrder |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | Example Request
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | 200 - Success |
Preference Settings
Get Preference Settings
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/preferenceSettings |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Save Preference Settings
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/preferenceSettings/save |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | Example Request
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Update Preference Settings
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/preferenceSettings/update |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | Example Request
CODE
|
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | Example Response
CODE
|
Delete Preference Settings
Protocol | HTTP or HTTPS |
---|---|
URL | https://<UMM-FQDN>/umm/ecm/preferenceSettings/delete?id=1 |
Authorizaitoion | Bearer token-from-login-API |
Content-Type | Application/JSON |
HTTP Method | POST |
Input/Output Format | JSON |
Request Body | |
HTTP Request | |
HTTP Response | 200: Success 404: Not found 406: Not Acceptable 500: Internal Server Error 503: Service Unavailable |
Example Response | 200 : Success |