List labels of user
GET {{baseUrl}}/api/v1/users/:user_id/labels
This API lists a particular number of labels associated with a user, based on the limit defined.
OAuth Scope
Desk.contacts.READ
Desk.settings.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
isPrimary | string | Key that filters the primary label assigned to the user | |
from | string | Index number, starting from which the labels must be fetched. The default value is 1 | |
limit | string | Number of labels to list. The default value and the maximum value allowed is 50 | |
sortBy | string | Key that sorts the list of labels by a particular attribute: -(assignedTime ) | |
searchBy | string | Search keyword to use for finding a particular user. The keyword must contain at least two characters. | |
helpCenterId | string | ID of the help center from which the labels must be fetched |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"data":[{"preferences":{"shape":"ROUNDED","bgColor":"#5787E0","textColor":"#FFFFFF"},"isPrimary":false,"name":"Prime Customer","id":"24073000002958013","helpCenterId":"24073000002886005","logoUrl":null,"assignedTime":"2020-04-06T05:55:13.000Z"},{"preferences":{"shape":"RECTANGLE","bgColor":"#39B54A","textColor":"#FFFFFF"},"isPrimary":false,"name":"Zoho One","id":"24073000002958023","helpCenterId":"24073000002886005","logoUrl":null,"assignedTime":"2020-04-06T05:55:13.000Z"},{"preferences":{"shape":"RECTANGLE","bgColor":"#CE6785","textColor":"#FFFFFF"},"isPrimary":false,"name":"MVP","id":"24073000002958029","helpCenterId":"24073000002886005","logoUrl":null,"assignedTime":"2020-04-06T05:55:13.000Z"}]}