> For the complete documentation index, see [llms.txt](https://docs.thx.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thx.network/campaign-managers/quests/webhook-quests.md).

# Webhook Quests

This quest type allows you to provide your own quest validation logic. It's required to configure an API endpoint for this quest that we can send a validation request to.

{% content-ref url="/pages/VUQOO7SsxVyCsSCZffOU" %}
[Webhooks](/developers/webhooks.md)
{% endcontent-ref %}

<figure><img src="/files/bhM0jwfF9CDPVSoMYejM" alt=""><figcaption><p>Example of Webhook Quest configuration</p></figcaption></figure>

#### Custom Amount

You can enable the **custom amount** setting which will allows you to calculate a point amount on your side and return in the response of the webhook call. We will then transfer that amount of points to the user.

#### Webhook Response

Your webhook should create a response like this. Note that the amount property is optional.

```typescript
{
    result: boolean, // Validated (true) or invalidated (false) quest entry
    amount?: number, // Your custom point amount (0 or more)
}
```

####
