API Keys
Generate and manage API keys for the Stepshots CLI, browser extension, and CI integrations.
Overview
API keys authenticate the Stepshots CLI and browser extension when uploading demos to your workspace. You need an API key for:
- Uploading demos from the CLI (
stepshots upload) - Uploading demos from the browser extension
- Integrating with external tools and workflows
Generate an API Key
- Sign in to your Stepshots dashboard
- Open Settings
- Click Generate API Key
- Copy the key immediately
Warning
The API key is only shown once. If you lose it, you'll need to generate a new one.
Using Your API Key
CLI
Pass the key directly:
bash
Or set it as an environment variable (recommended):
bash
Browser Extension
- Open the Stepshots extension side panel
- Go to Settings
- Paste your Stepshots URL and API Key
- Save
The extension uses the key to upload recordings directly to your workspace.
Environment Variables
The CLI recognizes these environment variables:
| Variable | Description |
|---|---|
STEPSHOTS_TOKEN |
API key for authentication (required for upload) |
STEPSHOTS_SERVER |
Override the server URL (default: https://stepshots.com) |
CHROME_PATH |
Path to Chrome/Chromium binary (if not in the default location) |
Revoking a Key
To revoke an API key, open Settings in the dashboard and delete the key. Any CLI or extension using that key will immediately lose upload access.
Generate a new key and update your CI secrets or extension settings.