---
title: "Trigger Drain"
method: POST
path: "/internal/drain"
---

# Trigger Drain

`POST /internal/drain`

## Request

- Base URL: `https://api.hedra.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hedra.com/internal/drain`
- Auth: none declared

preStop drain trigger: requires the shared DRAIN_TOKEN and a loopback
peer; idempotent. 404 on any failure (it takes the pod out of rotation, so
we don't confirm the endpoint to unauthorized callers).

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/hedra/apis/hedra-api.md) - [All operations](https://skmtc.dev/hedra/apis/hedra-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hedra/apis/hedra-api/revisions/2796ada789f7?raw)
