---
title: "Grants"
method: GET
path: "/api/py/integrations/grants"
---

# Grants

`GET /api/py/integrations/grants`

## Request

- Base URL: `https://api.getauctor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getauctor.com/api/py/integrations/grants`
- Auth: none declared

## Query parameters

- `principal_type` 'user' | 'org', required: Who owns a credential; extensible (AUC-5797 §2).
- `principal_id` string, required
- `provider` string, nullable

## Response `200`

Successful Response

- GrantsResponse
  - `grants` GrantSummary[], required
    - `principal_type` 'user' | 'org', required: Who owns a credential; extensible (AUC-5797 §2).
    - `principal_id` string, required
    - `provider` string, required
    - `external_key` string, required
    - `state` 'pending' | 'active' | 'needs_reauth' | 'revoked', required
    - `scope` string, nullable
    - `base_url` string, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time, nullable
    - `refreshed_at` string, date-time, nullable
    - `grant_id` string, nullable
    - `grant_version` string, date-time, nullable
    - `has_credential` boolean
    - `metadata` object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-29** `b4b983695c8d`: 1 info
  - added the new optional `query` request parameter `provider`
- **2026-09-22** `a5de876e9fc3`: 4 info
  - added the optional property `grants/items/grant_id` to the response with the `200` status
  - added the optional property `grants/items/grant_version` to the response with the `200` status
  - added the optional property `grants/items/has_credential` to the response with the `200` status
  - added the optional property `grants/items/metadata` to the response with the `200` status
- **2026-09-01** `aeb6faa3b8f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getauctor/apis/getauctor-api/changes/api/py/integrations/grants/get.md)

---

[API](https://skmtc.dev/getauctor/apis/getauctor-api.md) - [All operations](https://skmtc.dev/getauctor/apis/getauctor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getauctor/apis/getauctor-api/revisions/be39c59c13f6?raw)
