---
title: "List or search Gmail messages as the calling member"
method: GET
path: "/v1/capabilities/google-workspace/gmail-messages"
tags: ["Capability Sources"]
---

# List or search Gmail messages as the calling member

`GET /v1/capabilities/google-workspace/gmail-messages`

Reads and searches inbox mail in the calling member's Gmail mailbox, using the Google account they connected through the org Google Workspace connection. Returns needs_connection when the member has not connected their Google account yet or the connection lacks Gmail read permission.

## Query parameters

- `q` string
- `maxResults` integer

## Response `200`

Gmail messages returned.

- GoogleWorkspaceGmailMessagesResponse
  - `ok` true, required
  - `messages` GoogleWorkspaceGmailMessageSummary[], required
    - `id` string, required
    - `threadId` string, required
    - `from` string, required
    - `to` string, required
    - `bcc` string, required
    - `subject` string, required
    - `date` string, required
    - `snippet` string, required

## Other responses

- `401` — The caller must be signed in.
- `409` — The calling member has not connected their Google account or is missing permission.
- `502` — Google rejected the request.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/805150503452/schema)
