# Create a Webhook

Webhooks allow Firstoken to send event-driven notifications to your endpoint. Notifications are triggered only when a subscribed event occurs.

#### Steps

1. Log in to the Firstoken Console.
2. Navigate to **Webhooks** and click **+ New Webhook**.
3. Complete the following fields:

| Field       | Required | Description                                                                                                                     |
| ----------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Name        | Yes      | Identifies the webhook.                                                                                                         |
| Description | No       | Optional context for the webhook.                                                                                               |
| URL         | Yes      | Destination endpoint where notifications will be delivered.                                                                     |
| Events      | Yes      | One or more events that will trigger a notification. See [Webhook Events](/api-docs/how-to/create-a-webhook/webhook-events.md). |

4. Click **Create**. A modal displays the **Webhook Key** used to validate incoming notifications.

> **Important:** Store the Webhook Key immediately. Validate all incoming notifications using this key to confirm they originate from Firstoken.


---

# 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://firstoken.gitbook.io/api-docs/how-to/create-a-webhook.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.
