PermuteDocs
Go to Permute

Access requests · accessRequestsList

List own requests, authorized reviews, or closed request history

Review lists and totals include only resources the caller currently administers. Pending excludes expired requests; history includes closed or expired requests the caller owns or may review. Filters apply before pagination.

GET/v1/access-requests
betaauthenticatedworkspace

When to use

Show your requests or requests you are authorized to review.

For agents

Review returns requests for resources you currently administer. Use state pending for actionable requests and view history for closed or expired requests you own or may review. Total uses the same visibility and state filters before pagination. Hosted app sessions can only list their own requests for that app.

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.accessRequests.list({ view: 'review', state: 'pending' });

Response

json
{
  "data": {
    "items": [
      {
        "id": "task_abcdefghijklmnopqrstuvwx",
        "resourceId": "dbas_abcdefghijklmnopqrstuvwx",
        "resourceType": "database",
        "principalType": "apiKey",
        "principalId": "apikey_example",
        "level": "read",
        "reason": "Read customer accounts for support.",
        "status": "pending",
        "createdAt": "2026-10-27T12:00:00.000Z",
        "expiresAt": "2026-11-03T12:00:00.000Z"
      }
    ],
    "nextCursor": null,
    "total": 1
  }
}