Prerequisites
- A TestDino account with at least one project (sign up)
- Access to a project the PAT can read
Steps
1
Generate a PAT
- Sign in to TestDino, open your profile, then User Settings
- Go to Personal Access Tokens and Generate new token
- Name it, select the organizations and projects it may access, pick an expiration of 30, 60, 90, or 180 days, and create it
td_pat_ token is shown once, so copy it right away.Full workflow: Generate API keys.2
Get ProjectID
- Open the project in the TestDino App
- Copy the
project_...segment from the URL
.../projects/project_69e1bb123.../test-runs3
Verify the token
Call A
/token-info to confirm the token is valid and scoped correctly:- curl
- Node.js
- Python
200 OK response with success: true confirms the setup is working.4
Call a data endpoint
List the 5 most recent test runs:
- curl
- Node.js
- Python
Troubleshooting
401 TOKEN_REVOKED or 401 TOKEN_EXPIRED
401 TOKEN_REVOKED or 401 TOKEN_EXPIRED
The token was revoked, or it passed its expiry date. Generate a new PAT in User Settings → Personal Access Tokens and update your stored secret.
404 NOT_FOUND
404 NOT_FOUND
The resource does not exist, or the token does not cover the
projectId in the URL. Use a PAT that was granted access to that project.429 RATE_LIMIT_EXCEEDED
429 RATE_LIMIT_EXCEEDED
You’ve hit the 100 requests/minute per-token limit. Wait for the
RateLimit-Reset timestamp in the response headers, or implement exponential backoff. See Rate limits.