---
title: "Run a health check for one service right now"
method: POST
path: "/external-services/{id}/health-check"
tags: ["External Services"]
---

# Run a health check for one service right now

`POST /external-services/{id}/health-check`

## 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-check`
- Auth: none declared

Triggers the same engine-specific probe as the background monitor, writes
a history row, updates the denormalized fields on `external_services`, and
fires alerts on the Nth consecutive failure (so consecutive-failure state
stays honest). Returns the fresh snapshot the UI can display immediately.

## Path parameters

- `id` integer, required

## Response `200`

Fresh health snapshot after probing

- 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
- `503`: Health monitor not running on this node

## 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-check/post.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)
