---
title: "Poll the status of an org's background demo-populate task."
method: GET
path: "/api/v1/organizations/{id}/populate-demo/status"
tags: ["Organizations", "internal"]
---

# Poll the status of an org's background demo-populate task.

`GET /api/v1/organizations/{id}/populate-demo/status`

## Path parameters

- `id` string, uuid, required

## Response `200`

Demo populate status

- ApiResponseDemoPopulateStatus
  - `data` union — Lifecycle of a demo-populate task. `Running` is set synchronously in the POST handler (before the `202`), then flipped to a terminal variant by the spawned task. `Failed` carries the error string so the UI can show why.
    - object
      - `started_at` string, date-time, required — When population began.
      - `state` 'running', required
    - object
      - `finished_at` string, date-time, required — When population finished.
      - `state` 'complete', required
    - object
      - `error` string, required — Why population failed.
      - `finished_at` string, date-time, required — When it gave up.
      - `state` 'failed', required
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `404` — No demo-populate task for this organization

---

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