DeployHQ will automatically add a webhook to your repository so you can [deploy your code from Bitbucket automatically](https://www.deployhq.com/deploy-from-bitbucket), however if you've changed repository details you'll need add it manually.

Before you can add your webhook to Bitbucket, you'll need to [retrieve it](https://www.deployhq.com/support/deployments/automatic-deployments#getting-the-webhook-url-for-a-project) from your DeployHQ project.

Open your repository up in BitBucket (there's a shortcut at the top of DeployHQ labelled "Browse Repository") and click **Settings**, followed by **Webhooks** in the adjacent menu. Then, click **Add webhook**:

{screenshot: 107}

Enter a meaningful name for your Webhook, then paste the URL from your server in DeployHQ into the box into the URL field. Ensure that **Status** is set to **Active**, keep **Repository Push** selected next to **Triggers** and hit **Save** to finish.

{screenshot: 109}