# Webhooks

## Introduction

Whether you have an API or not, Webhooks have become the status quo for asynchronous API events. They enable your users to receive updates on events from your platform and remove the need to poll your API for changes.&#x20;

## What You Will Build

In this guide, we'll walk you through how Webhooks work and we'll proof of concept a working demo of your app sending out webhooks using the HostedHooks API.

In this guide we'll show you how to:

1. Add Webhooks to your app
2. Setup your sender and recipient records
3. Trigger a webhook from your app and watch it be received by your subscriber

## Before Getting Started

To get the most of out of this guide, you'll need:

* A HostedHooks developer account

#### API Object Definitions

| Object       | Definition                                                                                                                                                       |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| App          | An App is an object that represents your application. It is also the object that will be sending webhooks and that your webhook recipients will subscribe to.    |
| Endpoint     | A endpoint is an object that represents your subscriber's webhook destination. It provides all the attributes around what events and where to send the webhooks. |
| Subscription | A subscription is the relationship between your webhook recipient's endpoint and your app.                                                                       |
| Message      | A message is an object that represents the API call from your App to HostedHooks. The contents of a message get converted into a Webhook attempt.                |


---

# 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.hostedhooks.com/getting-started/webhooks.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.
