Connect your backend
UseParaRestClient from @getpara/rest-sdk. Its permissions methods send your server secret in X-API-Key; the public application key and a user’s SDK session are different authentication boundaries.
Assign roles and attributes
An authorization scope separates a set of assignments and approval configuration within your application. For example, each business using your product can have its own scope. The policy defines which roles or attributes qualify someone to approve or manage configuration; assignments connect authenticated Para users to those declarations. For a user with no existing assignment record, create the initial set withexpectedRevision: 0:
replaceUserApprovalAssignments replaces the whole set, rather than appending entries. To remove all assignments, submit assignments: [] with the current revision. To change a subset, read getUserApprovalAssignments and include the assignments you intend to retain.
Only the partner backend can list other members with listAuthorizationScopeMembers. A signed-in client cannot use its own session to enumerate the scope or grant itself roles.
Bind a wallet to the scope
The wallet binding determines which scope supplies the assignments and configuration for approval evaluation. Set an initial binding with revision zero; use the existing binding’s revision when changing it.Configure declared approval settings
A policy can expose named configuration values for an approval requirement. The backend may change those values only within the policy’s declared constraints; it cannot replace the requirement with arbitrary JSON through these methods. Discover requirements, then read the effective configuration for one:updateApprovalConfiguration(reference, { expectedRevision, values }) with the declared configuration names. Use revision zero for the first write, or the revision from the current configuration for an update. resetApprovalConfiguration(reference, expectedRevision) restores the policy defaults by writing an empty values map.
Revision checks prevent one administrator from silently overwriting another’s changes. On a conflict, read the current record and reconcile the intended update before submitting again.
Read state without acting for the user
For example, read consent and saved parameters for a known user and policy:
Inspect resource histories
UselistUserPolicyParameterHistory, listUserApprovalAssignmentHistory, listWalletAuthorizationScopeHistory, and listApprovalConfigurationHistory for the corresponding revision records. Policy versions are available separately through listPartnerPolicyVersions.
Follow returned pagination cursors where provided. Policy version history includes versions that are or were active; use the authoring tools to inspect drafts.
Enforce policies on app-owned wallets
Understand allowed, denied, and approval-required signing outcomes.
Integrate user consent
Let people consent and complete the required Portal interactions.
Policy JSON reference
Define selectors, conditions, approval requirements, and adjustable settings.
Permissions REST reference
Find the server-side methods, routes, and request contracts.