Skip to main content
POST https://app.qawolf.com/api/webhooks/environment_terminated
If your build server supports node, use @qawolf/ci-sdk instead of calling this endpoint directly. This gives you type safety and clearer errors and output.

Request

curl -X POST https://app.qawolf.com/api/webhooks/environment_terminated \
  -H "Authorization: Bearer $QAWOLF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"deploymentUrl": "<DeploymentUrl>"}'

Request headers

HeaderValue
AuthorizationBearer <your-api-key>
Content-Typeapplication/json

Request body

Pass one of the following to identify the environment.
FieldTypeDescription
environmentIdstringID of the ephemeral environment to terminate.
environmentAliasstringAlias of the ephemeral environment to terminate.
deploymentUrlstringPreview URL used when the environment was created via deploy_success with ephemeral_environment: true.

Response

{
  "results": [
    {
      "environmentId": "cl1f6i0in15676w115vt43vw2",
      "promotionTaskId": "ckzoog9wy01720xyrvl8ah7gu",
      "code": "terminated"
    }
  ]
}

Response codes

CodeDescription
200Environment terminated successfully.
401Missing or invalid API key.
403Forbidden. Usually indicates a disabled team.
404Environment not found.
409Conflict. Environment is already terminated.
500Internal server error. Contact support if the issue persists.
Last modified on June 4, 2026