---
title: "Times of the week a device's playlist shows nothing scheduled"
method: GET
path: "/api/devices/{device_id}/coverage"
tags: ["Devices"]
---

# Times of the week a device's playlist shows nothing scheduled

`GET /api/devices/{device_id}/coverage`

## Request

- Base URL: `https://trmnl.com`
- URL: `https://trmnl.com/api/devices/{device_id}/coverage`
- Auth: HTTP bearer

Windows carry minutes since midnight in the account timezone, end inclusive.

## Path parameters

- `device_id` integer, required

## Response `200`

The gaps in the schedule

- object
  - `data` object
    - `gaps` object[]
      - `week_days` integer[]: 0 is Sunday through 6 is Saturday
      - `covered` array[]: [start_minute, end_minute] windows the playlist shows
        - integer[]
      - `uncovered` array[]: [start_minute, end_minute] windows nothing is scheduled
        - integer[]
    - `period_count` integer: How many uncovered windows across the week

## Other responses

- `401`: Unauthorized
- `404`: Device belongs to another user

---

[API](https://skmtc.dev/trmnl/apis/trmnl-api.md) · [All operations](https://skmtc.dev/trmnl/apis/trmnl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trmnl/apis/trmnl-api/revisions/66179e6d663b?raw)
