Skip to main content

Documentation Index

Fetch the complete documentation index at: https://qawolf-mktg-5566-document-qawolfci-sdk.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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.

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

All fields are optional.
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 May 28, 2026