v1
latestOpenAPI 3.0.02026-07-14285059.6 KBaccess-tokens
Create a personal access token
Creates and returns a personal access token.
post/v2/access-tokens
Request body
Example request
{
"scopes": [
"repo:read"
],
"token_label": "My read only token"
}Response
Created
Example response
{
"client_id": "HUB",
"created_at": "2021-07-20T12:00:00.000000Z",
"creator_ip": "127.0.0.1",
"creator_ua": "some user agent",
"generated_by": "manual",
"is_active": true,
"scopes": [
"repo:read"
],
"token": "a7a5ef25-8889-43a0-8cc7-f2a94268e861",
"token_label": "My read only token",
"uuid": "b30bbf97-506c-4ecd-aabc-842f3cb484fb"
}