GET
/v1/access-requestsbetaauthenticatedworkspace
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
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
{
"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
}
}