The Wrap-up Codes API is part of the Agent Application APIs. Use it to obtain a list of all wrap-up codes and their descriptions that you can access based on your user API key.
This legacy information is part of v1, v2, or v3, which will be supported only until March 31, 2027. To avoid disruption, migrate your integration to v4 before that date. For endpoint mappings, Bearer token authentication, and scoped API key guidance, see the Migrating to v4 article in the Developer's Guide.
Please refer to the detailed API endpoint specification: List wrap-up codes
Wrap-up codes
This API allows you to retrieve IDs and other details for wrap-up codes by sending a List wrap-up codes request to your contact center.
Tip: You can use this API to retrieve object values needed for List CDR.
Prerequisites
- The requesting user must be configured in your contact center.
- You must have at least one wrap-up code configured for your contact center.
Making requests
The Wrap-up codes API requires the Base URL (cluster_id) and the API key of a specific user. This tells Voiso which user is making the request. Voiso responds with the list of wrap-up codes the requesting user can access.
Use the API request to initiate a call. For example:
{
"method": "GET",
"url": "https://cluster1.contact_center_name.com/api/v2/cdr/wrapup_codes",
"params": {
"key": "cc7c76b8987a27ab57...00ab6c3"
}
}
Response
The following table describes the elements of the response.
| Element | Description | Type | Notes |
|---|---|---|---|
| description | The name of the wrap-up code and its associated code number. | string | |
| code | The wrap-up code number. | string |
Response sample
[
{
"description": "0100: Qualified Lead",
"code": "0100"
},
{
"description": "0101: Lead discarded",
"code": "0101"
},
{
"description": "1007: Premium",
"code": "1007"
},
{
"description": "2112: Rush Sale",
"code": "2112"
}
]
Troubleshooting
The following issues are sometimes encountered:
Invalid User API Key
The Wrap-up codes API requires the user API key to validate the request. If you see this error, "error": "Invalid User API Key", check that you are using the correct user API key. For more information about API keys, refer to Authentication.