---
title: "Get a single monitor"
method: GET
path: "/api/v1/endpoints/{endpoint_id}"
tags: ["endpoints"]
---

# Get a single monitor

`GET /api/v1/endpoints/{endpoint_id}`

## Request

- Base URL: `https://monit.rs`
- URL: `https://monit.rs/api/v1/endpoints/{endpoint_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `endpoint_id` string, uuid, required

## Response `200`

Successful Response

- EndpointDetail
  - `id` string, uuid, required
  - `name` string, required
  - `url` string, required
  - `method` string, required
  - `interval_seconds` integer, required
  - `is_active` boolean, required
  - `config_version` integer
  - `monitoring_mode` string
  - `heartbeat_url` string, nullable
  - `response_capture` string
  - `last_status` string, nullable, required
  - `last_checked_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `headers` object, nullable
  - `body_template` string, nullable
  - `has_auth` boolean
  - `openapi_spec_url` string, nullable
  - `body_assertions` object[]: Assertions checked against the JSON response body on each probe. A failing assertion marks the endpoint DOWN.
    - `path` string, required
    - `op` 'contains' | 'empty' | 'equals' | 'exists' | 'gt' | 'gte' | 'lt' | 'lte' | 'not_contains' | 'not_empty' | 'not_equals' | 'not_exists', required
    - `value` unknown

## Other responses

- `404`: Not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/monit/apis/monit-rs-public-api.md) · [All operations](https://skmtc.dev/monit/apis/monit-rs-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monit/apis/monit-rs-public-api/revisions/7e1923981112?raw)
