> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qawolf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate with the deploy webhook

> Trigger QA Wolf test runs from any CI system using the deploy webhook directly.

> [!NOTE]
>
> This page describes [legacy triggers](https://docs.qawolf.com/legacy-triggers/overview.md). See [Triggers](https://docs.qawolf.com/triggers/overview.md) for the current documentation.

Use this guide if your CI system can't run Node.js. If it can, use [Node.js SDK](https://docs.qawolf.com/legacy-triggers/ci-sdk-integration.md) instead.

## Requirements

* Access to a QA Wolf workspace with at least one environment configured
* The ability to make HTTP requests from your CI environment
* Admin access to your CI system's secret or environment variable storage

## How to connect QA Wolf to your CI system

**1. Add the QAWOLF\_API\_KEY secret**

Store your QA Wolf API key as a secret named `QAWOLF_API_KEY` in your CI system.

**2. Add the deploy notification to your pipeline**

Add a step that runs after your deployment is healthy.

```bash theme={null}
curl -X POST https://app.qawolf.com/api/webhooks/deploy_success \
  -H "Authorization: Bearer $QAWOLF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "branch": "$GIT_BRANCH",
    "sha": "$GIT_COMMIT_SHA",
    "deployment_type": "staging",
    "hosting_service": "GitHub"
  }'
```

Replace `$GIT_BRANCH` and `$GIT_COMMIT_SHA` with the variable names your CI system provides for the current branch and commit SHA, and `deployment_type` with the value your QA Wolf representative provides. Set `hosting_service` to where your code is hosted, not where your pipeline runs.

> [!WARNING]
>
> A 200 response does not guarantee a run was created. Inspect the response body to confirm. See [webhooks/deploy\_success](https://docs.qawolf.com/deploy-success.md) for full response details.

**3. Verify the integration**

Trigger your CI pipeline with a new deployment. Confirm the notify step completes without errors, and that a new run appears in QA Wolf under the expected environment.

## Related

* [webhooks/deploy\_success](https://docs.qawolf.com/deploy-success.md)
* [REST API](https://docs.qawolf.com/rest-overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.