Skip to main content
POST
Send a message to an existing Google Chat space or direct message

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

spaceId
string
required

The ID after spaces/ in a space name, e.g. AAAA1234 for spaces/AAAA1234.

Required string length: 1 - 256
Pattern: ^[A-Za-z0-9_-]+$

Body

application/json
text
string
required

Plain message text, up to 4,096 characters.

Required string length: 1 - 4096
confirm
boolean
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.

threadName
string

Reply in this existing thread of the same space (a message's thread.name). Omit to start a new thread.

Pattern: ^spaces\/[A-Za-z0-9_-]+\/threads\/[A-Za-z0-9_-]+$

Response

Google's validated response.

name
string
required
Minimum string length: 1
createTime
string
text
string
sender
object
thread
object