Lists all contact labels for a site.
You can only call this method when authenticated as a Wix app or Wix user identity.
Filter for labels of the specified type.
Filter for labels in the specified namespace.
Filter for labels where displayName
starts with the specified case-sensitive string.
Name of the field to sort by.
Sort order.
Default: ASC
.
Number of items to return.
Defaults to 1000
.
Maximum: 2000
.
Number of items to skip in the current sort order.
List of labels.
Metadata for the page of results.
curl -X GET \
'https://www.wixapis.com/contacts/v4/labels' \
-H 'Authorization: <AUTH>'
{
"labels": [
{
"namespace": "custom",
"namespaceDisplayName": "Labels",
"key": "custom.my-label",
"displayName": "My Label",
"labelType": "USER_DEFINED",
"createdDate": "2020-04-20T14:02:20Z",
"updatedDate": "2020-04-20T14:02:20Z"
},
{
"namespace": "custom",
"namespaceDisplayName": "Labels",
"key": "custom.another-label",
"displayName": "Another Label",
"labelType": "USER_DEFINED",
"createdDate": "2020-04-20T14:02:20Z",
"updatedDate": "2020-04-20T14:02:20Z"
},
{
"namespace": "contacts",
"namespaceDisplayName": "Labels",
"key": "contacts.customers",
"displayName": "Customers",
"labelType": "SYSTEM"
},
{
"namespace": "contacts",
"namespaceDisplayName": "Labels",
"key": "contacts.contacted-me",
"displayName": "Contacted Me",
"labelType": "SYSTEM"
}
],
"metadata": {
"count": 4,
"offset": 0,
"total": 4
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.