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

# Webhooks

> Postinger calls your server when a post is published, fails or is deleted.

Instead of asking the API whether a post went out, let Postinger tell you. A **webhook** is a URL on your server that Postinger sends an HTTP `POST` to whenever something you subscribed to happens.

## Set one up

**1. Add an endpoint**

In Postinger, open **Webhooks** and add your URL. It must be a public `https://` address.

**2. Choose events**

Pick the [events](https://docs.postinger.dev/api-reference/webhooks/events.md) to receive. You can also limit the webhook to some accounts: it then only hears about posts to those accounts.

**3. Copy the signing secret**

It starts with `whsec_`. Use it to [verify](https://docs.postinger.dev/api-reference/webhooks/verify-signatures.md) that each request comes from Postinger.

**4. Send a test event**

**Send test event** delivers a `ping` to your endpoint, so you can check it before real events arrive.

A workspace can have up to **10** webhooks.

## What arrives

Every event has the same envelope. `data` holds the `post` or the `account`, as the API would show it at the moment of delivery.

```json theme={"system"}
{
  "id": "0193a5b2-7c4e-7d1a-9f3b-2c8e5a6d4f10",
  "type": "post.published",
  "createdAt": "2026-11-01T06:00:04Z",
  "workspaceId": "0192f0c1-…",
  "data": {
    "post": {
      "id": "0193a5a0-…",
      "status": "published",
      "content": "We are live! 🚀",
      "targets": [
        { "socialAccountId": "…", "platform": "instagram", "status": "published", "externalUrl": "https://www.instagram.com/p/…" }
      ]
    }
  }
}
```

## Answer fast

Store the event, answer with any `2xx` within **15 seconds**, then do the work. A `2xx` means you've taken the event: Postinger won't send it again, so don't answer before it's stored. Anything else (another status, a timeout, a redirect) counts as a failure and is [retried](https://docs.postinger.dev/api-reference/webhooks/delivery.md).

The same event can arrive more than once. Use its `id` (also in the `webhook-id` header) to skip events you've already handled.


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