Agent Manual Dial (Token authentication)

Agent Manual dial Online (Click2Call) API is used to make outbound calls through any web application, as we perform in the agent toolbar manually. This API works only if the agent is logged in as an agent in the CloudAgent toolbar and available in manual or blended mode.

To use this API with the help of a token, follow these steps:

  1. Generate the Token: Use the 'Generate Token' API to obtain an authentication token.
  2. Enter the Token ID: Navigate to the right section of this page, under the 'AUTHORIZATION' tab. Here, input the generated token ID.
  3. With the token entered, pass the below header and body parameters:
ParameterDescription
Content-TypeShould be - application/json
userName*Your CloudAgent acoount username
agentID*Unique id for every agent irrespective to campaign
campaignName*Name of the campaign where the manual dial should be initiated
customerNumber*Number to be dialed out
UCIDtrue - Paaing 'true' as a parameter gives you the UCID of the call in the API response.
false - Passing 'false' or any other invalid value doesn't provide you the UCID in the API response.
uuiThis is an additional data field used to pass application data from an API or user inputs on IVR into the report

❗️

Note

Parameters with ‘*’ are to be considered as mandatory parameters.

Possible responses

Success Call{"ucid":"90XXXXXXXXXXXXX","status":"queued successfully"}
Hitting the request when the token is expired.{"status": "false","message": "Token Expired","data": null}
Missing Token."{""status"": ""false"",""message"": ""Token Should Not be Null or Empty."",
""data"": null}"
Passing Invalid Token.{"status": "false","message": "Invalid Token","data": null}
Hitting API with valid inputs when the 'API Authentication' setting is - 'Basic Auth' for the account"{""status"": ""false"",""message"": ""Api Key Should Not be Null or Empty."",
""data"": null}"
Passing Invalid userName Key"{""status"": ""false"",""message"": ""Username Should Not be Null or Empty."",
""data"": null}"
Passing Invalid userName Value{"status": "false","message": "Invalid User Details","data": null}
Missing userName key"{""status"": ""false"",""message"": ""Username Should Not be Null or Empty."",
""data"": null}"
Missing userName Value"{""status"": ""false"",""message"": ""Username Should Not be Null or Empty."",
""data"": null}"
Passing Invalid agentID Key{"status": "Fail","message": "Please Pass Valid AgentId are Valid skillName "}
Passing Invalid agentID Value{"status": "Fail","message": "Please Pass Valid AgentId"}
Missing agentID key{"status": "Fail","message": "Please Pass Valid AgentId are Valid skillName "}
Missing agentID Value{"status": "Fail","message": "Please Pass Valid AgentId are Valid skillName "}
When agent not ready / agent not logged in / agent not in manual or blended mode{"status": "Fail","message": "Agent is not available"}
Passing Invalid CampaignName Key{"status": "Fail","message": "Campaign name should not be null are empty"}
Passing Invalid CampaignName Value{"status": "Fail","message": "Please pass Valid Campaign Details"}
Missing Campaign Name Key{"status": "Fail","message": "Campaign name should not be null are empty"}
Missing Campaign Name Value{"status": "Fail","message": "Campaign name should not be null are empty"}
When the campaign is offline{"status": "Fail","message": "Please pass Valid Campaign Details"}
Campaign is not in running state / campaign is not enabled for manual calling{"status": "Fail","message": "Please pass Valid Campaign Details"}
UCID=true{"ucid":"914XXXXXXXXX","status":"queued successfully"}
UCID=false or ucid with invalid values{"status":"queued successfully"}
with uui / without uui{"ucid":"914XXXXXXXXX","status":"queued successfully"}
Missing parameters"{""status"": ""false"",""message"": ""Username Should Not be Null or Empty."",
""data"": null}"
Attempting to make a call on a configured holiday{"status": "Fail","message": "Call cannot be initiated on a holiday"}

📘

Further Insights

By default, the domain name is https://in1-ccaas-api.ozonetel.com. Please refer here to change based on the need.

Language
Authorization
Bearer
URL
Click Try It! to start a request and see the response here!