Skip to main content

Overview

Unsubscribes users from an Official Account.

Request

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

Method POST

Rate limit 100 requests/second

Endpoint https://API domain/apigateway/publicchannel/unsubscribe

Content-Type application/json

Request Parameters

ParameterData TypeRequiredDescription
channel_idstringYesOfficial Account ID. Maximum length: 32 characters.
member_idsarrayYesIDs of the users to unsubscribe. Each user ID can contain up to 32 characters.

Request Example

POST /apigateway/publicchannel/unsubscribe HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"channel_id":"channel1",
"member_ids":["userid1","userid2"]
}

Response Example

{
"code":0,
"msg":"sucess"
}