Integrate with Testr programmatically
Getting started with the Testr API
The Testr API allows you to programmatically create and manage tests, access results, and integrate with your CI/CD pipeline.
All API requests require authentication using an API key. You can create and manage API keys in your account settings.
How to authenticate with the Testr API
All API requests must include your API key in the X-API-Key
header.
curl -X GET https://testr.pro/api/test-definitions \
-H "X-API-Key: testr_your_api_key"
Replace testr_your_api_key
with your actual API key.
Available API endpoints and their usage
/api/test-definitions
List all test definitions for the authenticated user.
/api/test-definitions
Create a new test definition.
/api/test-definitions/{id}
Get a specific test definition by ID.
/api/test/create
Create and run a new test.
/api/test/status/{id}
Get the status of a test run.
Code examples for common API operations
curl -X POST https://testr.pro/api/test/create \
-H "X-API-Key: testr_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Homepage Test",
"targetUrl": "https://example.com",
"testType": "step",
"steps": [
"Click the login button",
"Enter email test@example.com",
"Enter password test1234",
"Click the submit button",
"Verify that the welcome message is displayed"
]
}'
curl -X GET https://testr.pro/api/test/status/123e4567-e89b-12d3-a456-426614174000 \
-H "X-API-Key: testr_your_api_key"
API usage limits and quotas
The Testr API has the following rate limits:
If you need higher limits, please contact our support team.
Get help with the Testr API
If you need help with the Testr API, please contact our support team at api-support@testr.pro.
You can also check our API FAQ for answers to common questions.