Go to Slack

resources_added 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 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.