User resource was granted to your app

Facts

Works with

Events API

Workspace apps are deprecated

Legacy workspace apps are deprecated and will retire in August 2021. Learn more.

{
    "token": "XXYYZZ",
    "team_id": "TXXXXXXXX",
    "api_app_id": "AXXXXXXXXX",
    "event": {
        "type": "user_resource_granted",
        "user": "WXXXXXXXX",
        "scopes": [
            "reminders:write:user",
            "reminders:read:user"
        ],
        "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606"
    },
    "type": "event_callback",
    "authed_teams": [],
    "event_id": "EvXXXXXXXX",
    "event_time": 1234567890
}

We send this event when a user grants your workspace app the permissions you recently requested with apps.permissions.users.request. Now you can work on their behalf!

When an event occurs, we will send an HTTP POST request to your Request URL. The outer payload is uniform across all Events API methods, and contains fields like team_id and event. Learn more