List the specified user's access tokens
GET
/admin/users/{username}/tokens
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”username
required
string
Username of user
Query Parameters
Section titled “Query Parameters”page
integer
Page number of results to return (1-based)
limit
integer
Page size of results
Responses
Section titled “Responses”AccessTokenList
Media typeapplication/json
Array<object>
AccessToken represents an API access token.object
created_at
string format: date-time
id
integer format: int64
name
string
repositories
Indicates that an access token only has access to the specified repositories. Will be null if the access token is not limited to a set of specified repositories.
Array<object>
RepositoryMeta basic repository information
object
full_name
string
id
integer format: int64
name
string
owner
string
scopes
Array<string>
sha1
string
token_last_eight
string
Examplegenerated
[ { "created_at": "2026-04-15T12:00:00Z", "id": 1, "name": "example", "repositories": [ { "full_name": "example", "id": 1, "name": "example", "owner": "example" } ], "scopes": [ "example" ], "sha1": "example", "token_last_eight": "example" }]Headers
Section titled “Headers”X-Total-Count
integer format: int64
The total number of access tokens
APIForbiddenError is a forbidden error response
Media typeapplication/json
object
message
string
url
string
Examplegenerated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media typeapplication/json
object
errors
Array<string>
message
string
url
string
Examplegenerated
{ "errors": [ "example" ], "message": "example", "url": "example"}