---
title: "Token"
method: GET
path: "/api/py/integrations/{provider}/token"
---

# Token

`GET /api/py/integrations/{provider}/token`

## 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/{provider}/token`
- Auth: none declared

## Path parameters

- `provider` string, required

## Query parameters

- `principal_type` 'user' | 'org', required: Who owns a credential; extensible (AUC-5797 §2).
- `principal_id` string, required
- `external_key` string
- `min_ttl` integer
- `force_refresh` boolean
- `site_id` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string, nullable
  - `expires_at` string, date-time, nullable
  - `base_url` string, nullable
  - `metadata` object
  - `scope` string, nullable
  - `grant_id` string, nullable
  - `grant_version` string, date-time, nullable
  - `state` 'pending' | 'active' | 'needs_reauth' | 'revoked'
  - `refreshed_at` string, date-time, nullable
  - `mcp_connection_id` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-29** `7aeb7f48db21`: 1 info
  - added the optional property `scope` to the response with the `200` status
- **2026-10-02** `c547e282a5ec`: 1 info
  - added the optional property `mcp_connection_id` to the response with the `200` status
- **2026-09-24** `91ca93f86d79`: 1 info
  - added the new optional `query` request parameter `site_id`
- **2026-09-22** `a5de876e9fc3`: 4 info
  - added the optional property `grant_id` to the response with the `200` status
  - added the optional property `grant_version` to the response with the `200` status
  - added the optional property `refreshed_at` to the response with the `200` status
  - added the optional property `state` to the response with the `200` status
- **2026-09-15** `7011e854363b`: 1 info
  - added the optional property `metadata` to the response with the `200` status

[Operation history](https://skmtc.dev/getauctor/apis/getauctor-api/changes/api/py/integrations/:provider/token/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)
