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 Access Tokens and click Generate 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 10 most recent test runs.
limit accepts 10, 25, 50, or 100:- 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 → Access Tokens and update your stored secret.
403 FORBIDDEN: Token is not scoped to project
403 FORBIDDEN: Token is not scoped to project
The token does not cover the
projectId in the URL. The message reads Token is not scoped to project <id>. Use a PAT that was granted access to that project.404 NOT_FOUND
404 NOT_FOUND
The resource does not exist. Verify the ID in the URL.
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.