Skip to content

Access tokens API

Caller must have grant ALL and scope ALL_REPO.

{
"name": "ci",
"scope": "ALL_REPO",
"grants": ["GIT_HTTP_READ", "GIT_HTTP_WRITE"],
"repository_ids": [],
"expires_at": null
}

SELECTED_REPO requires repository_ids. ALL_REPO requires that list empty.

201 includes token (the secret). GET/list omit it.

{ "access_tokens": [ ... ] }

Partial update. Same validation as create for scope vs repository ids.