Skip to main content

Overview

Creates 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/create

Content-Type application/json

Request Parameters

ParameterData TypeRequiredDescription
channel_idstringYesOfficial Account ID. Maximum length: 32 characters.
channel_namestringNoOfficial Account name. Maximum length: 100 characters.
channel_portraitstringNoOfficial Account avatar URL. Maximum length: 200 characters.
creator_idstringNoCreator's user ID. Maximum length: 32 characters.

Request Example

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

{
"channel_id":"channel1",
"channel_name":"publicchannel",
"channel_portrait":"https://xxxxxx.jpg",
"creator_id":"userid1"
}

Response Example

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