Skip to main content

channel_archive event

A channel was archived.

Facts

Required Scopes
No scopes required!
Compatible APIs

Usage info

This example includes both the event wrapper and the event structure for the channel_archive event.

{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "channel_archive",
"channel": "C123ABC456",
"user": "U123ABC456"
},
"type": "event_callback",
"authed_users": [
"U123ABC456",
"U222222222"
],
"event_id": "Ev123ABC456",
"event_time": 123456789
}

The channel_archive event is sent to all connections for a workspace when a public channel is archived. Clients can use this to update their local list of channels.