Every upload needs a valid key. This guide covers how to create, configure, and manage API keys for your TestDino project.
MCP Server uses a different authentication method. The MCP Server requires a Personal Access Token (PAT), not a Project API Key (See: TestDino PAT).
Create a Key
Open your project in TestDino
Go to Settings → API Keys
Click Generate Key
Enter a Name and Expiration period (1 to 365 days)
Click Create
The key is automatically copied to your clipboard. Store it in a password manager or your CI secrets. The key is shown once and cannot be retrieved later.
Use your API key
Pass the key to the CLI with the --token flag: npx tdpw upload ./playwright-report --token= "your-api-key"
Or set it as an environment variable: export TESTDINO_TOKEN = "your-api-key"
npx tdpw upload ./playwright-report
Pass the key to the CLI with the --token flag: testdino upload ./test-results --token= "your-api-key"
Or set it as an environment variable: export TESTDINO_TOKEN = "your-api-key"
testdino upload ./test-results
In CI workflows, store the key as a secret and reference it:
- name : Upload to TestDino
run : npx tdpw upload ./playwright-report --token="${{ secrets.TESTDINO_TOKEN }}"
Set up CI/CD secrets
Never hardcode API keys in your workflow files. Store them as secrets and reference them at runtime.
GitHub Actions
GitLab CI
Jenkins
Azure DevOps
CircleCI
Go to your repository → Settings → Secrets and variables → Actions
Click New repository secret
Name it TESTDINO_TOKEN
Paste your API key
Click Add secret
Go to your project → Settings → CI/CD → Variables
Click Add variable
Set Key to TESTDINO_TOKEN
Paste your API key in Value
Check the Mask variable to hide it in logs
Click Add variable
Go to Manage Jenkins → Credentials
Select your domain (or global)
Click Add Credentials
Choose Secret text
Set ID to testdino-token
Paste your API key in Secret
Go to Pipelines → Library
Create or open a variable group
Add a variable named TESTDINO_TOKEN
Paste your API key
Click the lock icon to make it secret
Go to Project Settings → Environment Variables
Click Add Environment Variable
Name it TESTDINO_TOKEN
Paste your API key
Rotate a key
When a key expires or you suspect it’s been exposed:
Generate a new key in Settings → API Keys
Update your CI secrets with the new key
Run one upload to confirm the new key works
Revoke or delete the old key
Don’t delete the old key until you’ve confirmed the new one works. This avoids downtime if something goes wrong during the switch.
Security Practices
Use short expiration periods for CI keys
Create separate keys for different pipelines or environments
Rotate keys if you suspect exposure
Never commit keys to version control
Key Limits
Plan Keys per project Community 2 Pro 5 Team 10 Enterprise Unlimited
Getting Started Initial setup and first upload
GitHub Actions CI workflow setup
Node.js CLI Full CLI reference
Project Settings All project configuration