> For the complete documentation index, see [llms.txt](https://help.openloyalty.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.openloyalty.io/technical-guide/webhooks/overview.md).

# Overview

Webhooks in Open Loyalty provide a powerful mechanism for real-time, event-driven communication between your Open Loyalty instance and external systems. They act as automated notifications, delivering event data whenever specific actions occur, such as a customer earning points, redeeming a reward, or updating their profile. Depending on your configuration, this data can be sent via an HTTP POST request to a designated endpoint or pushed to a message queue like AWS SQS, allowing your integrated systems to react instantly and manage data flow efficiently.

To ensure the secure implementation of your webhooks, consider the following measures, noting that security mechanisms differ slightly between direct endpoint delivery and SQS delivery:

* **Verification Tokens (for direct endpoints):**\
  When sending webhooks to a direct HTTP endpoint, utilize a shared secret (often referred to as a verification token or signature) to validate incoming requests. This helps ensure that the requests genuinely originate from your Open Loyalty instance and prevents unauthorized or spoofed calls.
* **HTTPS (for direct endpoints):**\
  Always implement HTTPS for your webhook endpoints. This encrypts the data in transit, protecting sensitive information from eavesdropping and tampering as it travels from Open Loyalty to your system.
* **AWS SQS Security:**\
  When sending webhooks to AWS SQS, security is primarily managed through AWS Identity and Access Management (IAM) and SQS queue access policies. Ensure your AWS credentials (Access Key and Secret Key) have the minimum necessary permissions (least privilege) to send messages to the specified queue, and configure your SQS queue policies to restrict access appropriately.

### Learn more about <a href="#learn-more-about" id="learn-more-about"></a>

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>What Triggers a Webhook</strong></td><td>Learn which actions trigger webhooks</td><td><a href="/integrations-and-data-exchange/webhooks/what-triggers-a-webhook.md">What Triggers a Webhook</a></td></tr><tr><td><strong>SQS Queue</strong></td><td>Learn more how to utilize SQS delivery</td><td><a href="/technical-guide/webhooks/sending-webhooks-to-aws-sqs.md">Sending Webhooks to AWS SQS</a></td></tr><tr><td><strong>Best Practices</strong></td><td>Learn how to set up best webhook integration</td><td><a href="/technical-guide/webhooks/best-practices.md">Best Practices</a></td></tr></tbody></table>


---

# 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://help.openloyalty.io/technical-guide/webhooks/overview.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.
