---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules

`GET /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules`

## Request

- Base URL: `https://contactcenterinsights.googleapis.com`
- URL: `https://contactcenterinsights.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Lists auto labeling rules.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- GoogleCloudContactcenterinsightsV1ListAutoLabelingRulesResponse: The response message for listing auto labeling rules.
  - `autoLabelingRules` GoogleCloudContactcenterinsightsV1AutoLabelingRule[]: The auto labeling rules.
    - `active` boolean: Whether the rule is active.
    - `conditions` GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition[]: Conditions to apply for auto-labeling the label_key. Representing sequential block of if .. else if .. else statements. The value of the first matching condition will be used.
      - `condition` string: A optional CEL expression to be evaluated as a boolean value. Once evaluated as true, then we will proceed with the value evaluation. An empty condition will be auto evaluated as true.
      - `value` string: CEL expression to be evaluated as the value.
    - `createTime` string, google-datetime: Output only. The time at which this rule was created.
    - `description` string: The description of the rule.
    - `displayName` string: The user-provided display name of the rule.
    - `labelKey` string: The label key. This is also the {auto_labeling_rule} in the resource name. Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
    - `labelKeyType` 'LABEL_KEY_TYPE_UNSPECIFIED' | 'LABEL_KEY_TYPE_CUSTOM': The type of the label key.
    - `name` string: Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
    - `updateTime` string, google-datetime: Output only. The most recent time at which the rule was updated.
  - `nextPageToken` string: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

---

[API](https://skmtc.dev/google/apis/contactcenterinsights.md) - [All operations](https://skmtc.dev/google/apis/contactcenterinsights/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/contactcenterinsights/revisions/895c3ce55ea0?raw)
