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.

Request

POST

https://api.sourcecraft.tech/user/pats/revoke

Body

application/json
{
  "issued_before": "2025-01-01T00:00:00Z"
}

Name

Description

issued_before

Type: string<date-time>

Inclusive inherited-issuance cutoff. Defaults to the server's current time.
Must not be in the future. Applies to JWT and PV1 tokens from both public
and private APIs, including service and CodeAssist tokens.

Example: 2025-01-01T00:00:00Z

Responses

200 OK

A successful response.

Body

application/json
{
  "issued_before": "2025-01-01T00:00:00Z"
}

Name

Description

issued_before

Type: string<date-time>

Effective inclusive cutoff, which can be later than requested if an earlier
revocation already advanced it.

Example: 2025-01-01T00:00:00Z

default

Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme

Body

application/json
{
  "error_code": "example",
  "message": "example",
  "request_id": "example",
  "details": null
}

Name

Description

details

Type: unknown

Example: null

error_code

Type: string

Example: example

message

Type: string

Example: example

request_id

Type: string

Example: example