Search + K

Command Palette

Search for a command to run...

Sign In

conversations_leave

POST /conversations.leave
Copy endpoint
https://slack.com/api

Leaves a conversation.

Parameters

header Header Parameters

Name Type
token

Authentication token. Requires scope: conversations:write

string

Request Body

application/x-www-form-urlencoded
{ channel?: string; }

Responses

200 application/json

Typical success response

{ not_in_channel?: true;ok: DefsOkTrue
type DefsOkTrue = true
; }
default application/json

Typical error response when attempting to leave a workspace's "general" channel

{
callstack?: string;
error: "method_not_supported_for_channel_type" | "last_member" | "missing_scope" | "channel_not_found" | "is_archived" | "cant_leave_general" | "not_authed" | "invalid_auth" | "account_inactive" | "user_is_bot" | "user_is_restricted" | "user_is_ultra_restricted" | "invalid_arg_name" | "invalid_array_arg" | "invalid_charset" | "invalid_form_data" | "invalid_post_type" | "missing_post_type" | "invalid_json" | "json_not_object" | "request_timeout" | "upgrade_required" | "team_added_to_org" | "missing_charset" | "superfluous_charset";
needed?: string;
ok: DefsOkFalse
type DefsOkFalse = false
;
provided?: string;
}