Get chatroom
GET/bv/chatroom/v1/chatrooms
Retrieves a specific chatroom resource. Authorization requires the chatroom token in the header.
Request
Header Parameters
This API should be invoked with the chatroom token.
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
- Array [
- ]
chatroom object
Output only. The uuid of the chat.
Output only. Indicates whether the chat is muted or not.
Possible values: [CHAT_STATUS_ACTIVE
, CHAT_STATUS_INACTIVE
]
Output only. Indicates the current status of the chat.
blocked_users object[]
Output only. Indicates the blocked users of the chat.
Required. The uuid of the blocked user.
Required. The device id of the blocked user.
Required. The custom name of the blocked user.
Output only. Indicates whether or not the user was blocked.
action_taker objectrequired
Required. The user who blocked the user.
Optional. Immutable. The id of the user. Required if in action trigger operation, otherwise will be an output only field.
Output only. The device id of the user.
Required. The custom name of the user.
Output only. Indicates the user whether is an admin or not.
Output only. Indicates the user whether is a guest or not.
Output only. Indicates the user whether is blocked or not.
pinned_messages object[]
Output only. Indicates the pinned messages of the chat.
message objectrequired
Required. The message to pinned.
Required. The uuid of the message to pinned.
Required. The text of the message to pinned.
sender objectrequired
Required. The user who sends the message.
Required. The uuid of the user who sends the message.
Required. The device id of the user who sends the message.
Required. The custom name of the user who sends the message.
action_taker objectrequired
Required. The user who pinned the message.
Optional. Immutable. The id of the user. Required if in action trigger operation, otherwise will be an output only field.
Output only. The device id of the user.
Required. The custom name of the user.
Output only. Indicates the user whether is an admin or not.
Output only. Indicates the user whether is a guest or not.
Output only. Indicates the user whether is blocked or not.
active_poll object
Output only. It'll be available when there is an active poll in the chat.
Optional. Immutable. The uuid of the poll. Required if in update operation, otherwise will be an output only field.
Possible values: [POLL_TYPE_SINGLE_CHOICE
, POLL_TYPE_MULTI_CHOICE
]
Required. Indicates the type of the poll.
Possible values: [POLL_STATUS_QUEUED
, POLL_STATUS_ACTIVE
, POLL_STATUS_CLOSED
, POLL_STATUS_ARCHIVED
]
Output only. Indicates the status of the poll.
Output only. Indicates the total votes in the poll.
multi_choice object
Optional. Required if type is POLL_TYPE_SINGLE_CHOICE
or POLL_TYPE_MULTI_CHOICE
.
Required. The question of the poll.
options object[]required
Required. The options of the poll.
Optional. Immutable. The uuid of the option. Required if in update operation, otherwise will be an output only field.
Required. The text of this option would be displayed to the viewer.
Required. Indicates this option would be highlighted to the viewer when the poll is closed.
Output only. Indicates the total votes in the option.
Output only. Indicates the time that the poll started.
Output only. Indicates the time that the poll ended.
viewer_info object
Output only. Indicates the viewer info in the chat.
Required. Indicates whether the chat will display the viewer info or not.
Output only. Indicates the number of the concurrent viewers.
Output only. Indicates the version of the viewer info that is useful to check the ordering with other versions.
Output only. Indicates the time that the viewer info was last updated.
custom_counters object[]
Output only. Indicates the custom counters of the chat.
Required. Immutable. Indicates the key of the custom counter.
Output only. Indicates the current count value of the custom counter.
Output only. Indicates the version of the counter that is useful to check the ordering with other versions.
Output only. Indicates the time that the counter was last updated.
Output only. Indicates whether the custom counter is disabled or not.
message_setting object
Output only. The message setting of the chat.
Output only. The time to reserve the chat messages.
Output only. The batch window for the chatroom messages.
Output only. The time that the chat created.
Output only. The time that the chat last updated.
{
"chatroom": {
"id": "string",
"muted": true,
"status": "CHAT_STATUS_ACTIVE",
"blocked_users": [
{
"id": "string",
"device_id": "string",
"custom_name": "string",
"blocked": true,
"action_taker": {
"id": "string",
"device_id": "string",
"custom_name": "string",
"is_admin": true,
"is_guest": true,
"blocked": true
}
}
],
"pinned_messages": [
{
"message": {
"id": "string",
"text": "string",
"sender": {
"id": "string",
"device_id": "string",
"custom_name": "string"
}
},
"action_taker": {
"id": "string",
"device_id": "string",
"custom_name": "string",
"is_admin": true,
"is_guest": true,
"blocked": true
}
}
],
"active_poll": {
"id": "string",
"type": "POLL_TYPE_SINGLE_CHOICE",
"status": "POLL_STATUS_QUEUED",
"votes_count": 0,
"multi_choice": {
"question": "string",
"options": [
{
"id": "string",
"text": "string",
"corrected": true,
"votes_count": 0
}
]
},
"started_at": "2024-07-29T15:51:28.071Z",
"ended_at": "2024-07-29T15:51:28.071Z"
},
"viewer_info": {
"enabled": true,
"count": 0,
"version_number": "string",
"updated_at": "2024-07-29T15:51:28.071Z"
},
"custom_counters": [
{
"key": "string",
"value": 0,
"version_number": "string",
"updated_at": "2024-07-29T15:51:28.071Z",
"disabled": true
}
],
"message_setting": {
"ttl": "string",
"batch_window": "string"
},
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}