What you’ll learn
- How to generate and configure API keys
- How to rotate and revoke keys securely
- How to store keys as CI secrets
Create a Key
TestDino issues two credential types. Pick the one that matches what you’re doing:
The API Key lives on the project. Open the project first, then go to Project Settings → API Keys tab → Keys & Tokens section. The PAT is a user credential you create from User Settings → Personal Access Tokens. Each credential is shown only once at creation.
Project vs User settingsThe API Key belongs to a single project (Project Settings). The PAT belongs to you as a user (User Settings) and can reach any project you have access to. If you don’t see the API Keys tab, you’re likely in Org Settings — navigate into a project first.
Token prefixes
Every credential carries a prefix that identifies its type. Check the prefix to confirm you are using the right token for the surface.
Public API and MCP requests use a
td_pat_ PAT in the header: Authorization: Bearer td_pat_.... Create it from User Settings → Personal Access Tokens with the public-api scope. The td_api_ Project API Key is used for streaming test results and the Azure DevOps Extension.
API Key (test reporting)
Use this to stream Playwright test results to TestDino. It has thetd_api_ prefix.
- Open your project in TestDino
- Go to Project Settings → API Keys tab
- In the Keys & Tokens section, click + New → API Key
- Enter a Key Name and Expiration (1 to 365 days)
- Click Create API Key
Personal Access Token (Public API & MCP)
Use this for the Public API and the MCP integration. It is a user credential that reaches any project you have access to.- Sign in to TestDino, open your profile, then User Settings
- Go to Personal Access Tokens and click Generate new token
- Enter a Token Name and select the
public-apiscope - Grant access to the projects you need, set an Expiration, and create it
td_pat_ token is shown once, so copy it right away. Store it in a password manager or your CI secrets.
Access Token (Azure DevOps Extension)
Use this for the Azure DevOps Extension. It is a project-scoped td_api_ token (the same key type used for streaming), created with the azureext scope.
- Open your project in TestDino
- Go to Project Settings → API Keys tab
- In the Keys & Tokens section, click + New → Access Token
- Enter a Token Name, select the
azureextscope, set Expiration (days), and click Create Token
Use your API key
@testdino/playwright reads the key from the TESTDINO_TOKEN environment variable. Set it, then run your tests. Results stream to TestDino during the run:
playwright.config.ts
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
Rotate a key
When a key expires or you suspect it’s been exposed:- Generate a new key in Project Settings → API Keys tab
- Update your CI secrets with the new key
- Run one upload to confirm the new key works
- Revoke or delete the old key
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
Next steps
With a key in hand, integrate TestDino to stream results from your machine, or set up CI to stream on every run.Node.js CLI
Install @testdino/playwright and stream your first run
CI Setup
Stream results in GitHub, GitLab, Azure DevOps, and more
Public API
Use an Access Token to query test data over the API
Project Settings
All project configuration