# 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)
}
```

####


---

# 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.thx.network/campaign-managers/quests/webhook-quests.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.
