Check Create private or public channel Documentation
Introduction
The create-channel API endpoint allows clients to Create public or private channels
Endpoint
Method: POST
URL: /create-channel
Request Body
folder
(String, required): The folder containing the accounts.phones
(List, required): The list of phones to be checkedtitle
(str, required): Title to be set for Channelabout
(str, required): About to be set for Channelprivate_channel
(bool, optional): Make private or public channelpublic_usernames
(str, required): Provide usernames for channel or pass "random" to generate randomly.
Example Request (1) for private channel
{
"folder": "active",
"phones": ["123456789", "123456780"],
"private_channel": true,
}
Example Request (2) for public channel
{
"folder": "active",
"phones": ["123456789", "123456780"],
"private_channel": false,
"public_usernames": ["specific username", "username2"] | "random"
}
Example Response
- Stream Text
{
"123456798": 0,
"2135467890": 100
}