Personal Access Tokens
Personal Access Tokens (PATs) let scripts, CI systems, and third-party tools authenticate with GitBlixt without using your password.
Creating a Token
- Go to Settings → Access Tokens → New Token
- Give it a descriptive name (e.g. "CI pipeline", "Local dev script")
- Set an expiration date (required — maximum 365 days)
-
Select the scopes you need:
Scope Access apiFull API access including read and write read_apiRead-only API access read_repositoryClone and pull from repositories write_repositoryPush to repositories - Click Create token and copy it immediately — it won't be shown again
Using a Token
Tokens work anywhere a password is accepted over HTTPS:
git clone https://oauth2:[email protected]/user/repo.git
Or set it as a Git credential:
git config --global credential.helper store
# Then clone — enter "oauth2" as username and your token as password
For API access, pass it in the header:
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://git.yourdomain.com/api/v4/projects
Revoking a Token
Go to Settings → Access Tokens, find the token, and click Revoke. The token is invalidated immediately.