Getting an access token
- Sign into SaturnCI
- Click on your name in the top right
- Click "Personal Access Tokens"
- Click "Generate personal access token"
- Copy the token
Using your access token
Example:
curl -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://app.saturnci.com/api/v1/test_suite_runs
Storing your credentials
You can store your credentials in ~/.saturnci/credentials.json:
{
"api_token": "your-personal-access-token"
}
The SaturnCI CLI reads credentials from this file automatically.