DocumentationAPI reference
Rust · 0.1.0
PersonalAccessToken
Application protocol schema. Field names and inherited descriptions are kept in their original language.
Where this schema is used
These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.
Referenced by these component schemas:
Shape and fields
object
PersonalAccessToken represents a long-lived token for API/script access. PATs are distinct from short-lived JWT access tokens used for session authentication.
| Field | Type / requirement | Description |
|---|---|---|
name | string | The resource name of the personal access token. Format: users/{user}/personalAccessTokens/{personal_access_token} |
description | string | The description of the token. |
createdAt | string (date-time) | Output only. The creation timestamp. |
expiresAt | string (date-time) | Optional. The expiration timestamp. |
lastUsedAt | string (date-time) | Output only. The last used timestamp. |
Complete schema
Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The resource name of the personal access token.\n Format: users/{user}/personalAccessTokens/{personal_access_token}"
},
"description": {
"type": "string",
"description": "The description of the token."
},
"createdAt": {
"readOnly": true,
"type": "string",
"description": "Output only. The creation timestamp.",
"format": "date-time"
},
"expiresAt": {
"type": "string",
"description": "Optional. The expiration timestamp.",
"format": "date-time"
},
"lastUsedAt": {
"readOnly": true,
"type": "string",
"description": "Output only. The last used timestamp.",
"format": "date-time"
}
},
"description": "PersonalAccessToken represents a long-lived token for API/script access.\n PATs are distinct from short-lived JWT access tokens used for session authentication."
}