---
title: "Send a message to an existing Google Chat space or direct message"
method: POST
path: "/v1/capabilities/google-workspace/chat-spaces/{spaceId}/messages"
tags: ["Capability Sources"]
---

# Send a message to an existing Google Chat space or direct message

`POST /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

Posts one text message as the member after explicit user confirmation. It cannot create a space or start a new direct message. Never automatically retry an uncertain send. 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

## Request body

- object
  - `text` string, required: Plain message text, up to 4,096 characters.
  - `threadName` string: Reply in this existing thread of the same space (a message's thread.name). Omit to start a new thread.
  - `confirm` true, required: True only after the user explicitly asked to send this message to this space. Finding the space or drafting the text is not send authorization.

## Response `200`

Google's validated response.

- GoogleChatMessage
  - `name` string, required
  - `createTime` string
  - `text` string
  - `sender` object
    - `name` string
    - `displayName` string
    - `type` string
  - `thread` object
    - `name` string, required

## 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/post.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)
