Access a user's Google Chat spaces and send messages on their behalf
/spaces
| Param | Type | Required | Description |
|---|---|---|---|
| pageSize | integer | optional | Maximum number of results to return |
| pageToken | string | optional | Page token for the next page |
| filter | string | optional | Optional Google Chat space filter |
/spaces/{spaceId}
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
/spaces
| Param | Type | Required | Description |
|---|---|---|---|
| displayName | string | required | User-visible space name |
| spaceType | string | required | Space type; normally SPACE for a named space |
/spaces/{spaceId}/members
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
| pageSize | integer | optional | Maximum number of results to return |
| pageToken | string | optional | Page token for the next page |
| filter | string | optional | Optional membership filter |
| showGroups | boolean | optional | Include Google Group memberships |
/spaces/{spaceId}/members/{memberId}
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
| memberId | string | required | Membership ID or member email, without the spaces/{space}/members/ prefix |
/spaces/{spaceId}/members
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
| memberName | string | required | Google Chat user name, such as users/person@example.com |
| memberType | string | required | Google Chat member type |
| role | string | optional | Membership role |
/spaces/{spaceId}/members/{memberId}
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
| memberId | string | required | Membership ID or member email, without the spaces/{space}/members/ prefix |
/spaces/{spaceId}/messages
| Param | Type | Required | Description |
|---|---|---|---|
| spaceId | string | required | Space ID, without the spaces/ prefix |
| text | string | required | Message text |
| threadName | string | optional | Optional thread resource name to reply in |