Create your first API key
Use this guide after you can already sign in to Tarnished in the browser.
What API keys are for
Tarnished API keys are the supported authentication model for machine clients such as:
- the Tarnished CLI
- the browser extension
- other automation or integration clients
Create the key in Tarnished
- Sign in to Tarnished.
- Open Settings.
- Open the API Keys section.
- Create a new API key.
- Choose the preset that matches the client you plan to use.
- Copy the raw key value immediately.
You will not get the raw key value back later from the server.
Choose the right preset
Use:
- CLI for the Tarnished CLI
- extension for the browser extension
- read only for narrow reporting-style integrations
- import/export for focused data portability workflows
Verify the key with the CLI
If you are using the Tarnished CLI:
tarnished auth init --api-key 'your-api-key'
tarnished auth doctor
tarnished auth whoami
Use the key with the browser extension
Open the extension settings and enter:
- the Tarnished app URL
- the API key you just created