---
title: "List Gmail labels for store ingestion"
method: GET
path: "/v1/integrations/gmail/labels"
tags: ["integrations"]
---

# List Gmail labels for store ingestion

`GET /v1/integrations/gmail/labels`

List Gmail labels and whether each label is selected for store ingestion.

## Query parameters

- `installation_id` string, uuid, required — Gmail installation ID

## Response `200`

Gmail label selection for an account

- GmailLabelSelectionResponse — Gmail label selection response.
  - `data` GmailLabelSelection, required — Gmail label and search selection for a store connector.
    - `is_installed` boolean, required — Whether Gmail is installed for the organization
    - `installation_id` string, nullable — Gmail installation ID
    - `account_email` string, nullable — Connected Gmail account email
    - `store_id` string, nullable — Mixedbread store ID
    - `store_name` string, nullable — Mixedbread store name
    - `labels` GmailLabel[], required — Available Gmail labels
      - `id` string, required — Gmail label ID
      - `name` string, required — Gmail label display name
      - `type` string, nullable — Whether this is a system or user label
      - `is_selected` boolean — Whether this label is selected for ingestion
      - `messages_total` integer, nullable — Approximate total messages for the label
      - `messages_unread` integer, nullable — Approximate unread messages for the label
    - `selected_label_ids` string[] — Every Gmail label ID selected for ingestion

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/revisions/f66774ddecfc/schema)
