Creates a message. Requires service account authentication.
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/AAAAAAAAAAA |
Query parameters
Parameters | |
---|---|
threadKey |
Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a The first message with a given |
requestId |
Optional. A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message. |
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.