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

# Webhook events

> Every event PostSyncer sends to a webhook endpoint, and the data each one carries

A webhook endpoint gets the events in its `events` list, each as a signed `POST` with a JSON body. This page shows that body for every event.

To add an endpoint, see [Create a webhook](https://docs.postsyncer.com/api-reference/webhooks/create.md). To check that a request came from PostSyncer, see [Verify webhook signatures](https://docs.postsyncer.com/guides/verify-webhooks.md). To try your handler on your own machine first, see [Test webhooks locally](https://docs.postsyncer.com/webhooks/test-locally.md).

## The request

Every event comes in the same envelope. This is the one [Send a test event](https://docs.postsyncer.com/api-reference/webhooks/test.md) sends:

```json theme={null}
{
  "type": "webhook.test",
  "id": "01q9aa9wn8k5r6t1n0xwdq7h3m",
  "timestamp": "2030-03-15T09:00:41+00:00",
  "workspace_id": 12,
  "data": { "message": "This is a test event from PostSyncer." }
}
```

| Field | Type | Description |
| - | - | - |
| `type` | string | The event, such as `post.failed` |
| `id` | string | The event's id, a lowercase ULID. The `webhook-id` header holds it too. |
| `timestamp` | string | When the event happened, in ISO 8601 |
| `workspace_id` | integer | The workspace it happened in. An endpoint with `workspace_ids` gets events of several workspaces: read this to tell them apart. |
| `data` | object | What happened. Each event below shows its own. |

The request carries these headers:

| Header | Value |
| - | - |
| `webhook-id` | The event's `id` |
| `webhook-timestamp` | When this attempt was sent, in Unix seconds. Each retry has its own. |
| `webhook-signature` | `v1,` and a base64 HMAC-SHA256 signature. [Verify webhook signatures](https://docs.postsyncer.com/guides/verify-webhooks.md) shows how to check it. |
| `content-type` | `application/json` |

These rules hold for every event:

* **One event, one id.** Every retry, and every **Send again** in the app, sends the same `id` and the same `data`. Keep the ids you have handled and skip one you've seen.
* **`data` is kept from the first send.** It is built the first time the event is sent, so a retry hours later still tells you what happened then. To see a post as it is now, use [Get a post](https://docs.postsyncer.com/api-reference/posts/get.md).
* **Events can arrive out of order.** A `post.published` can come before the last `post.account_published` of the same post. Don't rely on the order they arrive in.
* **Two kinds of times.** A post's own fields give times in the workspace's time zone as `Y-m-d H:i`, such as `2030-03-15 09:00`, as [Get a post](https://docs.postsyncer.com/api-reference/posts/get.md) does. Every other time is ISO 8601, such as `2030-03-15T09:00:41+00:00`.
* **New fields can appear.** `data` can get new fields, and a field that names a kind, such as `platform` or `status`, can get new values. Ignore the fields you don't know. New events are added too, but an endpoint only gets the events in its list. See [Versioning](https://docs.postsyncer.com/versioning.md).

## Events at a glance

| Event | Sent when | `data` |
| - | - | - |
| `post.published` | Every account of a post is live. | The post |
| `post.partially_published` | Some accounts of a post are live and some failed. | The post |
| `post.failed` | No account of a post went live. | The post |
| `post.account_published` | One account of a post is live. | The post, `account_id` |
| `post.account_failed` | One account of a post failed. | The post, `account_id` |
| `post.scheduled` | A post was scheduled or added to the queue, or got a new time there. | The post |
| `post.deleted` | A post was deleted. | `id`, `workspace_id`, `deleted_at` |
| `post.needs_media` | AI media a post was waiting for failed or was stopped. | The post, `reason`, `stopped` |
| `posts.bulk_removed` | One API key or AI agent took 10 or more scheduled posts off the schedule, or deleted them, within an hour. | `removed`, `by` |
| `approval.requested` | A post was sent for review. | `post`, `actor` |
| `approval.approved` | A post was approved. | `post`, `actor` |
| `approval.rejected` | A post was rejected. | `post`, `actor`, `reason` |
| `account.needs_reconnect` | An account has to be connected again. | `account`, `reason` |
| `account.expires_soon` | An account's sign-in can't renew and ends soon. | `account`, `days`, `expires_at` |
| `account.paused` | The platform put an account's publishing on hold. | `account` |
| `account.connected` | An account was added. | `account`, `actor` |
| `account.disconnected` | An account was removed. | `account`, `actor` |
| `account.posts_to_put_back` | A disconnected profile was connected again, and posts it was on can get it back. | `account`, `put_back` |
| `comment.mentioned` | Someone was tagged in a team comment. | `post`, `actor`, `mentioned`, `comment` |
| `comment.received` | Someone commented on a published post. | `post`, `account`, `comment` |
| `share.comment_received` | A client commented on a share link. | `post`, `comment` |
| `review.received` | A new review came in on a Google Business Profile location. | `account`, `review` |
| `media.generated` | An AI image or video is ready. | `media` |
| `media.generation_failed` | An AI image or video couldn't be made. | `media` |
| `brand.learned` | The brand brain learned something on its own. | `version`, `source`, `changes`, `sections` |
| `team.member_joined` | Someone accepted an invitation to the workspace. | `member` |
| `webhook.test` | You sent a test event. | `message` |

## Which events an endpoint gets

An endpoint gets an event when all of these hold:

* It is on (`active` is `true`), and the event is in its `events` list.
* The event happened in the endpoint's workspace, or in one of its `workspace_ids`. Another workspace's events reach it only while the person who set it up still owns that workspace or is a member of it. With `["*"]`, it gets the events of every workspace that person owns.
* It has no `account_ids`, or the event is about one of those accounts: a post on one of them, or the account itself.

`posts.bulk_removed`, `media.generated`, `media.generation_failed`, `brand.learned` and `team.member_joined` are about no account, so an endpoint with `account_ids` never gets them.

Endpoints don't follow anyone's notification settings. An endpoint gets every event in its list, even one nobody gets an email or a bell notification for.

`webhook.test` is the exception to the rest: [Send a test event](https://docs.postsyncer.com/api-reference/webhooks/test.md) sends it to the one endpoint you test, while it is on. A test to an endpoint that is off fails with `The destination is off.`

## Post data

`post.published`, `post.partially_published`, `post.failed`, `post.account_published`, `post.account_failed`, `post.scheduled` and `post.needs_media` send the post as `data`. It has the same fields as [Get a post](https://docs.postsyncer.com/api-reference/posts/get.md), and these next to them:

| Field | Type | Description |
| - | - | - |
| `accounts` | array | Each account's result when the event happened, failed ones first. See [Accounts](#accounts). |
| `account_id` | integer | `post.account_published` and `post.account_failed` only: the account the event is about |
| `reason` | string or null | `post.needs_media` only: why the media isn't there, in words |
| `stopped` | boolean | `post.needs_media` only: `true` when someone stopped the AI media before it finished, `false` when making it failed. Read this, not `reason`, to tell the two apart. |

The approval events send the same post fields in `post`, without `accounts`.

### Accounts

Each item of `accounts`:

| Field | Type | Description |
| - | - | - |
| `account_id` | integer | The social account's id |
| `platform` | string | `instagram`, `linkedin`, `twitter` and so on |
| `name` | string or null | The account's display name |
| `username` | string or null | The account's handle |
| `status` | string | The account's result: `PENDING`, `IN_PROGRESS`, `PUBLISHED` or `FAILED` |
| `post_url` | string or null | The live post's address, once published |
| `error` | string or null | What went wrong, in words, for a failed account |
| `fix` | object or null | What to do about a failed account: `code`, `label` and `url`. `null` for an account that didn't fail. |

`fix.label` is the button the app shows for the fix, and `fix.url` opens the place in the app to do it. Both are `null` for a code with no button.

### Fix codes

| Code | What it means | `fix.label` |
| - | - | - |
| `reconnect` | The account has to be connected again: its sign-in ran out or was refused. | `Reconnect` |
| `platform_hold` | The platform is holding the account until its owner acts there, for example to confirm their identity. `fix.url` opens the platform. | `Open platform` |
| `plan_inactive` | The workspace's plan can't publish right now. | `Renew plan` |
| `board` | Pinterest needs a board for the post. | `Pick a board` |
| `unsure` | PostSyncer can't tell whether the post went out. Check the account before you send it again, so it doesn't go out twice. | `null` |
| `not_started` | Publishing never started. Send it again. | `Try again` |
| `wait` | The platform is limiting the account for now (a posting limit, or Instagram's anti-spam block). Try again later, not straight away. | `null` |
| `media` | The platform refused the media. Change it and send it again. | `Change media` |
| `edit` | The platform refused the text, for example as too long or a duplicate. Edit it and send it again. | `Edit post` |
| `retry` | Nothing needs to change: the platform's side failed, or the plan can publish again. Send it again. | `Try again` |
| `support` | PostSyncer doesn't know why it failed. Try again, or contact support. | `Contact support` |

A post refused because the Free plan's posts for the month are used up arrives today with `fix.code` `"retry"`, and its `error` says the posts are used. Sending it again fails until they reset, so don't retry it on its own: check the workspace's plan first.

### When the post is gone

If the post was deleted before the event was first sent, and always for `post.deleted`, the post fields are only these, and there is no `accounts`:

```json theme={null}
{
  "id": 4821,
  "workspace_id": 12,
  "deleted_at": "2030-03-15T10:02:11+00:00"
}
```

`post.account_published` and `post.account_failed` keep their `account_id` next to them, and `post.needs_media` its `reason` and `stopped`. In an approval event, `post` is this object.

## Accounts and people

In the events below, `account` is always `{ "id", "platform", "name", "username" }`. `actor` is the person who did it, `{ "id", "name" }`.

## post.published

Every account of the post is live. The post's `status` is `PUBLISHED`, and each account has its `post_url`. Right after a post goes out its numbers aren't read yet, so `analytics.pending` is `true`.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "PUBLISHED",
  "content_version": 1,
  "posted_on": ["2030-03-15 09:00"],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 09:01",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": ["2030-03-15 09:00"],
      "status": "PUBLISHED",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": [],
      "analytics": {
        "comments": 0,
        "likes": 0,
        "shares": 0,
        "impressions": 0,
        "quotes": null,
        "saves": 0,
        "views": null,
        "reach": 0,
        "clicks": null,
        "profile_visits": 0,
        "engagement_rate": null,
        "pending": true,
        "synced_at": null
      },
      "post_url": "https://www.instagram.com/p/DHk2mQ7sLtA/"
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": ["2030-03-15 09:00"],
      "status": "PUBLISHED",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": [],
      "analytics": {
        "comments": 0,
        "likes": 0,
        "shares": 0,
        "impressions": 0,
        "quotes": null,
        "saves": 0,
        "views": 0,
        "reach": 0,
        "clicks": 0,
        "profile_visits": 0,
        "engagement_rate": null,
        "pending": true,
        "synced_at": null
      },
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/"
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PUBLISHED",
      "post_url": "https://www.instagram.com/p/DHk2mQ7sLtA/",
      "error": null,
      "fix": null
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PUBLISHED",
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/",
      "error": null,
      "fix": null
    }
  ]
}
```

## post.partially\_published

Some accounts are live and some failed. The post's `status` is `PARTIALLY_FAILED`. The failed accounts come first in `accounts`, each with its `error` and `fix`.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "PARTIALLY_FAILED",
  "content_version": 1,
  "posted_on": ["2030-03-15 09:00"],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 09:01",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "FAILED",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": [],
      "error_message": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1."
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": ["2030-03-15 09:00"],
      "status": "PUBLISHED",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": [],
      "analytics": {
        "comments": 0,
        "likes": 0,
        "shares": 0,
        "impressions": 0,
        "quotes": null,
        "saves": 0,
        "views": 0,
        "reach": 0,
        "clicks": 0,
        "profile_visits": 0,
        "engagement_rate": null,
        "pending": true,
        "synced_at": null
      },
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/"
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "FAILED",
      "post_url": null,
      "error": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1.",
      "fix": {
        "code": "media",
        "label": "Change media",
        "url": "https://app.postsyncer.com/dashboard?w=12&post=4821"
      }
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PUBLISHED",
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/",
      "error": null,
      "fix": null
    }
  ]
}
```

## post.failed

No account went live. The post's `status` is `FAILED`, and each account in `accounts` has its `error` and `fix`.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "FAILED",
  "content_version": 1,
  "posted_on": [],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 09:01",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "FAILED",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": [],
      "error_message": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1."
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": [],
      "status": "FAILED",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": [],
      "error_message": "LinkedIn ended the session. Reconnect the account to post again."
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "FAILED",
      "post_url": null,
      "error": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1.",
      "fix": {
        "code": "media",
        "label": "Change media",
        "url": "https://app.postsyncer.com/dashboard?w=12&post=4821"
      }
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "FAILED",
      "post_url": null,
      "error": "LinkedIn ended the session. Reconnect the account to post again.",
      "fix": {
        "code": "reconnect",
        "label": "Reconnect",
        "url": "https://app.postsyncer.com/accounts?w=12"
      }
    }
  ]
}
```

## post.account\_published

Sent as each account goes live. The post-level event can still arrive first. `account_id` names the account, and other accounts of the post can still be sending.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "IN_PROGRESS",
  "content_version": 1,
  "posted_on": ["2030-03-15 09:00"],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 09:00",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "IN_PROGRESS",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": [],
      "progress": null
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": ["2030-03-15 09:00"],
      "status": "PUBLISHED",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": [],
      "analytics": {
        "comments": 0,
        "likes": 0,
        "shares": 0,
        "impressions": 0,
        "quotes": null,
        "saves": 0,
        "views": 0,
        "reach": 0,
        "clicks": 0,
        "profile_visits": 0,
        "engagement_rate": null,
        "pending": true,
        "synced_at": null
      },
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/"
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "IN_PROGRESS",
      "post_url": null,
      "error": null,
      "fix": null
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PUBLISHED",
      "post_url": "https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/",
      "error": null,
      "fix": null
    }
  ],
  "account_id": 302
}
```

## post.account\_failed

Sent for each account that fails. `account_id` names the account, and its item in `accounts` has the `error` and `fix`.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "IN_PROGRESS",
  "content_version": 1,
  "posted_on": [],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 09:00",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "FAILED",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": [],
      "error_message": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1."
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": [],
      "status": "IN_PROGRESS",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": [],
      "progress": null
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "FAILED",
      "post_url": null,
      "error": "Instagram refused the image: its aspect ratio isn't supported. Use one between 4:5 and 1.91:1.",
      "fix": {
        "code": "media",
        "label": "Change media",
        "url": "https://app.postsyncer.com/dashboard?w=12&post=4821"
      }
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "IN_PROGRESS",
      "post_url": null,
      "error": null,
      "fix": null
    }
  ],
  "account_id": 301
}
```

## post.scheduled

Sent when a post is scheduled or added to the queue, and when it gets a new time while it waits there. Editing only the words of a scheduled post, or the time of a draft, sends nothing. The post's `status` is `SCHEDULED` or `IN_QUEUE`.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [
        {
          "id": 9051,
          "workspace_id": 12,
          "folder_id": null,
          "name": "latte-art.jpg",
          "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
          "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
          "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
          "mime_type": "image/jpeg",
          "size": 482113,
          "is_processing": false,
          "type": "image",
          "ai_generated_id": null,
          "is_reference": false,
          "progress": 100,
          "alt": "Latte art in a blue cup",
          "duration_seconds": null
        }
      ],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "SCHEDULED",
  "content_version": 1,
  "posted_on": [],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-01 10:24",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "PENDING",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": []
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": [],
      "status": "PENDING",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": []
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PENDING",
      "post_url": null,
      "error": null,
      "fix": null
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PENDING",
      "post_url": null,
      "error": null,
      "fix": null
    }
  ]
}
```

## post.deleted

Sent when a whole post is deleted, in the app, with the API or with MCP. Taking some accounts off a post in the app isn't a delete. `data` is only the post's `id`, `workspace_id` and `deleted_at`.

```json theme={null}
{
  "id": 4821,
  "workspace_id": 12,
  "deleted_at": "2030-03-15T10:02:11+00:00"
}
```

## post.needs\_media

Sent when AI media a post was waiting for failed, or someone stopped it, before the post went out. The media is taken off the post. A post that hadn't gone out moves to drafts and keeps its time. A post that went out and repeats stops repeating.

`stopped` tells you which happened. `reason` is the failure in words, or `The AI media for this post was stopped before it finished.` when someone stopped it.

```json expandable theme={null}
{
  "id": 4821,
  "content": [
    {
      "text": "Our spring menu starts today. The lavender oat latte is back.",
      "media": [],
      "cover_image": null,
      "is_first_comment": false,
      "first_comment_delay": null
    }
  ],
  "status": "DRAFT",
  "content_version": 1,
  "posted_on": [],
  "scheduled_at": "2030-03-15 09:00",
  "repeatable": false,
  "repeatable_times": null,
  "repeatable_gap": null,
  "repeatable_gap_unit": null,
  "repeatable_accounts": null,
  "remaining_posts": null,
  "comments_settings": null,
  "contact_collection_settings": null,
  "created_at": "2030-03-01 10:24",
  "updated_at": "2030-03-15 08:52",
  "workspace": {
    "id": 12,
    "owner_id": 7,
    "name": "Halden Coffee",
    "type": "BRAND",
    "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
    "timezone": "Europe/London",
    "queue_slot": {
      "09:00": {
        "time_24": "09:00",
        "time_12": "9:00 am",
        "days": [true, true, true, true, true, false, false]
      }
    },
    "is_auto_repost_enabled_by_default": false,
    "auto_repost_settings": {
      "repeatable_gap": 6,
      "repeatable_gap_unit": "hours",
      "repeatable_times": 2
    },
    "is_auto_plug_enabled_by_default": false,
    "auto_plug_settings": [],
    "comments_settings": {
      "remove_profanity": false,
      "remove_negativity": false,
      "remove_all_comments": false,
      "remove_custom_topics": false,
      "custom_topics_list": [],
      "remove_urls": false,
      "remove_emails": false,
      "remove_phones": false,
      "remove_mentions": false,
      "mentions_list": [],
      "remove_hashtags": false,
      "hashtags_list": [],
      "remove_keywords": false,
      "keywords_list": [],
      "ai_reply": false
    },
    "is_comment_moderation_enabled": false,
    "credits": 240
  },
  "labels": [],
  "campaign": null,
  "platforms": [
    {
      "platform": "instagram",
      "account_id": 301,
      "posted_on": [],
      "status": "PENDING",
      "settings": {
        "post_type": "POST",
        "caption": null,
        "reel_trial_enabled": false,
        "graduation_strategy": "MANUAL",
        "collaborators": []
      },
      "notes": []
    },
    {
      "platform": "linkedin",
      "account_id": 302,
      "posted_on": [],
      "status": "PENDING",
      "settings": { "visibility": "PUBLIC", "link": null, "title": null },
      "notes": []
    }
  ],
  "auto_plug": null,
  "accounts": [
    {
      "account_id": 301,
      "platform": "instagram",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PENDING",
      "post_url": null,
      "error": null,
      "fix": null
    },
    {
      "account_id": 302,
      "platform": "linkedin",
      "name": "Halden Coffee",
      "username": "haldencoffee",
      "status": "PENDING",
      "post_url": null,
      "error": null,
      "fix": null
    }
  ],
  "reason": "The AI video didn't finish.",
  "stopped": false
}
```

## posts.bulk\_removed

Sent when one API key or AI agent takes 10 or more scheduled posts off the schedule (moves them to drafts) or deletes them within an hour. It is sent once per key or agent and hour. A person working in the app doesn't cause it.

`removed.unscheduled` posts are in Drafts. `removed.deleted` posts are gone. `removed.first_at` and `removed.last_at` are the first and the last removal.

`by.surface` is `rest` (the API), `mcp` (an AI connector) or `chat` (the in-app chat). `by.client` is the agent's name, or `null` when PostSyncer doesn't know it. `by.api_key` is `{ "id", "name" }`, or `null` when the agent signed in without a key. `by.user` is the person whose key or sign-in it was, `{ "id", "name" }` or `null`.

The workspace owner and managers also get an email and an app notification, with a link that puts the posts back at their times. That link works without a sign-in, so it is not in the webhook.

```json theme={null}
{
  "removed": {
    "total": 12,
    "unscheduled": 10,
    "deleted": 2,
    "first_at": "2030-03-14T16:05:12+00:00",
    "last_at": "2030-03-14T16:21:40+00:00"
  },
  "by": {
    "surface": "mcp",
    "client": "Cursor",
    "api_key": { "id": 31, "name": "Content agent" },
    "user": { "id": 7, "name": "Maya Ortiz" }
  }
}
```

## approval.requested

Sent when a post is sent for review. `actor` is who sent it. `post` has the same fields as [Get a post](https://docs.postsyncer.com/api-reference/posts/get.md), and its `status` is `PENDING_APPROVAL`.

```json expandable theme={null}
{
  "post": {
    "id": 4821,
    "content": [
      {
        "text": "Our spring menu starts today. The lavender oat latte is back.",
        "media": [
          {
            "id": 9051,
            "workspace_id": 12,
            "folder_id": null,
            "name": "latte-art.jpg",
            "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
            "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
            "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
            "mime_type": "image/jpeg",
            "size": 482113,
            "is_processing": false,
            "type": "image",
            "ai_generated_id": null,
            "is_reference": false,
            "progress": 100,
            "alt": "Latte art in a blue cup",
            "duration_seconds": null
          }
        ],
        "cover_image": null,
        "is_first_comment": false,
        "first_comment_delay": null
      }
    ],
    "status": "PENDING_APPROVAL",
    "content_version": 1,
    "posted_on": [],
    "scheduled_at": "2030-03-15 09:00",
    "repeatable": false,
    "repeatable_times": null,
    "repeatable_gap": null,
    "repeatable_gap_unit": null,
    "repeatable_accounts": null,
    "remaining_posts": null,
    "comments_settings": null,
    "contact_collection_settings": null,
    "created_at": "2030-03-01 10:24",
    "updated_at": "2030-03-10 14:30",
    "workspace": {
      "id": 12,
      "owner_id": 7,
      "name": "Halden Coffee",
      "type": "BRAND",
      "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
      "timezone": "Europe/London",
      "queue_slot": {
        "09:00": {
          "time_24": "09:00",
          "time_12": "9:00 am",
          "days": [true, true, true, true, true, false, false]
        }
      },
      "is_auto_repost_enabled_by_default": false,
      "auto_repost_settings": {
        "repeatable_gap": 6,
        "repeatable_gap_unit": "hours",
        "repeatable_times": 2
      },
      "is_auto_plug_enabled_by_default": false,
      "auto_plug_settings": [],
      "comments_settings": {
        "remove_profanity": false,
        "remove_negativity": false,
        "remove_all_comments": false,
        "remove_custom_topics": false,
        "custom_topics_list": [],
        "remove_urls": false,
        "remove_emails": false,
        "remove_phones": false,
        "remove_mentions": false,
        "mentions_list": [],
        "remove_hashtags": false,
        "hashtags_list": [],
        "remove_keywords": false,
        "keywords_list": [],
        "ai_reply": false
      },
      "is_comment_moderation_enabled": false,
      "credits": 240
    },
    "labels": [],
    "campaign": null,
    "platforms": [
      {
        "platform": "instagram",
        "account_id": 301,
        "posted_on": [],
        "status": "PENDING",
        "settings": {
          "post_type": "POST",
          "caption": null,
          "reel_trial_enabled": false,
          "graduation_strategy": "MANUAL",
          "collaborators": []
        },
        "notes": []
      },
      {
        "platform": "linkedin",
        "account_id": 302,
        "posted_on": [],
        "status": "PENDING",
        "settings": { "visibility": "PUBLIC", "link": null, "title": null },
        "notes": []
      }
    ],
    "auto_plug": null
  },
  "actor": { "id": 9, "name": "Sam Rivera" }
}
```

## approval.approved

Sent when a post is approved. `actor` is who approved it. The post moves on as the approval chose: scheduled, published or kept as a draft.

```json expandable theme={null}
{
  "post": {
    "id": 4821,
    "content": [
      {
        "text": "Our spring menu starts today. The lavender oat latte is back.",
        "media": [
          {
            "id": 9051,
            "workspace_id": 12,
            "folder_id": null,
            "name": "latte-art.jpg",
            "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
            "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
            "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
            "mime_type": "image/jpeg",
            "size": 482113,
            "is_processing": false,
            "type": "image",
            "ai_generated_id": null,
            "is_reference": false,
            "progress": 100,
            "alt": "Latte art in a blue cup",
            "duration_seconds": null
          }
        ],
        "cover_image": null,
        "is_first_comment": false,
        "first_comment_delay": null
      }
    ],
    "status": "SCHEDULED",
    "content_version": 1,
    "posted_on": [],
    "scheduled_at": "2030-03-15 09:00",
    "repeatable": false,
    "repeatable_times": null,
    "repeatable_gap": null,
    "repeatable_gap_unit": null,
    "repeatable_accounts": null,
    "remaining_posts": null,
    "comments_settings": null,
    "contact_collection_settings": null,
    "created_at": "2030-03-01 10:24",
    "updated_at": "2030-03-11 08:15",
    "workspace": {
      "id": 12,
      "owner_id": 7,
      "name": "Halden Coffee",
      "type": "BRAND",
      "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
      "timezone": "Europe/London",
      "queue_slot": {
        "09:00": {
          "time_24": "09:00",
          "time_12": "9:00 am",
          "days": [true, true, true, true, true, false, false]
        }
      },
      "is_auto_repost_enabled_by_default": false,
      "auto_repost_settings": {
        "repeatable_gap": 6,
        "repeatable_gap_unit": "hours",
        "repeatable_times": 2
      },
      "is_auto_plug_enabled_by_default": false,
      "auto_plug_settings": [],
      "comments_settings": {
        "remove_profanity": false,
        "remove_negativity": false,
        "remove_all_comments": false,
        "remove_custom_topics": false,
        "custom_topics_list": [],
        "remove_urls": false,
        "remove_emails": false,
        "remove_phones": false,
        "remove_mentions": false,
        "mentions_list": [],
        "remove_hashtags": false,
        "hashtags_list": [],
        "remove_keywords": false,
        "keywords_list": [],
        "ai_reply": false
      },
      "is_comment_moderation_enabled": false,
      "credits": 240
    },
    "labels": [],
    "campaign": null,
    "platforms": [
      {
        "platform": "instagram",
        "account_id": 301,
        "posted_on": [],
        "status": "PENDING",
        "settings": {
          "post_type": "POST",
          "caption": null,
          "reel_trial_enabled": false,
          "graduation_strategy": "MANUAL",
          "collaborators": []
        },
        "notes": []
      },
      {
        "platform": "linkedin",
        "account_id": 302,
        "posted_on": [],
        "status": "PENDING",
        "settings": { "visibility": "PUBLIC", "link": null, "title": null },
        "notes": []
      }
    ],
    "auto_plug": null
  },
  "actor": { "id": 7, "name": "Maya Ortiz" }
}
```

## approval.rejected

Sent when a post is rejected. `actor` is who rejected it, and `reason` is what they wrote, or `null`.

```json expandable theme={null}
{
  "post": {
    "id": 4821,
    "content": [
      {
        "text": "Our spring menu starts today. The lavender oat latte is back.",
        "media": [
          {
            "id": 9051,
            "workspace_id": 12,
            "folder_id": null,
            "name": "latte-art.jpg",
            "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
            "thumb_url": "https://cdn.postsyncer.com/examples/latte-art-thumb.jpg",
            "medium_url": "https://cdn.postsyncer.com/examples/latte-art-medium.jpg",
            "mime_type": "image/jpeg",
            "size": 482113,
            "is_processing": false,
            "type": "image",
            "ai_generated_id": null,
            "is_reference": false,
            "progress": 100,
            "alt": "Latte art in a blue cup",
            "duration_seconds": null
          }
        ],
        "cover_image": null,
        "is_first_comment": false,
        "first_comment_delay": null
      }
    ],
    "status": "REJECTED",
    "content_version": 1,
    "posted_on": [],
    "scheduled_at": "2030-03-15 09:00",
    "repeatable": false,
    "repeatable_times": null,
    "repeatable_gap": null,
    "repeatable_gap_unit": null,
    "repeatable_accounts": null,
    "remaining_posts": null,
    "comments_settings": null,
    "contact_collection_settings": null,
    "created_at": "2030-03-01 10:24",
    "updated_at": "2030-03-11 08:15",
    "workspace": {
      "id": 12,
      "owner_id": 7,
      "name": "Halden Coffee",
      "type": "BRAND",
      "logo": "https://cdn.postsyncer.com/examples/halden-coffee-logo.png",
      "timezone": "Europe/London",
      "queue_slot": {
        "09:00": {
          "time_24": "09:00",
          "time_12": "9:00 am",
          "days": [true, true, true, true, true, false, false]
        }
      },
      "is_auto_repost_enabled_by_default": false,
      "auto_repost_settings": {
        "repeatable_gap": 6,
        "repeatable_gap_unit": "hours",
        "repeatable_times": 2
      },
      "is_auto_plug_enabled_by_default": false,
      "auto_plug_settings": [],
      "comments_settings": {
        "remove_profanity": false,
        "remove_negativity": false,
        "remove_all_comments": false,
        "remove_custom_topics": false,
        "custom_topics_list": [],
        "remove_urls": false,
        "remove_emails": false,
        "remove_phones": false,
        "remove_mentions": false,
        "mentions_list": [],
        "remove_hashtags": false,
        "hashtags_list": [],
        "remove_keywords": false,
        "keywords_list": [],
        "ai_reply": false
      },
      "is_comment_moderation_enabled": false,
      "credits": 240
    },
    "labels": [],
    "campaign": null,
    "platforms": [
      {
        "platform": "instagram",
        "account_id": 301,
        "posted_on": [],
        "status": "PENDING",
        "settings": {
          "post_type": "POST",
          "caption": null,
          "reel_trial_enabled": false,
          "graduation_strategy": "MANUAL",
          "collaborators": []
        },
        "notes": []
      },
      {
        "platform": "linkedin",
        "account_id": 302,
        "posted_on": [],
        "status": "PENDING",
        "settings": { "visibility": "PUBLIC", "link": null, "title": null },
        "notes": []
      }
    ],
    "auto_plug": null
  },
  "actor": { "id": 7, "name": "Maya Ortiz" },
  "reason": "Use the spring logo."
}
```

## account.needs\_reconnect

Sent when an account has to be connected again before it can post. `reason` is why, in words, or `null` when PostSyncer doesn't know. [Create a connect link](https://docs.postsyncer.com/api-reference/accounts/connect-link.md) gives a link to reconnect it.

```json theme={null}
{
  "account": {
    "id": 302,
    "platform": "linkedin",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "reason": "LinkedIn ended the session."
}
```

## account.expires\_soon

Sent when the sign-in of an account that can't renew it ends within 7 days, and again within 1 day. `days` is `7` or `1`, and `expires_at` is when the sign-in ends. Reconnect the account before then.

```json theme={null}
{
  "account": {
    "id": 302,
    "platform": "linkedin",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "days": 7,
  "expires_at": "2030-03-22T09:00:00+00:00"
}
```

## account.paused

Sent when the platform puts the account's publishing on hold, for example until its owner confirms their identity, or while the account is locked or suspended. Sort it out on the platform.

```json theme={null}
{
  "account": {
    "id": 301,
    "platform": "instagram",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  }
}
```

## account.connected

Sent when an account is added to the workspace. `actor` is who connected it, or `null` when PostSyncer can't tell.

```json theme={null}
{
  "account": {
    "id": 301,
    "platform": "instagram",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "actor": { "id": 7, "name": "Maya Ortiz" }
}
```

## account.disconnected

Sent when an account is removed from the workspace. `actor` is who removed it, or `null` when PostSyncer can't tell.

```json theme={null}
{
  "account": {
    "id": 301,
    "platform": "instagram",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "actor": { "id": 7, "name": "Maya Ortiz" }
}
```

## account.posts\_to\_put\_back

Sent when a profile that was disconnected is connected again to the same workspace, within 90 days, and posts the old account was on can get the new one back. Nothing changes until someone chooses, in the app or with [Put an account back on its posts](https://docs.postsyncer.com/api-reference/accounts/put-back-posts.md).

`account` is the new account. `put_back.posts` is how many posts can get it back. `put_back.scheduled_again` is how many of them the disconnect moved to drafts, which go back on the schedule. `put_back.disconnected_at` is when the profile was disconnected.

The account's published posts are linked to it again on their own, with their numbers and comments. No event is sent for that.

```json theme={null}
{
  "account": {
    "id": 306,
    "platform": "instagram",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "put_back": {
    "posts": 6,
    "scheduled_again": 4,
    "disconnected_at": "2030-03-12T17:40:03+00:00"
  }
}
```

## comment.mentioned

Sent once for each person tagged in a team comment, the comments your team writes on a post in PostSyncer. Tagging yourself sends nothing.

`actor` wrote the comment, and `mentioned` is the person tagged. `comment.parent_comment_id` is the comment it answers, or `null`. `comment.quote` is the part of the post the comment quotes, or `null`. There is no `media`.

```json theme={null}
{
  "post": { "id": 4821, "workspace_id": 12 },
  "actor": { "id": 7, "name": "Maya Ortiz" },
  "mentioned": { "id": 9, "name": "Sam Rivera" },
  "comment": {
    "id": 41,
    "parent_comment_id": null,
    "author_name": "Maya Ortiz",
    "content": "@Sam Rivera can you check the price before this goes out?",
    "quote": "The lavender oat latte is back."
  }
}
```

## comment.received

Sent when someone else comments on a published post. Your team's own comments and replies don't send it. Neither do the comments a post already had when PostSyncer first read them. There is no comment id: [list the post's comments](https://docs.postsyncer.com/api-reference/comments/list.md) to find it.

`comment.media` lists the photos, GIFs, videos and audio clips in the comment, in the order it shows them, each `{ "type", "mime_type", "url", "sensitive" }`. `type` is `image`, `video` or `audio`: the type of the file PostSyncer saved, so a video or GIF PostSyncer keeps as its still comes as `image`. `sensitive` is `true` when the network marked the picture sensitive, for example a Mastodon post marked sensitive or a Bluesky post with an adult or graphic label.

`url` is a link to PostSyncer's copy of the file. It is made with the rest of `data`, when the event is first sent, and works for about two and a half days from then (at least 59 hours). That covers every automatic retry, but a **Send again** after that sends a link that no longer works, so download the file if you want to keep it. `url` is `null` when PostSyncer couldn't make the link.

Instagram doesn't share the pictures in comments, so there `media` is `[]`, and `media_hidden_by_platform` is `true` when the comment holds a GIF, sticker or photo Instagram didn't share. Instagram sends such a comment with no text, and a webhook sends empty text as `null`, so its `content` is `null` (API v1 returns it as `""`). On Threads, a GIF in a reply with text isn't kept.

```json theme={null}
{
  "post": { "id": 4821, "workspace_id": 12 },
  "account": {
    "id": 304,
    "platform": "mastodon",
    "name": "Halden Coffee",
    "username": "haldencoffee"
  },
  "comment": {
    "author_name": "Jo",
    "content": "Mine came out like this!",
    "media": [
      {
        "type": "image",
        "mime_type": "image/jpeg",
        "url": "https://cdn.postsyncer.com/examples/latte-art.jpg",
        "sensitive": false
      }
    ],
    "media_hidden_by_platform": false
  }
}
```

## share.comment\_received

Sent when a client comments on a post through its share link. `comment.author_name` is the name they gave. There is no `media`.

```json theme={null}
{
  "post": { "id": 4821, "workspace_id": 12 },
  "comment": {
    "author_name": "Priya at Halden",
    "content": "Can we say oat milk instead of oat?"
  }
}
```

## review\.received

Sent when a new review comes in on a Google Business Profile location. The first read of a location brings in its past reviews, and those send nothing. There is no review id: [list the location's reviews](https://docs.postsyncer.com/api-reference/reviews/list.md) to find it.

`review.reviewer_name` is `null` for an anonymous review. `review.star_rating` is 1 to 5.

```json theme={null}
{
  "account": {
    "id": 305,
    "platform": "google_business",
    "name": "Halden Coffee",
    "username": null
  },
  "review": {
    "reviewer_name": "Jo",
    "star_rating": 5,
    "comment": "Best flat white in town."
  }
}
```

## media.generated

Sent when an AI image or video is ready. `media.kind` is `image` or `video`, and `media.error` is `null`.

`media.title` is the start of the prompt: its first 100 characters, followed by `...` when the prompt is longer. For an image or video made in Chat it is a neutral title instead, such as `Your Chat image is ready`, `Your Chat image was added to your post` (Chat put it into the post it was made for) or `A Chat video didn't finish`: a chat's prompt stays with the member who wrote it.

A video that took too long can still arrive after `media.generation_failed`. It is then sent as `media.generated`, at no charge.

```json theme={null}
{
  "media": {
    "kind": "video",
    "title": "A barista pours latte art into a blue cup, slow motion, morning light",
    "error": null
  }
}
```

## media.generation\_failed

Sent when an AI image or video couldn't be made. `media.error` says why, in words, or is `null`. `media.title` follows the same rules as in `media.generated`.

```json theme={null}
{
  "media": {
    "kind": "image",
    "title": "A flat lay of the spring menu on a marble table",
    "error": "The image couldn't be made. Try again with a different prompt."
  }
}
```

## brand.learned

Sent when the [brand brain](https://docs.postsyncer.com/api-reference/brand/overview.md) learns something on its own: after setup, after a newly connected account's past posts come in, and after a weekly update that learned something. It is not sent when someone asks it to learn in **Settings → Brand**.

It carries no brand text, so read the brand with [Get the brand](https://docs.postsyncer.com/api-reference/brand/get.md) to see what changed.

* `version` is the brand's version after it learned.
* `source` is `setup` (the build from the website and past posts) or `weekly` (the weekly update).
* `changes` is how many fields it changed, not counting the accounts' numbers.
* `sections` are the keys of the sections that changed, in this order: `identity`, `voice`, `look`, `accounts`, `competitors`, `learnings`, `rules`.

```json theme={null}
{
  "version": 4,
  "source": "setup",
  "changes": 6,
  "sections": ["identity", "voice", "accounts"]
}
```

## team.member\_joined

Sent when someone accepts an invitation to the workspace. `member.role` is the role they joined with: `Manager`, `Content Manager`, `Content Creator` or `Client`.

```json theme={null}
{
  "member": { "name": "Sam Rivera", "role": "Content Creator" }
}
```

## webhook.test

Sent by [Send a test event](https://docs.postsyncer.com/api-reference/webhooks/test.md), or the test button in the app, to that one endpoint. `message` is always `This is a test event from PostSyncer.`

```json theme={null}
{
  "message": "This is a test event from PostSyncer."
}
```


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