POST https://app.qawolf.com/api/webhooks/environment_terminated
Request
Request headers
| Header | Value |
|---|---|
Authorization | Bearer <your-api-key> |
Content-Type | application/json |
Request body
Pass one of the following to identify the environment.| Field | Type | Description |
|---|---|---|
environmentId | string | ID of the ephemeral environment to terminate. |
environmentAlias | string | Alias of the ephemeral environment to terminate. |
deploymentUrl | string | Preview URL used when the environment was created via deploy_success with ephemeral_environment: true. |
Response
Response codes
| Code | Description |
|---|---|
200 | Environment terminated successfully. |
401 | Missing or invalid API key. |
403 | Forbidden. Usually indicates a disabled team. |
404 | Environment not found. |
409 | Conflict. Environment is already terminated. |
500 | Internal server error. Contact support if the issue persists. |