Organization & Account
API Keys
Create and manage Personal Access Tokens for API access.
API Keys
Personal Access Tokens (PATs) allow you to authenticate with the TestKase API programmatically — for CI/CD pipelines, test automation, and integrations.
Creating a Token
- Go to Profile → API Keys (or
testkase.com/api-keys) - Click Create Token
- Give it a descriptive name (e.g., "CI/CD Pipeline")
- Copy the token — it's only shown once
Token Format
PATs start with xyz_ prefix:
xyz_abc123def456...Using Tokens
In API Calls
curl -H "Authorization: Bearer xyz_your_token_here" \
https://api.testkase.com/api/v1/projects/user/my-projectsIn Test Frameworks
Pass the token as an environment variable to the TestKase reporter:
TESTKASE_API_KEY=xyz_your_token_here npx testkase-reporterIn CI/CD
Store the token as a secret in your CI/CD platform and reference it in your pipeline config.
Token Security
- Tokens have the same permissions as the user who created them
- Maximum 10 tokens per user
- Tokens do not expire automatically — revoke them when no longer needed
- Never commit tokens to source code — use environment variables
Revoking Tokens
- Go to API Keys page
- Click the revoke icon next to the token
- The token is immediately invalidated
PAT vs Cookie Authentication
| Method | Use Case |
|---|---|
| PAT (API Key) | CI/CD, Postman, test frameworks, scripts |
| Cookie | Browser sessions (automatic, handled by login) |
| JWT Bearer | Copy from login response for quick API testing |
All three methods are supported simultaneously. The backend checks Authorization header first, then falls back to cookie.
