AccessTokenView
An access token, without its secret: who it belongs to, its scopes, what it is limited to, and when it expires and was last used.
Shape
- access_token_idAccessTokenId (string · uuid)
- created_atstring
- namestring
- principal_idstring
- principal_kindTokenPrincipalKinduserservice_accountagentThe kind of principal an access token authenticates as.
- scopesarray of string
- expires_atstring or nulloptional
- last_used_atstring or nulloptional
oauthAccessTokenOAuth or nulloptionalPresent when an app connected through sign-in minted this token. Revoking it disconnects the app.
- The AccessTokenOAuth schema
- client_namestring
- grant_idOAuthGrantId (string · uuid)
- resource_scope_idstring or nulloptional
- resource_scope_typeScopeTypegrouprepositoryor nulloptional
Example
Synthesized example{
"access_token_id": "9321401a-6808-4bec-8eb5-5166dda73e5d",
"created_at": "2026-10-13T20:01:19Z",
"name": "payments-api",
"principal_id": "fb21a76d-a733-4a1d-b48e-5000864fb5da",
"principal_kind": "user",
"scopes": [
"scopes-e246"
],
"expires_at": "2026-10-15T13:58:56Z",
"last_used_at": "2026-10-11T05:42:02Z",
"oauth": {
"client_name": "payments-api",
"grant_id": "7b965a0e-7b29-4a58-bd7d-1675cc6726ae"
},
"resource_scope_id": "75b5f69b-1e1a-4cc6-a06c-327d532387c6",
"resource_scope_type": "group"
}
Graph
Contains
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 4 operations