curl --location --request POST 'https://slack.com/api/admin.conversations.create' \
--header 'token;' \
--data-urlencode 'is_private=' \
--data-urlencode 'name='
{
"channel_id": "C12345",
"ok": true
}
admin.conversations:write
true
, creates a private channel instead of a public channeltrue
, the channel will be available org-wide. Note: if the channel is not org_wide=true
, you must specify a team_id
for this channelorg_wide=true
.