Skip to main content

Overview

Queries the sensitive words used to moderate the content of private-chat and group-chat text messages.

Request

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

Method: GET

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/sensitivewords/list

Content-Type: application/json

Request Example

GET /apigateway/sensitivewords/list?limit=20&offset=xx HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
offsetstringYesID from which to begin the query. Each sensitive-word record has a unique ID. Leave this parameter empty for the initial query.
limitintNoNumber of records per page. Default: 50. Maximum: 100.

Response Parameters

ParameterData TypeDescription
itemsarrayList of sensitive words.
items[].idstringUnique ID of the sensitive word.
items[].wordstringSensitive word.
items[].word_typeintFiltering action. 1: block messages containing the sensitive word; 2: replace the sensitive word.
is_finishedboolWhether all records have been returned.

Response Example

{
"code":0,
"msg":"sucess",
"data":{
"items":[
{
"id":"xx",
"word":"xx",
"word_type":1
}
],
"is_finished":false
}
}