---
title: "Get the current drift snapshot for an app"
method: GET
path: "/drift"
tags: ["Drift"]
---

# Get the current drift snapshot for an app

`GET /drift`

## Request

- Base URL: `https://api.marboba.com/v1`
- URL: `https://api.marboba.com/v1/drift`
- Auth: HTTP bearer

Returns the most recent drift scan for the given app, including every drifted env-sync mapping. Returns `{drift: null}` if the app has never been scanned.

## Query parameters

- `appId` string, required

## Response `200`

Current drift snapshot (or null when the app has never been scanned)

- object
  - `drift` DriftCurrent: The most recent drift scan for one app.
    - `appId` string
    - `scannedAt` string, date-time, nullable
    - `scannedByUid` string, nullable
    - `summary` DriftSummary
      - `totalMappings` integer
      - `inSyncCount` integer
      - `driftedCount` integer
      - `failedCount` integer
      - `neverSyncedCount` integer
      - `staleCount` integer
    - `entries` DriftEntry[]
      - `mappingId` string, required
      - `vaultItemId` string, nullable
      - `vaultItemName` string, nullable
      - `destination` string, nullable
      - `destinationKey` string, nullable
      - `environment` string, nullable
      - `severity` 'failed' | 'never_synced' | 'stale', required
      - `lastSyncedAt` string, date-time, nullable
      - `lastSyncError` string, nullable
      - `ageHours` number, nullable

## Other responses

- `400` (unresolved $ref)

---

[API](https://skmtc.dev/marboba/apis/marboba-public-rest-api.md) · [All operations](https://skmtc.dev/marboba/apis/marboba-public-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marboba/apis/marboba-public-rest-api/revisions/5b96d525d88d?raw)
