PermuteDocs
Go to Permute

Apps · appsGrantsList

List app resource grants

Lists the app’s current explicit resource grants. Requires app read permission. Grants limit access; users still need their own permissions and the published revision must declare the resource.

GET/v1/apps/{applicationId}/grants
betaapiKeyworkspace

When to use

Inspect the app’s current resource access ceiling.

For agents

Grants are independent of app revisions. A resource must also be declared by the served revision, and the current user must have access.

Example

typescript
import { PermuteClient } from '@permute/sdk';

const orgClient = new PermuteClient({
  apiKey: process.env.PERMUTE_API_KEY!,
});

const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);

const result = await client.apps.listGrants('appl_abcdefghijklmnopqrstuvwx');

Response

json
{
  "data": {
    "items": [
      {
        "resourceId": "actn_abcdefghijklmnopqrstuvwx",
        "resourceType": "businessAction",
        "level": "write",
        "expiresAt": null
      }
    ],
    "canManage": true
  }
}