conversations_open
POST
/conversations.open https://slack.com/api
Opens or resumes a direct message or multi-person direct message.
Parameters
header Header Parameters
| Name | Type |
|---|---|
token Authentication token. Requires scope: | string |
Request Body
application/x-www-form-urlencoded
{ channel?: string;return_im?: boolean;users?: string; }
Responses
200 application/json
Typical success response
{
already_open?: boolean;
channel: (ObjsConversation | {
created?: string;
id:DefsDmId ;
is_im?: boolean;
is_open?: boolean;
last_read?:DefsTs ;
latest?:ObjsMessage ;
unread_count?: number;
unread_count_display?: number;
user?:DefsUserId ;
})[];
no_op?: boolean;
ok:DefsOkTrue ;
}
already_open?: boolean;
channel: (
created?: string;
id:
is_im?: boolean;
is_open?: boolean;
last_read?:
latest?:
unread_count?: number;
unread_count_display?: number;
user?:
})[];
no_op?: boolean;
ok:
}
default application/json
Typical error response
{ callstack?: string;error: "method_not_supported_for_channel_type" | "user_not_found" | "user_not_visible" | "user_disabled" | "users_list_not_supplied" | "not_enough_users" | "too_many_users" | "invalid_user_combination" | "not_authed" | "invalid_auth" | "account_inactive" | "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" | "channel_not_found";ok: DefsOkFalse ; }