Search Customers by Label

Retrieves the list of customers who are tagged to a specific label. You can also search by partial label name. By default you will see a maximum of 10 records.

  • Rate limiter controls the number of incoming and outgoing traffic of a network.
  • Authentication verifies the identity of the current user or integration. See Introduction > Authentication (Merchant Setup on Admin Portal) for more details.
👍

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/labels/search?q=LabelName
HTTP methodGET
AuthenticationBasic
Pagination supported?NO
Rate limitYES
Batch supportNO

Example request

curl --location 'https://eu.api.capillarytech.com/v2/customers/labels/search?q=r' \
--header 'Authorization: Basic ******' \
--header 'Cookie: _cfuvid=A7RRUmy8v5VI5rJd.mVzhbsc4Ab_bYLSUImEI2T6GuE-1757664909131-0.0.1.1-604800000'

Query parameters

ParameterData TypeDescription
q*StringSpecify the label name by which you want to fetch customers. You can also pass partial string. The search query. Values are case-sensitive. For example pre to fetch customers in all labels that starts with pre.
offsetIntegerNumber of records to skip for pagination.
limitIntegerMaximum number of records to return. -1 means no limit (fetch all records).

Response parameters

ParameterData TypeDescription
paginationObjectPagination details. The maximum number of records to return per page. Defaults to 10 if not specified.
- limitIntegerNumber of records returned per page.
- offsetIntegerOffset used for pagination.
- totalIntegerTotal number of records available.
dataArrayArray of user data objects.
- userIdIntegerUnique identifier of the user.
- customerLabelsArrayLabels assigned to this user.
-- orgIdIntegerOrganization ID where the label belongs.
-- labelIdIntegerUnique ID of the label.
-- userIdIntegerUnique identifier of the user.
-- labelNameStringName of the label assigned to the user.
warningsArrayAny warnings returned by the API.
errorsArrayAny errors returned by the API.
{
    "pagination": {
        "limit": 10,
        "offset": 0,
        "total": 2
    },
    "data": [
        {
            "userId": 564341182,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 17243,
                    "userId": 564341182,
                    "labelName": "real"
                }
            ]
        },
        {
            "userId": 565032200,
            "customerLabels": [
                {
                    "orgId": 100737,
                    "labelId": 17243,
                    "userId": 565032200,
                    "labelName": "real"
                }
            ]
        }
    ],
    "warnings": [],
    "errors": []
}
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!