> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmany.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Webhooks

> Use webhooks to notify your application about Upwork events.

## What is a webhook?

Getmany uses webhooks to push real-time notifications to you about your Upwork activity. All webhooks use HTTPS and deliver a JSON payload that can be used by your application. You can use webhook feeds to do things like:

* Update lead status based on changing proposal status
* Automatically handle new messages from customers

## Steps to receive webhooks

You can start receiving real-time events in your app using the steps:

1. Create a local endpoint to receive requests
2. Register your development webhook endpoint
3. Test that your webhook endpoint is working properly
4. Deploy your webhook endpoint to production
5. Register your production webhook endpoint

### 1. Create a local endpoint to receive requests

In your local application, create a new route that can accept POST requests.

For example, you can add an API route on Express.js:

```js index.ts theme={null}
import express from "express";

const HTTP_PORT = 3000;

const app = express();
app.use(express.json());

app.post("/webhook", (req, res) => {
  console.log("request payload", req.body);

  res.json({ success: true });
});

app.listen(HTTP_PORT, () => {
  console.log(`Example app listening on port ${HTTP_PORT}`);
});
```

On receiving an event, you should respond with an `HTTP 200 OK` to signal Getmany that the event was successfully delivered.

### 2. Register your development webhook endpoint

Register your publicly accessible HTTPS URL in the Getmany dashboard.

> [!TIP]
>
> You can create a tunnel to your localhost server using a tool like
> [ngrok](https://ngrok.com/download). For example:
> `https://8733-191-204-177-89.sa.ngrok.io/api/webhooks`

### 3. Test that your webhook endpoint is working properly

Open your webhook in **Settings → Webhooks**, choose one of its subscribed events under **Send test event**, and click **Send**. Getmany sends a sample payload for that event to this endpoint only, so your other webhooks don't receive it.

Test events are signed and retried like real ones, and they appear in the webhook's **Recent Events**, where you can resend them. You can tell a test event apart from a real one in two ways:

* The payload contains `"test": true`
* The request has a `webhook-test: true` header

See the [Event Catalog](https://docs.getmany.com/webhooks/event-catalog.md) for the payload of each event.

### 4. Deploy your webhook endpoint

After you're done testing, deploy your webhook endpoint to production.

### 5. Register your production webhook endpoint

Once your webhook endpoint is deployed to production, you can register it in the Getmany dashboard.

## FAQ

> [accordion] What is the retry schedule?
>
> If Getmany does not receive a 200 response from a webhook server, we will retry the webhooks.
>
> Each message is attempted based on the following schedule, where each period is started following the failure of the preceding attempt:
>
> * 5 seconds
> * 5 minutes
> * 30 minutes
> * 2 hours
> * 5 hours
> * 10 hours

> [accordion] What happens after all the retries fail?
>
> After the conclusion of the above attempts the message will be marked as
> failed, and you will get a webhook of type `message.attempt.exhausted`
> notifying you of this error.

> [accordion] What IPs do webhooks post from?
>
> If your server requires an allowlist, our webhooks come from the following IP addresses:
>
> * `52.215.16.239`
> * `54.216.8.72`
> * `63.33.109.123`
> * `2a05:d028:17:8000::/56`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.