Core Methodspermissions.request

permissions.request

Asks for your declared scopes up front and reports one answer per scope.

Presents the scopes your manifest declares in one go. Calling it grants nothing by itself: each scope still goes through the normal decision (declared scope, phone gate, remembered answer, consent sheet).

PropertyValue
ScopeNone (open method)
Who can use itAny developer
StatusAvailable

Parameters

NameTypeRequiredDescription
scopesstring[]Yes1 to 10 distinct scope names, each a known scope. Duplicates, unknown names or an empty list fail the whole call.

Result

FieldTypeDescription
resultsobjectOne entry per requested scope: granted, denied or unavailable.

Errors

CodeWhen
-32602A parameter is missing, has the wrong type or is over its limit.
4290More than 30 requests in 10 seconds.

See Error Codes for every code and how they reach your page.

Example

js
const { results } = await window.aksa.request({
  method: "permissions.request",
  params: { scopes: ["actions.checkin", "profile.basic"] },
});
if (results["profile.basic"] !== "granted") hidePersonalFeatures();

With AksaMini

If your page embeds aksa-mini.js, use its wrapper:

js
const { supported, results } = await AksaMini.requestPermissions(["actions.checkin", "profile.basic"]);

Notes

  • denied is remembered. The person can only change it in Settings > Connected Apps, so do not ask again in a loop.
  • unavailable means the phone cannot offer that scope (for example an iOS-restricted native scope). No sheet is shown.
  • Only scopes in your manifest's bridge.scopes can come back granted.
  • A host that does not know this method answers -32601. AksaMini.requestPermissions turns that into supported: false.

Used By

Ready To Build Or Ship?

Check your files, preview on an iPhone frame, and submit in the Developer Studio.