Before you start
Sign in to your Peak workspace. For runner and run history reads, connect GitHub and keep repository access. Install Node.js 22.13 or newer to use the CLI examples.Connect a terminal or agent
Create a token
- Open Settings → API access.
- Choose Create token.
- Name the token.
- Select the access you need.
- Choose an expiry of 7, 30, or 90 days.
- Create the token.
- Copy it before you close the token view.
- Store it in your agent’s secret manager.
Check which token you use before logging out.
Unset the environment token to use your stored CLI login instead.
Revoke the active token from the CLI.
Call the API
Send the token in the Authorization header. Use a token for API calls even when you are signed in through your browser.
Check the metering flag in setup and runner-status responses.
Treat zero minute balances as disabled credits during the pilot.