---
title: "Persisted health status for an external service"
method: GET
path: "/external-services/{id}/health-status"
tags: ["External Services"]
---

# Persisted health status for an external service

`GET /external-services/{id}/health-status`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/external-services/{id}/health-status`
- Auth: none declared

Returns the latest health probe result recorded by
`ExternalServiceHealthMonitor`, plus recent check history for sparklines
and a 24-hour uptime percentage. Safe to poll from the UI every 30s.

## Path parameters

- `id` integer, required

## Query parameters

- `limit` integer

## Response `200`

Current health + recent history

- ServiceHealthResponse
  - `consecutive_failures` integer, required: Consecutive failed probes. Alert fires at 3.
  - `down_alert` ServiceDownAlertResponse, nullable: Alerting state for a service whose health checks keep failing.
    - `alarm_fired_at` string, nullable: ISO 8601 time the alarm fired.
    - `alarm_id` integer, nullable: The open down alarm, or `null` if none was raised (e.g. the alarm could not be recorded, or it was resolved while checks still fail).
    - `alarm_status` string, nullable: `firing` or `acknowledged`.
    - `alert_severity` string, required: Severity the down alarm is raised at (e.g. `critical`).
    - `notification_destinations` integer, nullable: How many notification destinations *currently* receive alerts of `alert_severity`: enabled providers on enabled routes covering it, plus Temps Cloud. This is today's configuration, not a record of who received this alarm — Temps does not track per-alarm delivery. `null` when it could not be determined.
    - `notification_setup_path` string, required: Console path where notification destinations are configured.
    - `silenced_until` string, nullable: ISO 8601 time until which the alarm's notifications are muted, when that time is still in the future.
  - `last_checked_at` string, nullable
  - `last_error` string, nullable
  - `recent_checks` HealthCheckEntryResponse[], required: Most recent checks, newest-first (capped at `limit`).
    - `checked_at` string, required: ISO 8601 timestamp of when the probe ran.
    - `error_message` string, nullable: Present only when the probe failed or was degraded.
    - `response_time_ms` integer, nullable: TCP connect latency in milliseconds.
    - `status` string, required: "operational" | "degraded" | "down"
  - `response_time_ms` integer, nullable
  - `service_id` integer, required
  - `status` string, nullable: Current health. `null` if the service has not been probed yet.
  - `uptime_24h_percent` number, double, nullable: Uptime percentage over the last 24 hours (0.0 — 100.0). `null` when there is not enough history.

## Other responses

- `404`: Service not found
- `500`: Internal server error

## Changes

- **2026-10-08** `c026cead1518`: 1 info
  - added the optional property `down_alert` to the response with the `200` status
- **2026-05-30** `b72341d12f63`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/external-services/:id/health-status/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)
