This API calculates the average handling time for outbound calls made by a specific agent or a campaign over the last two hours.
To utilize this API, provide the following parameters. Please note that you only need to specify one parameter between 'agentId' and 'campaignName'.
To use this API with the help of a token, follow these steps:
- Generate the Token: Use the 'Generate Token' API to obtain an authentication token.
- Enter the Token ID: Navigate to the right section of this page, under the 'AUTHORIZATION' tab. Here, input the generated token ID.
- With the token entered, pass the below header and body parameters:
Parameter | Description |
---|---|
userName* | CloudAgent account name |
agentId | To calculate AHT of a particular agent |
campaignName | To calculate AHT of a particular campaign |
Content-Type | application/json |
Note
- The Rate Limit for this API is 50 Requests Per Minute.
Possible responses
Success response for Campaign | "status": "success" |
Success response for Agent | "status": "success" |
If userName is Empty | "status": "error" |
If apiKey is Empty | "status": "error" |
If both agentId and campaignName is not passed | "status": "error" |
If both agentId and campaignName is passed as empty fields | "status": "error" |
If invalid apiKey or userName is passed | "status": "error" |
If an invalid agentId is passed while fetching for a particular agent | "status": "error" |
If an invalid campaignName is passed while fetching for a particular Campaign | "status": "error" |
If the Rate Limit exceeds | "status": "error" |