/v1/permissionsWhen to use
Find explicit grants and their IDs, expiry and operations before changing access.
For agents
This is a stored-grant list, including expired entries. It does not expand membership, ownership or effective access; use permissions.inspect for that. A resource filter requires administration. Without it, administrators see their permitted workspace/organization scope; other callers see only their own direct grants.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const result = await orgClient.permissions.list({ resourceId: "dbas_abcdefghijklmnopqrstuvwx" });Response
{
"data": {
"items": [
{
"id": "perm_abcdefghijklmnopqrstuvwx",
"principalType": "apiKey",
"principalId": "apikey_example",
"resourceId": "dbas_abcdefghijklmnopqrstuvwx",
"resourceType": "database",
"subResourceId": null,
"level": "read",
"operations": null,
"organizationId": "org_abcdefghijklmnopqrstuvwx",
"workspaceId": "wksp_abcdefghijklmnopqrstuvwx",
"grantedBy": "user_abcdefghijklmnopqrstuvwx",
"expiresAt": null,
"createdAt": "2026-10-30T12:00:00.000Z",
"updatedAt": "2026-10-30T12:00:00.000Z"
}
]
}
}