The Gatling Enterprise Edition public REST API lets you automate every aspect of load testing from outside the UI—triggering runs from CI pipelines, fetching real-time metrics during a run, polling for run completion, and retrieving aggregated results for custom dashboards. All API operations require an API token, and the full endpoint catalogue is available as an OpenAPI 3 specification at a publicly hosted Swagger UI.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gatling/gatling.io-doc/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API endpoints are served at:Authentication
Every request must include anAuthorization header populated with a valid API token:
| Operation | Minimum permission |
|---|---|
| Read simulations, runs, reports | Read |
| Start a test run | Start |
| Upload packages, create simulations | Configure |
| Manage users, teams, tokens | Administrate |
Key endpoints
The following examples demonstrate common API usage patterns. Replace<your_api_token> with your actual token value and use the correct resource IDs from your organization.
List simulations
Retrieve all simulations accessible with the token’s permissions.Start a test run
Trigger a new run for a simulation. Requires the Start permission.Get run status
Poll the status of a run to detect completion, failure, or timeout.| Status | Meaning |
|---|---|
Building | The run is being prepared |
Deploying | Load generators are being provisioned |
Injecting | Virtual users are being injected (run is active) |
Successful | The run completed and all assertions passed |
AssertionsFailed | The run completed but one or more assertions failed |
Timeout | The run was stopped after exceeding the maximum duration |
Broken | The run failed to start or crashed |
Stopped | The run was manually stopped |
Get run metrics
Retrieve aggregated metrics for a completed run.Upload a package
Upload a simulation package artifact (ZIP file). Requires the Configure permission.CI/CD integration pattern
The typical CI/CD workflow uses three API calls in sequence:Upload the new package
After your build step produces a packaged simulation artifact, upload it to Gatling Enterprise with a
PUT to the artifacts endpoint.OpenAPI specification
The complete, authoritative API reference is available as an OpenAPI 3 document:OpenAPI Specification
View or download the full Gatling Enterprise OpenAPI 3 spec at
https://gatling.github.io/gatling-enterprise-api/openapi/openapi.jsonError handling
The API uses standard HTTP status codes:| Code | Meaning |
|---|---|
200 | Success |
400 | Bad request — check the request body or query parameters |
401 | Unauthorized — missing or invalid Authorization header |
403 | Forbidden — token does not have sufficient permissions for this operation |
404 | Not found — the specified resource ID does not exist or is not accessible |
429 | Too many requests — rate limit exceeded; back off and retry |
500 | Internal server error — contact Gatling support if this persists |