Go to Slack

resources_removed event

Developer preview

This feature only applies to the workspace token-based Slack app developer preview, currently under active development.

Access to a set of resources was removed for your app

Compatibility: Events API


{
        "token": "XXYYZZ",
        "team_id": "TXXXXXXXX",
        "api_app_id": "AXXXXXXXXX",
        "event": {
                "type": "resources_removed",
                "resources": [
                        {
                                "resource": {
                                        "type": "im",
                                        "grant": {
                                                "type": "specific",
                                                "resource_id": "DXXXXXXXX"
                                        }
                                },
                                "scopes": [
                                        "chat:write:user",
                                        "im:read",
                                        "im:history",
                                        "commands"
                                ]
                        }
                ]
        },
        "type": "event_callback",
        "authed_teams": [],
        "event_id": "EvXXXXXXXX",
        "event_time": 1234567890
}

Subscribe to this event to receive deliveries as users uninstall your Slack app and remove your app to channels & conversations.

See Permissions API for further detail.

Events API compatibility

Subscribe to this event via the Events API.

Events of this type will be wrapped in metadata when sent via the Events API.

Unavailable in the RTM API

This event type is compatible only with the Events API.