> For the complete documentation index, see [llms.txt](https://docs.ecwid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecwid.com/webhook-automations/setup-webhooks/set-up-webhooks-for-your-app.md).

# Set up webhooks for your app

Setting up webhooks requires you to add two settings to your Ecwid app:

* **List of webhook events**
* **Self-hosted `webhookUrl` endpoint**

{% hint style="info" %}
If you don't yet have an app for Ecwid API access, start with the following [instructions](https://app.gitbook.com/s/uOzT5egoVTAjMJwRuMQT/get-started/set-up-your-dev-environment-in-ecwid#step-2.-get-your-first-application).
{% endhint %}

Everything that happens in the store has its **webhook event**. The event describes the affected entity and action in the `entity.action` format.&#x20;

For example, `order.created` webhooks notify about any new orders in the store:&#x20;

* Placed by customers on the storefront.
* Created by the store owner through the mobile app.
* Synced through applications with REST API.&#x20;

We recommend you avoid enabling all webhook events for your app. Check out available events and choose the ones you need. [List of webhook events](/webhook-automations/learn-ecwid-webhooks/list-of-webhook-events.md)

Your `webhookUrl` endpoint must work through HTTPS and must be able to receive POST requests and respond to them with HTTP `200 OK` status.

Once you have both the `webhookUrl` and a list of events, request an application update.&#x20;

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Learn about handling webhooks:</strong></td><td><a href="/webhook-automations/setup-webhooks/how-to-process-webhooks.md">How to process webhooks</a></td></tr><tr><td><strong>Request application update:</strong></td><td><a href="/contact-ecwid-api-support-team.md">Contact Ecwid API support team</a></td></tr></tbody></table>

If you need additional authentication on your side, you can set up custom headers for your `webhookUrl`. Learn more about [custom headers](/webhook-automations/customize-webhooks/pass-additional-data-through-webhooks.md).


---

# 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.ecwid.com/webhook-automations/setup-webhooks/set-up-webhooks-for-your-app.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.
