---
title: "Read recent messages in a Google Chat space"
method: GET
path: "/v1/capabilities/google-workspace/chat-spaces/{spaceId}/messages"
tags: ["Capability Sources"]
---

# Read recent messages in a Google Chat space

`GET /v1/capabilities/google-workspace/chat-spaces/{spaceId}/messages`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/capabilities/google-workspace/chat-spaces/{spaceId}/messages`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Returns messages newest first, one page at a time, with text, sender and thread. Uses only the calling member's selected connected Google account and requires the Google Chat permission on the Google Workspace connector.

## Path parameters

- `spaceId` string, required

## Query parameters

- `pageSize` integer
- `pageToken` string

## Response `200`

Google's validated response.

- GoogleChatMessageList
  - `messages` GoogleChatMessage[]
    - `name` string, required
    - `createTime` string
    - `text` string
    - `sender` object
      - `name` string
      - `displayName` string
      - `type` string
    - `thread` object
      - `name` string, required
  - `nextPageToken` string

## Other responses

- `400`: Invalid input.
- `401`: Sign-in required.
- `409`: Missing permission or Google Chat is not enabled for the connector.
- `502`: Google rejected or did not confirm the operation.

## Changes

- **2026-10-27** `6c7ed4961204`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/capabilities/google-workspace/chat-spaces/:spaceId/messages/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/8117bc7c5626?raw)
