Get chatroom config
GEThttps://api.one.blendvision.com/bv/chatroom/v1/chatrooms/config
Retrieves the chatroom configuration data necessary for initialization. Authorization requires the chatroom token in the header.
Request
Header Parameters
authorization string
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
connection object
topic object
user object
token object
{
"connection": {
"endpoint": "string",
"authorizer": "string",
"token": "string",
"signature": "string",
"client_id": "string"
},
"topic": {
"pub": "string",
"sub": "string"
},
"user": {
"is_admin": true,
"is_guest": true,
"customer_id": "string",
"device_id": "string",
"custom_name": "string"
},
"token": {
"expired_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
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"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
code int32
message string
details object[]
{
"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
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Authorization: authorization
name: authorizationtype: apiKeydescription: Enter the token with Bearer schema prefix, eg. `Bearer <token-string>`in: header
- curl
- python
- go
- nodejs
- php
- CURL
curl -L 'https://api.one.blendvision.com/bv/chatroom/v1/chatrooms/config' \
-H 'Accept: application/json' \
-H 'authorization: <API_KEY_VALUE>'
ResponseClear