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

# Creating a Webhook

> Manually create the GitHub webhook when automatic registration didn't happen, and select the three events Kodus consumes.

Kodus usually creates the webhook automatically. If that didn't happen, follow these steps to set it up manually:

<Note>
  Webhook URLs must reach the Webhooks service (port 3332). Using the API domain only works if your reverse proxy routes `/.../webhook` paths to the webhooks service.
</Note>

1. Head over to your GitHub repository

2. Click on "Settings"

3. Find "Webhooks" in the left sidebar

4. Click "Add webhook"

5. Configure your webhook:

   * **Payload URL**: Enter the URL from your `.env` file: `API_GITHUB_CODE_MANAGEMENT_WEBHOOK`
   * **Content type**: `application/json`
   * **Secret**: Leave blank
   * **SSL verification**: Enable SSL verification
   * **Which events would you like to trigger this webhook?**: Let me select individual events
   * Check these boxes:
     * Issue comment
     * Pull request review comments
     * Pull requests

6. Click "Add webhook"

You've successfully set up a webhook for code reviews in your GitHub repository.

<Note>
  These are the only three events Kodus consumes. Selecting extras (pushes, pull request
  reviews, review threads) just sends traffic that is discarded on arrival.
</Note>
