Search + K

Command Palette

Search for a command to run...

Sign In

admin_conversations_archive

POST /admin.conversations.archive
Copy endpoint
https://slack.com/api

Archive a public or private channel.

Parameters

header Header Parameters

Name Type
token required

Authentication token. Requires scope: admin.conversations:write

string

Request Body

application/x-www-form-urlencoded required
{ channel_id: string; }

Responses

200 application/json

Typical success response

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

Typical error response

{ error: "feature_not_enabled" | "channel_not_found" | "channel_type_not_supported" | "default_org_wide_channel" | "already_archived" | "cant_archive_general" | "restricted_action" | "could_not_archive_channel";ok: DefsOkFalse
type DefsOkFalse = false
; }