---
title: "Analytics events"
method: POST
path: "analyticsEvents"
tags: ["Webhook Events"]
---

# Analytics events

`POST analyticsEvents` (webhook)

- `analytics.synced`: An account's metrics sync completed; `postsSynced` counts the posts whose metrics were refreshed.

Delivered as a `POST` to every active endpoint that subscribes to the event and whose profile access covers it. Delivery is at least once and events are not ordered, so deduplicate by `id`.

## Payload

- WebhookAnalyticsSyncedEvent: Envelope for `analytics.synced`.
  - `id` string, required: Event id (`evt_…`). Stable across automatic retries and manual redeliveries; deduplicate on it.
  - `type` 'analytics.synced', required
  - `apiVersion` string, required: Payload version.
  - `createdAt` string, date-time, required: When the event was created.
  - `data` WebhookAnalyticsSyncedEventData, required
    - `account` WebhookAnalyticsSyncedEventAccount, required
      - `id` string, required: PostZen account id.
      - `profileId` string, required: The account's profile.
      - `platform` 'x' | 'instagram' | 'tiktok' | 'linkedin' | 'facebook' | 'youtube' | 'threads' | 'pinterest' | 'bluesky' | 'telegram', required: Platform of the account an event refers to. Webhook payloads use `x` for X (Twitter).
      - `username` string, required: Account username on the platform.
    - `kind` 'metrics', required
    - `syncedAt` string, date-time, required: When the sync completed.
    - `postsSynced` integer, required: Number of posts whose metrics were refreshed.

## Acknowledgement `2XX`

Acknowledges the delivery. Any other status, or no response within 10 seconds, schedules a retry.

---

[API](https://skmtc.dev/postzen/apis/postzen-public-api.md) · [All operations](https://skmtc.dev/postzen/apis/postzen-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postzen/apis/postzen-public-api/revisions/40863e3710ec?raw)
