Complete REST API documentation for TestPilot platform integration
All API requests require authentication using Bearer tokens. Include your API token in the Authorization header.
/api/projects
List all projects
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number for pagination |
| per_page | integer | Items per page (default: 15) |
/api/projects
Create a new project
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Project name |
| description | string | No | Project description |
/api/projects/{project}/modules/{module}/test-cases
Get all test cases in a module
/api/test-cases/{id}/generate-code
Generate code from recorded events
| Parameter | Type | Description |
|---|---|---|
| format | string | Code format: 'cypress' or 'playwright' |
/api/recording/start
Start a new recording session
| Parameter | Type | Required |
|---|---|---|
| test_case_id | integer | Yes |
| url | string | Yes |
| browser | string | No |
/api/recording/stop
Stop the active recording session
| Code | Status | Description |
|---|---|---|
| 200 | OK | Request successful |
| 201 | Created | Resource created successfully |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Authentication required or failed |
| 404 | Not Found | Resource not found |
| 500 | Server Error | Internal server error |
API requests are limited to 100 requests per minute per API token. Rate limit information is included in response headers:
For more information or support with the API, visit our Support page or join our Community.