Skip to main content

Overview

Queries specified custom attributes in a chatroom.

Request

Authentication: Add authentication headers to the request. See Authentication.

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/chatrooms/atts/qry

Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
chat_idstringYesChatroom ID. Maximum length: 32 characters.
att_keysarrayYesAttribute keys to query. Each key can contain up to 50 characters.

Request Example

POST /apigateway/chatrooms/atts/qry HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"chat_id":"chatroom1",
"att_keys":["k1","k2"]
}

Response Example

{
"code":0,
"msg":"sucess",
"data":{
"chat_id":"chatroom1",
"atts":[
{
"key":"k1",
"value":"v1",
"user_id":"userid1",
"att_time":1732123445223
}
]
}
}