Skip to content

List the specified user's access tokens

GET
/users/{username}/tokens
username
required
string

Username of user

page
integer

Page number of results to return (1-based)

limit
integer

Page size of results

AccessTokenList

Media type application/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
Example generated
[
{
"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"
}
]
X-Total-Count
integer format: int64

The total number of access tokens

APIForbiddenError is a forbidden error response

Media type application/json
object
message
string
url
string
Example generated
{
"message": "example",
"url": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}