---
title: "Get uptime history for a monitor"
method: GET
path: "/monitors/{monitor_id}/uptime"
tags: ["Status Page"]
---

# Get uptime history for a monitor

`GET /monitors/{monitor_id}/uptime`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/monitors/{monitor_id}/uptime`
- Auth: HTTP bearer

## Path parameters

- `monitor_id` integer, required

## Query parameters

- `days` integer
- `start_time` string
- `end_time` string

## Response `200`

Successfully retrieved uptime history

- UptimeHistoryResponse
  - `monitor_id` integer, required
  - `truncated` boolean, required: The range held more checks than one response returns, so the oldest are left out. Ask for a shorter range to see them.
  - `uptime_data` UptimeDataPoint[], required
    - `error_message` string, nullable
    - `response_time_ms` integer, nullable
    - `status` string, required
    - `timestamp` string, date-time, required

## Other responses

- `400`: Invalid time parameters
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Monitor not found
- `500`: Internal server error

## Changes

- **2026-11-03** `0add2fdd114a`: 1 info
  - added the required property `truncated` to the response with the `200` status
- **2026-11-03** `fcfcfae25744`: 1 breaking
  - removed the required property `truncated` from the response with the `200` status
- **2026-11-03** `af07888c38c0`: 1 info
  - added the required property `truncated` to the response with the `200` status
- **2026-09-07** `9e48d4ac62f9`: 2 info
  - the `query` request parameter `end_time` became optional
  - the `query` request parameter `start_time` became optional
- **2026-09-07** `f7404eb7ac98`: 2 breaking
  - the `query` request parameter `end_time` became required
  - the `query` request parameter `start_time` became required

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/monitors/:monitor_id/uptime/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
