Labels allow site contributors to segment contacts in their Contact List. Contact labels are useful for targeting specific audiences for email campaigns or bulk actions.
With the label APIs, your app can view and manage a site's labels. The responses can be used to query contacts in subsequent API requests.
For more information on how labels are used, see these Wix Help Center articles:
The following table shows field support for filters and sorting for the label object:
Field | Supported Filters | Sortable |
---|---|---|
key | $eq , $ne , $in | |
displayName | $eq , $ne , $in , $startsWith | Sortable |
createdDate | $eq , $ne , $gt , $lt , $gte , $lte | Sortable |
updatedDate | $eq , $ne , $gt , $lt , $gte , $lte | Sortable |
namespace | $eq , $ne | |
labelType | $eq |
Related content: API Query Language, Query Labels
- SYSTEM: The label is a default system label for the Contact List.
- USER_DEFINED: The label was created by a site contributor or 3rd-party app.
- WIX_APP_DEFINED: The label was created by a Wix app.
Lists all contact labels for a site.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves a label with a given name, or creates one if it doesn't exist.
Successful calls to this endpoint always return a label, which can be passed to subsequent requests.
For example, in the Contacts API, Label Contact and Unlabel Contact requests will fail if you include a nonexistant label. To ensure successful calls, you can call this endpoint first, and then use the response in the label and unlabel requests.
To find an existing label without potentially creating a new one, use Get Label or List Labels.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves a label.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Deletes a label from the site and removes it from contacts it applies to.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Updates a label's specified properties.
Permission Scopes
For app development, you must have one of the following permission scopes:Syntax
Retrieves a list of contact labels. Up to 1000 labels can be returned per request.
For a detailed list of supported operations, see sorting and filtering for labels. To learn how to query labels, see API Query Language.