Webhooks
Overview
Section titled “Overview”Moving from Artifactory or Nexus? Move Artifactory and Nexus webhooks to CloudRepo maps their events and payload fields to the ones below.
Webhooks send notifications to servers outside CloudRepo when one of these events happens in a Maven, Python or npm repository:
- File Deletion
- File Download
- File Upload
In a Docker repository, pushing an image tag fires the repository’s upload webhooks, and deleting a tag fires its delete webhooks.
Types of Webhooks
Section titled “Types of Webhooks”CloudRepo supports these webhook types:
Every webhook target must be an https:// URL that resolves to a public host.
JSON Webhooks
Section titled “JSON Webhooks”CloudRepo can POST a JSON payload to an HTTPS endpoint when a file event happens in a Maven, Python or npm repository, or when an image tag is pushed to or deleted from a Docker repository.
Jump to Creating a Webhook to get started.
Slack Integration
Section titled “Slack Integration”To send events to a Slack channel, create an incoming webhook in your Slack workspace first, by following Slack’s guide, Sending messages using incoming webhooks. Slack gives you a webhook URL. Then create a CloudRepo webhook of type Slack and paste that URL as the Webhook Target. Treat the URL as a secret: whoever has it can post to your channel.
Creating a CloudRepo Webhook
Section titled “Creating a CloudRepo Webhook”Log in to the CloudRepo Administrator Portal.
From the side navigation panel, click Webhooks.

You’ll see your list of webhooks. If this is your first, the page reads No webhooks configured.
Click Create Webhook.

On the Create a Webhook screen, fill in:
- Repository to Trigger Webhook: the webhook fires for events in this repository.
- Webhook Target: for JSON, the
https://URL that listens for an HTTP POST with a JSON body; for Slack, the webhook URL you copied from Slack. - The webhook type: JSON or Slack.
- Fire Webhook On the Following Artifact Events: tick Delete, Download, Upload, or any of them.
Then click Create Webhook, and confirm your identity when asked.
Each repository can have up to 20 webhooks for each event (upload, download and delete).

Upon successful completion, your webhook will now be listed in the list of webhooks:

Modifying a Webhook
Section titled “Modifying a Webhook”A webhook keeps the settings it was created with.
To add events for a webhook URL, create a new webhook with the extra events you want to monitor.
To remove events from a webhook, delete the existing one and create a new webhook with the updated permissions.
Deleting a Webhook
Section titled “Deleting a Webhook”To delete a webhook, select it from the list:

On the Webhook Details page, click Delete Webhook.

A confirmation window will pop up; confirm, and the webhook is permanently removed.