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

# Send GitLab events to Cortex XCOR

> Create a GitLab webhook that sends project and pipeline events to Palo Alto Networks Cortex XCOR.

To send GitLab events to Palo Alto Networks Cortex XCOR, create a webhook within
GitLab and include your API key to authenticate with Cortex XCOR. For more
information, refer to
[Webhooks](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html) in the
GitLab documentation.

## Obtain an API token

Before sending events from GitLab, contact [Cortex XCOR Support](https://docs-xcor.paloaltonetworks.com/support.md) to
obtain an API token to authenticate with Cortex XCOR.

> [!NOTE]
>
> This API token differs from an API token that's generated when you create
> a [service account](https://docs-xcor.paloaltonetworks.com/administer/accounts-teams/service-accounts.md).

## Create a GitLab webhook

To send GitLab events to Cortex XCOR:

1. In GitLab, [create a webhook](https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#configure-a-webhook-in-gitlab)
   scoped to your project or group.

2. In the **URL** field, enter
   `https://TENANT.chronosphere.io/api/v1/data/events/receiver/gitlab`

   Replace *`TENANT`* with the name of your Cortex XCOR tenant.

3. In the **Secret token** field, enter the API token you obtained from Cortex XCOR
   Support.

4. In the **Trigger** section, select the events to trigger the webhook.
   Cortex XCOR supports only **Deployment events** and
   **Feature flag events**.

   > [!WARNING]
   >
   > If you choose any events other than **Deployment events** or **Feature flag events**,
   > Cortex XCOR drops the related event data, even though the GitLab interface lets
   > you select other event types.

5. Click **Add webhook** to create the webhook.


## Related topics

- [Integrate with Cortex XCOR](https://docs-xcor.paloaltonetworks.com/integrate.md)
- [Send third-party events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party.md)
- [Send GitHub events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party/github.md)
- [Send Statsig events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party/statsig.md)
- [Send Buildkite events to Cortex XCOR](https://docs-xcor.paloaltonetworks.com/ingest/third-party/buildkite.md)


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