Get Customer Labels

Retrieves the list of labels tagged to a customer.

👍

Note

For detailed information about the APIs and for hands-on testing, refer to the API overview documentation and step-by-step guide on making your first API call.

Prerequisites

  • Basic Authentication
  • Default access group

Resource information

URIcustomers/userId/labels
HTTP methodGET
AuthenticationBasic
Pagination supported?NO
Rate limitYES
Batch supportNO

Example cURL request

curl --location 'https://eu.api.capillarytech.com/v2/customers/564663098/labels' \
--header 'Authorization: Basic c2FudC5wXzzpiMmVhMGFhYWI1ZThmODg5ZTAzNGE2NjA5NTIwM2FlNw=='

Path Parameter

ParameterData typeDescription
userIdIntegerUnique identifier of the customer for whom labels are being modified.

Response Parameter

ParameterData TypeDescription
dataArrayAn array of label objects assigned to the user.
- idIntegerUnique ID of this user-label mapping record.
- orgIdIntegerOrganization ID where the label was added.
- addedByIntegerID of the user who added the label.
- labelIdIntegerUnique identifier of the label.
- userIdIntegerUnique ID of the customer/user.
- labelNameStringName of the label.
- deletedBooleantrue indicates the object is inactive or marked for deletion; false means the object is active.
warningsArrayAn array of warning objects, if any.
errorsArrayAn array of error objects, if any.
{
    "data": [
        {
            "id": 33558,
            "orgId": 100737,
            "addedBy": 75155295,
            "labelId": 20942,
            "userId": 564663098,
            "labelName": "Premium Customer",
            "deleted": false
        },
        {
            "id": 33561,
            "orgId": 100737,
            "addedBy": 75155295,
            "labelId": 20948,
            "userId": 564663098,
            "labelName": "Valuable Customer shvdshjdvshdvhjsdvjasajshjahadjgciuwyeguhbcwjhbjdshsbcjhwhewbehcbwjdhbckwjhekjhcbw",
            "deleted": false
        },
        {
            "id": 33559,
            "orgId": 100737,
            "addedBy": 75155295,
            "labelId": 20949,
            "userId": 564663098,
            "labelName": "Old1 Customer1",
            "deleted": false
        },
        {
            "id": 33557,
            "orgId": 100737,
            "addedBy": 75155295,
            "labelId": 20952,
            "userId": 564663098,
            "labelName": "Old2 Customer2",
            "deleted": false
        },
        {
            "id": 33560,
            "orgId": 100737,
            "addedBy": 75155295,
            "labelId": 20957,
            "userId": 564663098,
            "labelName": "Testing_UAT_@_123",
            "deleted": false
        }
    ],
    "warnings": [],
    "errors": []
}

API Specific Error Codes

Error CodeDescriptionReason
33001User labels not foundOccurs when no labels are found for the user or incorrect label references are given.
{
    "warnings": [
        {
            "status": false,
            "message": "User labels not found",
            "code": 33001
        }
    ],
    "errors": []
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!