> For the complete documentation index, see [llms.txt](https://docs.guestway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guestway.io/account-and-administration/api-access/how-to-add-a-webhook.md).

# How to add a webhook

This guide shows you how to send Guestway events to your own system, and how to check that they arrive.

{% hint style="info" %}
**Before you start**

* Your role has access to webhooks.
* An HTTPS endpoint that accepts requests with HTTP Basic Auth.
  {% endhint %}

## Add the endpoint

{% stepper %}
{% step %}

### Open the webhooks

Go to **Settings** → **Organization** → **API Access**, tab **Webhooks**, and click **Create**.

If the organization already has 5 webhooks, you cannot create another. Delete one first.
{% endstep %}

{% step %}

### Enter the address

Enter a **Name** and the **URL** of your endpoint. The URL must be a public HTTPS address.

Enter the final address of your endpoint. Guestway does not follow redirects, so a redirect makes the delivery fail.
{% endstep %}

{% step %}

### Add the alert emails

In **Notification emails**, add up to 3 email addresses. They get an email when deliveries fail.
{% endstep %}
{% endstepper %}

## Choose the events

{% stepper %}
{% step %}

### Select the events

Select the events in **Event types**, for example **Reservation updated** or **New conversation message**.
{% endstep %}

{% step %}

### Create the webhook

Click **Create**.
{% endstep %}
{% endstepper %}

## Save the credentials

{% stepper %}
{% step %}

### Copy the credentials

In **Webhook created. Save your credentials**, copy the **Name**, the **Secret** and the **Header**. Set them in your endpoint, so it accepts only requests from Guestway. Click **Copy secret & close**.

You can show the secret again later: open the webhook and expand **Authentication credentials**.
{% endstep %}
{% endstepper %}

## Check the deliveries

{% stepper %}
{% step %}

### Open the logs

Open the tab **Webhook Logs**. Each delivery shows its **Status**: **Delivered**, **Failed** or **Final failure**.

If a delivery failed, check **Response** and **Failure reason**.
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>What do I do when the webhook shows Disabled?</summary>

Fix the problem in **Webhook Logs** first. Then open the webhook and click **Re-enable webhook**.

</details>

<details>

<summary>What do I do when the secret leaked?</summary>

Open the webhook and click **Regenerate secret**, then **Regenerate**. The old secret stops working at once, so update your endpoint right away.

</details>

<details>

<summary>How do I test the webhook?</summary>

Guestway has no button to send a test event. Make a change that triggers one of the events, for example update a reservation, and check **Webhook Logs**.

</details>

<details>

<summary>Why do the deliveries fail with a 3xx response?</summary>

Your endpoint answers with a redirect, and Guestway does not follow redirects. Open the webhook, and change the **URL** to the final address of your endpoint.

</details>

## Related

* [API access](https://docs.guestway.io/account-and-administration/api-access.md#webhooks-tab): every field, event and status
* [How to create an API access token](https://docs.guestway.io/account-and-administration/api-access/how-to-create-an-api-access-token.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.guestway.io/account-and-administration/api-access/how-to-add-a-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.
