# TokenSummary

Fields, types, and constraints for TokenSummary.

Canonical: https://commentary.dev/docs/reference/schemas/token-summary

Released API schema for `TokenSummary`.

## Fields and constraints

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No |  |
| `grantId` | string | No |  |
| `tokenType` | string | No |  |
| `tokenHint` | string | No |  |
| `scopes` | array of [ExternalScope](/docs/reference/schemas/external-scope) | No |  |
| `resourceScope` | `"review"` · `"repo"` · `"account"` | No |  |
| `owner` | string or null | No |  |
| `repo` | string or null | No |  |
| `prNumber` | integer or null | No |  |
| `branchRef` | string or null | No |  |
| `draftReviewSessionId` | string or null | No |  |
| `clientName` | string or null | No |  |
| `expiresAt` | string or null | No | Format: date-time. |
| `revokedAt` | string or null | No | Format: date-time. |
| `lastUsedAt` | string or null | No | Format: date-time. |
| `createdAt` | string | No | Format: date-time. |

## Full schema

[Download this schema](/docs/reference/schemas/token-summary.json) or use the [complete OpenAPI document](/docs/reference/openapi.json) to resolve all references.

## Related reference

[Browse API endpoints](/docs/reference/api-operations).
