Analytics · Analytics

Open a tracking window

Opens a tracking window.

POSThttps://api.pozy.ai/v1/analytics/tracking
Instagram, Facebook, TikTok, YouTube, X and Threads and 5 moreopenTrackingWindow

Guides: Tracking and authenticity, Platform insights

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the analytics resource group disabled get 403 resource_group_disabled. Authentication

Request body

application/json, required

  • postIdstring
  • accountIdstring
  • urlstring
  • trackingDaysinteger

    Default 30. 1 to 90.

  • requestedBystring

    Default api.

Example

curl -X POST "https://api.pozy.ai/v1/analytics/tracking" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "postId": "6108a2cc742cb4e991051e0c",
  "accountId": "696e0b682d0a31188e7a2ba9",
  "url": "https://pozy.ai/media/example-1.jpg",
  "trackingDays": 30
}'

Response

200 on success

  • windowobjectrequired
    12 child fields
    • idstringrequired
    • postIdstringrequired
    • accountIdstringrequired
    • platformstringrequired
    • platformPostIdstringrequired
    • startsAtstring (date-time)required
    • endsAtstring (date-time)required
    • statusstringrequired

      One of open, completing, completed, cancelled.

    • finalReadAtstring (date-time)required

      Can be null.

    • completionReasonstringrequired

      One of final_read, unreachable, post_deleted, cancelled. Can be null.

    • requestedBystringrequired
    • latestobjectrequired

      Can be null.

      6 child fields
      • viewsintegerrequired
      • likesintegerrequired
      • commentsintegerrequired
      • sharesintegerrequired
      • savesintegerrequired
      • syncedAtstring (date-time)required

        Can be null.

200 response
{
  "window": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "postId": "6108a2cc742cb4e991051e0c",
    "accountId": "696e0b682d0a31188e7a2ba9",
    "platform": "instagram",
    "platformPostId": "637f799b3039e6602e83fa4f",
    "startsAt": "2026-10-02T09:00:00.000Z",
    "endsAt": "2026-10-02T09:00:00.000Z",
    "status": "open",
    "finalReadAt": "2026-10-02T09:00:00.000Z",
    "completionReason": "final_read",
    "requestedBy": "string",
    "latest": {
      "views": 1,
      "likes": 1,
      "comments": 1,
      "shares": 1,
      "saves": 1,
      "syncedAt": "2026-10-02T09:00:00.000Z"
    }
  }
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Analytics