Creates a message.
HTTP request
POST https://chat.googleapis.com/v1/{parent=spaces/*}/messages
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAMpdlehY |
Query parameters
Parameters | |
---|---|
threadKey |
Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat Has no effect if |
Request body
The request body contains an instance of Message
.
Response body
If successful, the response body contains a newly created instance of Message
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chat.bot
For more information, see the OAuth 2.0 Overview.