---
title: "Watchdog Mark Endpoint"
method: POST
path: "/internal/mark-endpoint-unhealthy"
---

# Watchdog Mark Endpoint

`POST /internal/mark-endpoint-unhealthy`

## Request

- Base URL: `https://api.nkq.vn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.nkq.vn/internal/mark-endpoint-unhealthy`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nkq/apis/antigravity-ai-proxy/docs/internal/mark-endpoint-unhealthy/post.ts> (a function with typed inputs; its response is checked against the schema)

Watchdog endpoint — warmer call vào khi detect upstream down.

Body: {"url": "https://api.minimax.io/anthropic", "duration_sec": 60, "reason": "warmer_unreachable"}
Headers: x-watchdog-token: <secret>

Mark endpoint unhealthy IMMEDIATELY → proxy bypass khách KHÔNG dính 504.
Nếu ≥ WATCHDOG_EMERGENCY_THRESHOLD endpoints unhealthy gần đây → activate emergency mode.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/nkq/apis/antigravity-ai-proxy.md) - [All operations](https://skmtc.dev/nkq/apis/antigravity-ai-proxy/llms.txt) - [OpenAPI document](https://skmtc.dev/nkq/apis/antigravity-ai-proxy/revisions/58a38b92d2d5?raw)
