---
title: "List Mender deployments recorded for a device"
method: GET
path: "/v1/edge/devices/{id}/deployments"
tags: ["Edge Devices"]
---

# List Mender deployments recorded for a device

`GET /v1/edge/devices/{id}/deployments`

## Request

- Base URL: `https://api.hify.club`
- URL: `https://api.hify.club/v1/edge/devices/{id}/deployments`
- Auth: API key in header `X-User-Token`

Returns deployments newest first, including status polled from Mender.

## Response `200`

Deployments for the device

- DeviceDeployment[]
  - `id` integer
  - `device_id` integer
  - `kind` 'config' | 'code'
  - `source` 'bootstrap' | 'manual' | 'automatic'
  - `artifact_name` string, nullable
  - `mender_deployment_id` string, nullable
  - `status` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/hify/apis/hify-apis.md) - [All operations](https://skmtc.dev/hify/apis/hify-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/hify/apis/hify-apis/revisions/b5920403538d?raw)
