---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.2
alternate:
  - https://sourcecraft.dev/portal/docs/en/api-ref/User-or-Personal-access-tokens/index.md
  - https://sourcecraft.dev/portal/docs/ru/api-ref/User-or-Personal-access-tokens/index.md
  - https://sourcecraft.dev/portal/docs/ru/api-ref/User-or-Personal-access-tokens/index.md
  - href: https://sourcecraft.dev/portal/docs/ru/api-ref/User-or-Personal-access-tokens/index.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22161526
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22161526

# User | Personal access tokens

<!-- markdownlint-disable-file -->

## Endpoints

- [Issue a personal access token for the authenticated subject.
Inherits all restrictions of the authenticating PAT, if any.
The token cannot outlive that PAT. JWT tokens expire within seven days;
named PV1 tokens expire within 365 days and appear in the user's token list.](https://sourcecraft.dev/portal/docs/ru/api-ref/User-or-Personal-access-tokens/CreatePAT.md)
- [Revoke all PATs for the authenticated subject whose inherited issuance time
is at or before a cutoff, including descendants. Requires IAM authentication.
The cutoff only moves forward; previously revoked tokens stay revoked.](https://sourcecraft.dev/portal/docs/ru/api-ref/User-or-Personal-access-tokens/RevokePATs.md)
