Google Chat Spaces API

The Spaces API from Google Chat — 1 operation(s) for spaces.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 32

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/spaces Create a space · Create spaces #
Ask an LLM
“How do I create a new Google Chat space?”
“Can I create a space in import mode for a data migration?”
Tell an agent
Create a space named {displayName}.
Create a space in import mode {importMode} with display name {displayName}.
GET /v1/spaces List spaces I'm a member of · List spaces #
Ask an LLM
“Which Google Chat spaces am I a member of?”
“Why don't group chats or DMs show up until someone messages?”
Tell an agent
List the spaces I'm a member of.
List spaces matching {filter}.
PATCH /v1/spaces/{spacesId} Update a space's details · Patch spaces #
Ask an LLM
“How do I rename a space or change its settings?”
“Can I update a space's permission settings?”
Tell an agent
Rename space {spacesId} to {displayName}.
Update the permission settings of space {spacesId} to {permissionSettings}.
DELETE /v1/spaces/{spacesId} Delete a space · Delete spaces #
Ask an LLM
“How do I delete a named space?”
“Does deleting a space also remove its messages and memberships?”
Tell an agent destructive · confirm first
Delete space {spacesId}.
Remove the named space {spacesId} and everything in it.
GET /v1/spaces/{spacesId} Get a space's details · Get spaces #
Ask an LLM
“What type and details does a particular space have?”
“Can I look up a space by its ID?”
Tell an agent
Get space {spacesId}.
Show the details of space {spacesId}.
GET /v1/spaces:findGroupChats Find group chats with specific users · Find group chats spaces #
Ask an LLM
“Is there already a group chat with me and a set of other people?”
“Can I find the group chat that includes certain users?”
Tell an agent
Find the group chat with users {users}.
Search for a group chat that includes {users}.
POST /v1/spaces/{spacesId}:completeImport Complete a space import · Complete import spaces #
Ask an LLM
“How do I make an imported space visible to users?”
“What happens to a space once its import is complete?”
Tell an agent
Complete the import of space {spacesId}.
Make imported space {spacesId} visible to users.
GET /v1/spaces:search Search a Workspace for spaces · Search spaces #
Ask an LLM
“How do I search all spaces in my Google Workspace organization?”
“Can I search spaces by display name or creation time?”
Tell an agent
Search Workspace spaces for {query}.
Find spaces in my organization matching {query} ordered by {orderBy}.
POST /v1/spaces:setup Create a space and add members · Setup spaces #
Ask an LLM
“How do I create a space and add specific people to it at once?”
“Can I set up a new space with initial members in one call?”
Tell an agent
Create a space and add members {memberships}.
Set up a new space with {space} and invite {memberships}.
GET /v1/spaces:findDirectMessage Find my direct message with a user · Find direct message spaces #
Ask an LLM
“What's the direct message I have with a particular person?”
“Can I look up the DM between me and one user?”
Tell an agent
Find my direct message with {name}.
Get the DM between me and {name}.
DELETE /v1/spaces/{spacesId}/members/{membersId} Remove a member from a space · Delete members #
Ask an LLM
“How do I remove someone from a space?”
“Can I kick a user out of a conversation?”
Tell an agent destructive · confirm first
Remove membership {membersId} from space {spacesId}.
Kick {membersId} out of space {spacesId}.
PATCH /v1/spaces/{spacesId}/members/{membersId} Change a member's role in a space · Patch members #
Ask an LLM
“How do I make someone a moderator or owner in a space?”
“Can I change a user's role within a conversation?”
Tell an agent
Set the role of membership {membersId} in space {spacesId} to {role}.
Promote {membersId} to {role} in space {spacesId}.
GET /v1/spaces/{spacesId}/members/{membersId} Get a membership in a space · Get members #
Ask an LLM
“What role does a specific user have in a space?”
“Can I look up one membership in a space?”
Tell an agent
Get membership {membersId} in space {spacesId}.
Show the role of {membersId} in space {spacesId}.
POST /v1/spaces/{spacesId}/members Add a member to a space · Create members #
Ask an LLM
“How do I add a user or group to an existing space?”
“Can I invite someone to a conversation I'm in?”
Tell an agent
Add {member} to space {spacesId}.
Invite {member} to the existing space {spacesId}.
GET /v1/spaces/{spacesId}/members List members of a space · List members #
Ask an LLM
“Who are the members of a particular space?”
“Can I include invited or group members when listing a space's members?”
Tell an agent
List the members of space {spacesId}.
List members of space {spacesId} matching {filter}.
POST /v1/spaces/{spacesId}/messagePins Pin a message in a space · Create messagePins #
Ask an LLM
“How do I pin a message so it stays at the top of a conversation?”
“Can I pin a message in a space?”
Tell an agent
Pin message {message} in space {spacesId}.
Pin the message {message} to the top of space {spacesId}.
GET /v1/spaces/{spacesId}/messagePins List message pins in a space · List messagePins #
Ask an LLM
“Which messages are pinned in a space?”
“Can I see every pinned message in a conversation?”
Tell an agent
List the message pins in space {spacesId}.
Show the pinned messages in space {spacesId}.
DELETE /v1/spaces/{spacesId}/messagePins/{messagePinsId} Unpin a message from a space · Delete messagePins #
Ask an LLM
“How do I unpin a message from a conversation?”
“Can I remove a pinned message?”
Tell an agent destructive · confirm first
Unpin message pin {messagePinsId} from space {spacesId}.
Remove the pinned message {messagePinsId} in space {spacesId}.
GET /v1/spaces/{spacesId}/spaceEvents/{spaceEventsId} Get one event from a Chat space · Get spaceEvents #
Ask an LLM
“How do I read a single event from a Google Chat space?”
“What does the event payload contain for a message update?”
Tell an agent
Get event {event} from space {space}.
Show the event payload for {event} in space {space}.
GET /v1/spaces/{spacesId}/spaceEvents List events in a Chat space · List spaceEvents #
Ask an LLM
“How do I list all events that happened in a Chat space?”
“Can I filter space events by type?”
Tell an agent
List events in space {space}.
List events in space {space} matching {filter}.
POST /v1/spaces/{spacesId}/messages/{messagesId}:replaceCards Replace cards in a message · Replace cards messages #
Ask an LLM
“How do I replace the cards in a message?”
“Can I remove all cards from a message by passing an empty list?”
Tell an agent
Replace the cards in message {message} of space {space} with {cards}.
Remove all cards from message {message} in space {space}.
POST /v1/spaces/{spacesId}/messages Send a message to a Chat space · Create messages #
Ask an LLM
“How do I send a message to a Google Chat space?”
“Can I post a message as a bot and have it start a thread?”
Tell an agent
Send {text} to space {space}.
Post a message in space {space} as {sender}.
GET /v1/spaces/{spacesId}/messages List messages in a Chat space · List messages #
Ask an LLM
“How do I list all messages in a Google Chat space?”
“Can I list only messages from a specific thread?”
Tell an agent
List messages in space {space}.
List messages in space {space} matching {filter}.
PUT /v1/spaces/{spacesId}/messages/{messagesId} Replace a message's text and cards · Update messages #
Ask an LLM
“How do I overwrite a message's text and cards in one full update?”
“Can I update a message by sending all its fields again?”
Tell an agent
Replace the text and cards of message {message} in space {space} with {text} and {cards}.
Overwrite message {message} in space {space} using update mask {mask}.
PATCH /v1/spaces/{spacesId}/messages/{messagesId} Patch a message's text or cards · Patch messages #
Ask an LLM
“How do I change just the text of a message without resending everything?”
“Can I patch a message's cards using a partial update?”
Tell an agent
Patch message {message} in space {space} with {text}.
Patch message {message} in space {space} with cards {cards}.
DELETE /v1/spaces/{spacesId}/messages/{messagesId} Delete a message · Delete messages #
Ask an LLM
“How do I delete a message from a Chat space?”
“Can I delete a message and its threaded replies at once?”
Tell an agent destructive · confirm first
Delete message {message} from space {space}.
Delete message {message} in space {space} with force {force}.
GET /v1/spaces/{spacesId}/messages/{messagesId} Get a message in a Chat space · Get messages #
Ask an LLM
“How do I read the full details of a message in a Chat space?”
“Can I get a message's formatted text in a specific syntax?”
Tell an agent
Get message {message} from space {space}.
Show message {message} in space {space} with {syntax} formatted text.
POST /v1/spaces/{spacesId}/messages:search Search messages in a Chat space · Search messages #
Ask an LLM
“How do I search a Chat space for messages about a topic?”
“Can I search across every space I have access to?”
Tell an agent
Search messages in space {space} for {filter}.
Search all spaces for messages matching {filter}.
POST /v1/spaces/{spacesId}/messages/{messagesId}/reactions React to a message · Create reactions #
Ask an LLM
“How do I react to a message in a Chat space?”
“Can I add a custom emoji as a reaction?”
Tell an agent
React to message {messagesId} in space {spacesId} with {emoji}.
Add a reaction to message {messagesId} in space {spacesId}.
GET /v1/spaces/{spacesId}/messages/{messagesId}/reactions List reactions on a message · List reactions #
Ask an LLM
“Who has reacted to a message in a Chat space?”
“Can I filter message reactions by emoji?”
Tell an agent
List reactions on message {messagesId} in space {spacesId}.
Show {filter} reactions on message {messagesId} in space {spacesId}.
DELETE /v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId} Remove a reaction from a message · Delete reactions #
Ask an LLM
“How do I take back a reaction I added to a message?”
“Can I remove someone else's reaction?”
Tell an agent destructive · confirm first
Delete reaction {reactionsId} from message {messagesId} in space {spacesId}.
Remove my reaction {reactionsId} on message {messagesId} in space {spacesId}.
GET /v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId} Get a message attachment · Get attachments #
Ask an LLM
“How do I fetch the metadata of an attachment in a message?”
“Where do I get the file data once I have an attachment's metadata?”
Tell an agent
Get attachment {attachmentsId} on message {messagesId} in space {spacesId}.
Show metadata for attachment {attachmentsId} in message {messagesId}, space {spacesId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-chat:google-chat-spaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-chat-spaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Chat Spaces API
  version: v1
  description: Generated from Google's published Discovery document for Google Chat API (chat v1, revision 20261108). 32 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://chat.googleapis.com
tags:


# --- truncated at 32 KB (314 KB total) ---
# Full source: https://artifacts.apis.io/google-chat/openapi/google-chat-spaces-api-openapi.yml