API Overview
Message Callbacks
Status Codes
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
| Parameter | Data Type | Required | Description | |
|---|---|---|---|---|
| channel_id | string | Yes | Official Account ID. Maximum length: 32 characters. | |
| channel_name | string | No | Official Account name. Maximum length: 100 characters. | |
| channel_portrait | string | No | Official Account avatar URL. Maximum length: 200 characters. | |
| creator_id | string | No | Creator'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"
}