API Reference
REST API Documentation
Integrate TestForge into your workflow with our comprehensive REST API.
https://api.testforge.dev/v1Authentication
All API requests require authentication using a Bearer token. Generate your API key in the dashboard settings.
- Include your API key in the Authorization header
- Keep your API key secure - never expose it in client-side code
- Rotate keys regularly and revoke compromised keys immediately
Example Request
curl -X GET "https://api.testforge.dev/v1/tests" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"API Endpoints
Tests
Manage test suites and individual tests
GET
/api/v1/testsList all tests
POST
/api/v1/testsCreate a new test
GET
/api/v1/tests/:idGet test details
PUT
/api/v1/tests/:idUpdate a test
DELETE
/api/v1/tests/:idDelete a test
POST
/api/v1/tests/:id/runExecute a test
Recordings
Browser session recordings and actions
GET
/api/v1/recordingsList recordings
POST
/api/v1/recordingsStart a recording session
PUT
/api/v1/recordings/:idUpdate recording
POST
/api/v1/recordings/:id/stopStop recording
GET
/api/v1/recordings/:id/actionsGet recorded actions
Runs
Test execution history and results
GET
/api/v1/runsList test runs
GET
/api/v1/runs/:idGet run details
GET
/api/v1/runs/:id/logsGet execution logs
GET
/api/v1/runs/:id/screenshotsGet screenshots
POST
/api/v1/runs/:id/cancelCancel running test
Projects
Project and organization management
GET
/api/v1/projectsList projects
POST
/api/v1/projectsCreate project
GET
/api/v1/projects/:idGet project details
PUT
/api/v1/projects/:id/settingsUpdate settings
GET
/api/v1/projects/:id/membersList members
Webhooks
Event notifications and integrations
GET
/api/v1/webhooksList webhooks
POST
/api/v1/webhooksCreate webhook
DELETE
/api/v1/webhooks/:idDelete webhook
POST
/api/v1/webhooks/:id/testSend test event
Rate Limits
API requests are limited to 1000/hour for free tier, 10000/hour for Pro.
Response Format
All responses are in JSON format with consistent error handling.
SDK Support
Official SDKs available for Node.js, Python, Go, and Ruby.