---
title: "List delegated grants"
method: GET
path: "/v2/organizations/{organizationId}/delegated/grants"
tags: ["Delegated agents"]
---

# List delegated grants

`GET /v2/organizations/{organizationId}/delegated/grants`

## Request

- Base URL: `https://api.pdfs.build`
- URL: `https://api.pdfs.build/v2/organizations/{organizationId}/delegated/grants`
- Auth: HTTP bearer

Every connection your customers have made, including expired and revoked ones.

## Response `200`

Grants, newest first.

- object
  - `grants` DelegatedGrant[], required
    - `id` string, required
    - `externalTenantId` string, required
    - `externalUserId` string, required
    - `scopePrefixes` string[], required
    - `allowedTools` string[], required
    - `label` string, required
    - `expiresAt` string, date-time, nullable, required
    - `revokedAt` string, date-time, nullable, required
    - `lastUsedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required

## Other responses

- `401`: Missing, invalid or expired API key.
- `403`: `admin_required` (the key's owner is not an organization owner/admin), `delegated_plan_required`, `delegated_access_disabled` (the organization has not opted in), or `organization_scope_mismatch`.
- `502`: The service that owns this resource could not be reached. Safe to retry.

---

[API](https://skmtc.dev/pdfs/apis/pdfs-build-api.md) · [All operations](https://skmtc.dev/pdfs/apis/pdfs-build-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pdfs/apis/pdfs-build-api/revisions/1c7340b9521d?raw)
