> ## 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.

# Events

> What a webhook can subscribe to.

| Event | Sent when | `data` |
| - | - | - |
| `post.created` | A post is created, in the app, the API, the CLI or MCP. | `{ "post" }` |
| `post.scheduled` | A post is scheduled. | `{ "post" }` |
| `post.published` | Every target of a post is published. | `{ "post" }` |
| `post.partially_published` | Some targets are published and some failed. | `{ "post" }` |
| `post.failed` | Every target of a post failed. | `{ "post" }` |
| `post.deleted` | A post is deleted. | `{ "post" }` |
| `account.disconnected` | An account needs reconnecting. | `{ "account" }` |
| `ping` | You press **Send test event**. Not subscribable. | — |

`post` is the post as [`GET /v1/posts/{id}`](https://docs.postinger.dev/api-reference/endpoint/posts/get) shows it; for `post.deleted`, the post that was deleted. `account` is the account as [`GET /v1/accounts`](https://docs.postinger.dev/api-reference/endpoint/accounts/list) shows it.

## What the payload shows

`data` is built once, shortly after the event happens, and every retry sends that same body. It shows the post or account as it was when it was built, which can already be later than the event itself. To act on a change, read the `status` rather than relying on the event type alone, and fetch the post or account from the API when you need its state now.

For `account.disconnected`, the account's `status` says what happened: `needs_reauth` (reconnect it in the app) or `disconnected` (removed). It's `active` if the account was reconnected before the event was built.

## Handling failures

For `post.failed` and `post.partially_published`, each failed target has an `errorCode` and an `error`. See [why a target failed](https://docs.postinger.dev/concepts/posts.md#why-a-target-failed), then [retry](https://docs.postinger.dev/guides/retry-failed-posts.md) through the API.


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