users

GET /v1/users/{usersId}/spaces/{spacesId}/threads/{threadsId}/threadReadState

Changed on

Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see Get details about a user's thread read state. Requires user authentication with one of the following authorization scopes: - https://www.googleapis.com/auth/chat.users.readstate.readonly - https://www.googleapis.com/auth/chat.users.readstate

Request

  • Base URL
    https://chat.googleapis.com
  • URL
    https://chat.googleapis.com/v1/users/{usersId}/spaces/{spacesId}/threads/{threadsId}/threadReadState
  • Auth
    • OAuth 2 and OAuth 2
      Implicit: https://accounts.google.com/o/oauth2/auth
      Scopes: https://www.googleapis.com/auth/chat.users.readstate
      Authorization code: https://accounts.google.com/o/oauth2/auth
      Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.users.readstate
    • or OAuth 2 and OAuth 2
      Implicit: https://accounts.google.com/o/oauth2/auth
      Scopes: https://www.googleapis.com/auth/chat.users.readstate.readonly
      Authorization code: https://accounts.google.com/o/oauth2/auth
      Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.users.readstate.readonly

Path parameters

usersIdstring required
spacesIdstring required
threadsIdstring required

Response

Successful response

lastReadTimestring google-datetime

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

namestring

Resource name of the thread read state. Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

Changes

    • info

      the security scope https://www.googleapis.com/auth/chat.users.readstate was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/chat.users.readstate was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/chat.users.readstate.readonly was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/chat.users.readstate.readonly was removed from the endpoint's security scheme Oauth2c