---
title: "Returns the audience inactivity sync with the given id."
method: GET
path: "/audience/inactivity-sync/{syncId}"
tags: ["Audience"]
---

# Returns the audience inactivity sync with the given id.

`GET /audience/inactivity-sync/{syncId}`

## Path parameters

- `syncId` string, required

## Response `200`

OK

- GetAudienceInactivitySyncByIdEndpointOutput
  - `id` string, required — The unique identifier of the inactivity sync.
  - `audienceId` string, required — The audience this inactivity sync belongs to.
  - `state` 'Pending' | 'Processing' | 'Completed' | 'Failed' | 'Aborted', required
  - `phase` 'MarkingInactiveUsers' | 'Finalizing' | 'Done', required
  - `cutoff` string, date-time, required — The cutoff captured at run creation time. Users with last_seen_at older than this are marked inactive.
  - `lastProcessedUserId` string, nullable — The id of the last user that was processed (progress cursor).
  - `processedCount` integer, required — The number of users processed so far.
  - `changedCount` integer, required — The number of users whose state was changed by the sync.
  - `errorMessage` string, nullable — Error message populated when the sync transitioned to Failed.
  - `startedAt` string, date-time, nullable — When the sync began processing (null while still Pending).
  - `lastHeartbeatAt` string, date-time, nullable — Timestamp of the last heartbeat received from the worker.
  - `completedAt` string, date-time, nullable — When the sync reached a terminal state (Completed, Failed, Aborted).
  - `createdAt` string, date-time, required — When the sync was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/versions/e42ec51c7b88/schema)
