conversations_create
POST
/conversations.create https://slack.com/api
Initiates a public or private channel-based conversation
Parameters
header Header Parameters
| Name | Type |
|---|---|
token Authentication token. Requires scope: | string |
Request Body
application/x-www-form-urlencoded
{ is_private?: boolean;name?: string; }
Responses
200 application/json
If successful, the command returns a rather stark conversation object
{ channel: ObjsConversation ;ok: DefsOkTrue ; }
default application/json
Typical error response when name already in use
{
callstack?: string;
detail?: string;
error: "method_not_supported_for_channel_type" | "missing_scope" | "name_taken" | "restricted_action" | "no_channel" | "invalid_name_required" | "invalid_name_punctuation" | "invalid_name_maxlength" | "invalid_name_specials" | "invalid_name" | "not_authed" | "invalid_auth" | "account_inactive" | "user_is_bot" | "user_is_restricted" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "team_added_to_org" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required";
needed?: string;
ok:DefsOkFalse ;
provided?: string;
}
callstack?: string;
detail?: string;
error: "method_not_supported_for_channel_type" | "missing_scope" | "name_taken" | "restricted_action" | "no_channel" | "invalid_name_required" | "invalid_name_punctuation" | "invalid_name_maxlength" | "invalid_name_specials" | "invalid_name" | "not_authed" | "invalid_auth" | "account_inactive" | "user_is_bot" | "user_is_restricted" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "team_added_to_org" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required";
needed?: string;
ok:
provided?: string;
}