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

Request additional app permissions

Requests additional permissions for an app using a permissions trigger. Supply the requested scopes and the trigger token to start the permission request flow. The authenticated user must provide a token and a valid trigger_id accepted by the permissions API.

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

3 parameters
tokenstringrequired
Authentication token with no additional required scope.
scopesstringrequired
Comma-separated list of scopes to request for the app.
trigger_idstringrequired
Token used to trigger the permissions API.

2 status codes
200Returns an object with `ok` set to true when the additional permission request is accepted.
okbooleanrequired
Allowed:true
defaultReturns an object with `ok` set to false and an `error` value describing why the permission request failed.
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:invalid_triggertrigger_exchangedinvalid_scopeinvalid_usernot_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requireduser_is_botinvalid_arg_name
okbooleanrequired
Allowed:false

Error handling

token, scopes, and trigger_id are all required. Provide scopes as a comma-separated string of permissions and use a valid, unexpired trigger_id for the request.