You must enable javascript in order to use the Slack API Documentation. You can do this in your browser settings.
Go to Slack

resources_added event

Developer preview has ended

This feature was exclusive to our workspace apps developer preview. The preview has now ended, but fan-favorite features such as token rotation and the Conversations API will become available to classic Slack apps over the coming months.

Access to a set of resources was granted for your app

Compatibility: Events API


{
        "token": "XXYYZZ",
        "team_id": "TXXXXXXXX",
        "api_app_id": "AXXXXXXXXX",
        "event": {
                "type": "resources_added",
                "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 install your Slack app, add your app to channels and conversations, or approve your app for additional permissions and resources.

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.