# Configure a Webhook in GitLab

{% hint style="info" %}
After the 25.3.9 release, the structure of the webhook payload URL was updated. Customers need to update the webhook URL in the repository settings of their remote repo. Some customers are still using the old webhook URL containing **autorabitrest**, which should now be replaced with api.

Example:

Old URL: [https://na25.autorabit.com/**autorabitrest/**&#x77;ebhook/triggerSCMPushrequest](https://na25.autorabit.com/autorabitrest/webhook/triggerSCMPushrequest)

Updated URL: [https://na25.autorabit.com/api/webhook/v2/\<OrgName>/trigger-scm-push-request](https://na25.autorabit.com/api/webhook/v2/<OrgName>/trigger-scm-push-request)

Unless you update the Payload URL, you might face pull request/trigger build-on-commit jobs triggering.
{% endhint %}

## A. Create a Webhook API Token from ARM

1. Log in to ARM.
2. Navigate to **Admin > API Token**.
3. Click **Create API Token**.

<figure><img src="/files/oMhymvt89Vw0DOuQ7rIl" alt=""><figcaption></figcaption></figure>

4. Enter a **Token Name**.
5. Select **Type** as **webhook**.
6. (Optional) Add a **Description**.
7. Click **Create Option**.

<figure><img src="/files/17bTpsOCCPMGHO7jKvFa" alt=""><figcaption></figcaption></figure>

8. Your API token is now created.

## B. Create a Webhook with Authentication on GitLab

1. Log in to your GitLab account and select the target repository.

<figure><img src="/files/E1YVFZoMmpMmP6loYVLV" alt=""><figcaption></figcaption></figure>

2. Go to **Settings > Integrations**.

<figure><img src="/files/b5zU9ed46oOZ8DzFTMNC" alt=""><figcaption></figcaption></figure>

3. In the **URL** field, enter the webhook endpoint:

For example:\
<https://login.autorabit.com/api/webhook/v2/autorabit.com/trigger-scm-push-request>

<figure><img src="/files/xAfWDEHf5RW4qRC7dM35" alt=""><figcaption></figcaption></figure>

4. Complete the configuration and click **Add Webhook**.

## Smart Commits

Define the pattern used to extract ALM-related information from commit messages. For example:

<figure><img src="/files/bJErvltMZ9zFfNsn63p0" alt=""><figcaption></figcaption></figure>

To enable automatic updates via webhook:

* Check the **Enable auto update on webhook** option.
* This will display the required webhook URL for use in repository settings.

For more detailed setup across repositories, refer to the [Webhook Configuration Guide](file://product-guides/arm/arm-features/webhooks).\
To integrate with external Smart Commit systems, see the [Version Control Repositories Summary](file://product-guides/arm/arm-features/version-control/introduction-to-version-control/version-control-repositories-summary).

## For Enterprise Customers

Use the following endpoints for enterprise-specific configurations: /api/webhook/v2//enterprise/trigger-scm-push-request /api/webhook/v2//enterprise/sync-alm-commits


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/arm/arm-features/webhooks/configure-a-webhook-in-gitlab..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
