> For the complete documentation index, see [llms.txt](https://docs.ozone.one/ozone-end-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ozone.one/ozone-end-user-guide/documentation/ci-cd/triggers/triggering-a-pipeline-and-or-a-release-run/custom-webhook.md).

# Custom Webhook

thatthatSuppose users want to create a webhook for custom use cases, like they want a pipeline or release to be triggered based on the options that they desire so what they can do is they can create a **Generic webhook**. This only requires a **POST** request to be sent on the URL provided and then the pipeline or release will be triggered.\
\
**Steps to create a Generic Webhook for release**

**Pre-requisites:**

* An Active cluster
* A Release that has been created from the Release Templates section

**Steps**

1. On click of the **create webhook** button, a modal window appears in which we can enter the details for webhook creation

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

2. After this select the webhook type as **Generic**

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

3. After this select the release type as the **release**

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

4\. After the trigger type **release** has been selected, select the release which needs to be triggered on the success of the POST request

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

5. Once all the options are selected, the map parameters button will be enabled users can click on the button to move to the next step

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

6. On moving to the next step, users can select the desired options for mapping the parameters. Once all the options are chosen users can click on save to create the **Generic webhook.**

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

7. The webhook once created will be shown in the webhook list view

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

8. To get the URL of the generic webhook that is created, click on the edit button of the webhook

<figure><img src="/files/9bmfyFWbuiTijwYxS4JU" alt=""><figcaption></figcaption></figure>

Now we can use this URL for sending POST requests, after completion of any action we can send a POST request to this URL and the selected Release will be triggered.

### **Steps to create Generic Webhook for pipeline** <a href="#steps-to-create-generic-webhook-for-pipeline" id="steps-to-create-generic-webhook-for-pipeline"></a>

**Pre-requisites:**

* An Active cluster
* A microservice

Follow the same steps until **Step 2** of Creating Webhooks for release<br>

**Steps:**

1. Select the trigger type as pipeline

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

2. Now select the pipeline that needs to be triggered

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

\
3\. After selecting the pipeline, select the environment in which the webhook needs to be created

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

**Remember to select the environment the same in which the cluster has been created**\
\
**4.** After selecting the environment, users will be shown an option to select the cluster<br>

<figure><img src="/files/2eO7XGbkNL0pg8WxfFnC" alt=""><figcaption></figcaption></figure>

5. Once the cluster has been selected, select the microservice

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

6. After selecting the microservice, users can move to the **Map parameters** step, to select the run parameters for the pipeline

<figure><img src="/files/49KtbggykqlnFTbwewsK" alt=""><figcaption></figcaption></figure>

7. In **Map parameters,** users can select all the options as they desire

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

8. Once all this is done, users can click on the **Save** button to create the webhook for the pipeline

<figure><img src="/files/3hp5JwvDs7zyrX9sZ9hG" alt=""><figcaption></figcaption></figure>

9. The created webhook will be shown in the webhook list view

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

10. To get the URL of the generic webhook that is created, click on the edit button of the webhook

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

Now we can use this URL for sending POST requests, after completion of any action we can send a POST request to this URL and the selected Release will be triggered.<br>

This is how webhooks are created for Generic use cases, where we can just send a POST request to the URL and the desired pipeline/release will be triggered.
