# Events

Events are automatically created for a resource when a specific action happens (i.e. `orders.place`). When a [webhook](/core-api-reference/webhooks.md) is listening to that action's topic and the subscribed event occurs, Commerce Layer sends a `POST` request to the webhook's callback URL, and the associated [event callback](/core-api-reference/event_callbacks.md) is created.

Events can be [included](https://docs.commercelayer.io/developers/including-associations) when fetching the resources that support them to inspect each recorded action.

### Retriggering events

Events are automatically triggered at creation time, notifying all listening webhooks. If, for some reason, you want to force the firing of an existing event manually, you can patch it with the `_trigger` attribute set to `true` (you need to use [integration](/core/api-credentials.md#integration) API credentials) — the event will be immediately triggered, regardless of its uniqueness.

<details>

<summary>How-to</summary>

Check the related [guide](https://docs.commercelayer.io/developers/real-time-webhooks) for more info about real-time webhooks and the related events.

</details>

{% hint style="info" %}
Create and delete operations are not allowed on this endpoint. You can only fetch a list of events or a specific single one, which can also be updated in order to trigger it manually or update common attributes (metadata, references, etc.).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.commercelayer.io/core-api-reference/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
