# 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="../../developers/webhooks" %}
[webhooks](https://docs.thx.network/developers/webhooks)
{% endcontent-ref %}

<figure><img src="https://1499671166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fda0CPvFjFKQsHDL5o9xa%2Fuploads%2FeGfp4GGUq5Q8J85jl5VE%2FScreenshot%202024-07-01%20at%2017.10.32.png?alt=media&#x26;token=91a9763e-70d9-47ae-8274-970277ce7bfe" 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)
}
```

####
