---
title: "List drifted workspaces."
method: GET
path: "/reports/environments/{environment}/drifted-workspaces"
tags: ["drifted-workspaces"]
---

# List drifted workspaces.

`GET /reports/environments/{environment}/drifted-workspaces`

This endpoint lists drifted workspaces.

## Path parameters

- `environment` string, required

## Query parameters

- `filter[status]` string
- `filter[is-drifted]` boolean
- `filter[tag]` string
- `filter[last-check-at]` string
- `query` string
- `page[number]` string
- `page[size]` string
- `sort` string[]
- `format` string

## Response `200`

Success.

- DriftedWorkspaceFieldsetsListingDocument — Document Listing.
  - `data` DriftedWorkspace[]
    - `drift-report-id` string — The ID of the drift report associated with the workspace.
    - `drifted-resources-count` integer, nullable — The number of the drifted resources in the workspace.
    - `environment-id` string — The ID of the environment.
    - `environment-name` string — The name of the environment.
    - `last-check-at` string, date-time, nullable — The time when the last check was performed.
    - `next-check-at` string, date-time — The time when the next check will be performed.
    - `status` 'pending' | 'errored' | 'in_progress' | 'no_drift_detected' | 'awaiting_manual_action' | 'discarded' | 'accept_state' | 'reset_state' — The status of the drift report.
    - `workspace-id` string — The ID of the workspace.
    - `workspace-name` string — The name of the workspace.
  - `included` object[]
  - `links` object
  - `meta` object

## Other responses

- `403` — User unauthorized to perform this action.
- `4XX` — Client error.
- `5XX` — Server error.

---

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