---
title: "Test Log Drain"
method: POST
path: "/log-drains/{drain_id}/test"
tags: ["Log drains"]
---

# Test Log Drain

`POST /log-drains/{drain_id}/test`

## Request

- Base URL: `https://api.hedra.com/v3`
- URL: `https://api.hedra.com/v3/log-drains/{drain_id}/test`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

## Path parameters

- `drain_id` string, required: The drain's id (`drain_<uuid>`).

## Response `200`

Successful Response

- LogDrainTestResponse
  - `ok` boolean, required: Whether the test batch got a 2xx from the endpoint.
  - `response_status` integer, nullable: HTTP status the endpoint returned; null when the request never got a response.
  - `error` string, nullable: Why the test failed; null on success.

## Other responses

- `400`: Invalid or failed-validation request.
- `401`: Authentication failed: missing, malformed, or invalid credentials.
- `403`: Insufficient scope or plan.
- `404`: Resource not found.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-10-16** `06692d16e78a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hedra-labs/apis/hedra-api/changes/log-drains/:drain_id/test/post.md)

---

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