> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/documentation/features/working-with-tags/server-side-notification-new-tag-image-webhook.md).

# Server Side notification – new\_tag\_image (Webhook)

This article demonstrates how to create a webhook that will make requests to a predefined end-point whenever the event **new\_tag\_image** is emitted. This event is caused whenever a tag is applied to one or multiple images.

{% hint style="warning" %}
**Note:**

* To create a webhook, you will need access to the Administration Dashboard.
* To use webhooks, you should ensure that you have granted API access to SharinPix on your organization. To verify this, go to the **SharinPix Settings** tab and check if the second row, that is, **Sharinpix -> Salesforce full API access**, is highlighted in green.

  In case the row, **Sharinpix -> Salesforce full API access** is still highlighted in red, simply click on the **Grant** button to grant API access.

  For more detailed information on how to grant API access, please refer the the following article:

[Basic Setup - Step 2 - Register your Salesforce organization to SharinPix](/documentation/getting-started-with-sharinpix/basic-setup/basic-setup-step-2-register-your-salesforce-organization-to-sharinpix.md)
{% endhint %}

## Create webhook

There are 2 types of web-hooks:

* [Call to a specific end-point URL](#call-to-a-specific-end-point-url)
* [Call to a static method from an Apex Class](#call-to-a-static-method-from-an-apex-class)
* Access the **Administration Dashboard**.
* Select the **Webhooks** menu item from the navigation bar.
* Click on the **New Webhook** button.

## Call to a specific end-point URL

Configure the web-hook by filling the following values:

1. Select the relevant Organization
2. Select **url** as the **Action Type.**
3. Inside the **Url** field enter the required endpoint.&#x20;
4. The value inside the **secret** field corresponds to the SharinPix Secret Header inside the POST request.
5. The **Type** should be **Webhooks::V2.**
6. In this case, the event to be detected should be **New tag image**.
7. If you intend to emit the **New tag image** event when a specific tag is applied, enter the name of tag inside the **Filter by tag name** field.

* Click on **V2** when you are done.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-2a150c3a2eb6fc1ebe775fde7fd234d970ea108d%2Fscreenshot-app.sharinpix.com-2021.11.12-16_14_54.png?alt=media)

## Call to a static method from an Apex Class

Configure the web-hook by filling the following values:

1. Select the relevant Organization
2. Select **apex\_method** as the **Action Type.**
3. Inside the **Class name** field enter the required Apex Class.
4. Inside the **Method name** field enter the method to be invoked.
5. The **Type** should be **Webhooks::V2.**
6. In this case, the event to be detected should be **New tag image**.
7. If you intend to emit the **New tag image** event when a specific tag is applied, enter the name of the tag inside the **Filter by tag name** field.

* Click on **V2** when you are done.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-65ac9ec8fd568e9ccb3ab23fb1f152fb5abfb80f%2Fscreenshot-app.sharinpix.com-2021.11.12-16_06_22_\(1\).png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sharinpix.com/documentation/features/working-with-tags/server-side-notification-new-tag-image-webhook.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
