Sample - Slack Web API
GET/apps.permissions.users.request

Request app user scopes

Triggers a permissions modal to request user scopes for an app. Supply scopes, trigger_id, and user to identify the requested permissions, the interaction that initiated the request, and the user receiving the request.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
tokenstringrequired
Authentication token for the app; the required scope is `none`.
scopesstringrequired
Comma-separated list of user scopes to request.
trigger_idstringrequired
Token that identifies the interaction triggering the permissions request.
userstringrequired
Identifier of the user for whom the scopes are being requested.

2 status codes
200Returns a successful response with `ok` set to true when the request is made with a user token.
okbooleanrequired
Allowed:true
defaultReturned when `trigger_id` is invalid or the request otherwise cannot be completed.
okbooleanrequired
Allowed:false

Error handling

token, scopes, trigger_id, and user must all be supplied. scopes must contain a comma-separated list of user scopes, and trigger_id must be valid when the request is submitted.