Method: spaces.webhooks

Legacy path for creating message. Calling these will result in a BadRequest response.

HTTP request

POST https://chat.googleapis.com/v1/{parent=spaces/*}/webhooks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAAAAAAAA

Query parameters

Parameters
threadKey

string

Optional. Opaque thread identifier. To start or add to a thread, create a message and specify a threadKey instead of thread.name. (Setting thread.name has no effect.)

The first message with a given threadKey starts a new thread. Subsequent messages with the same threadKey post into the same thread.

requestId

string

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 an 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.