---
title: "Download endpoint logs as plain text (kubectl-style) [READ]"
method: GET
path: "/v3/endpoint/{namespace}/{name}/logs/download"
tags: ["Endpoints"]
---

# Download endpoint logs as plain text (kubectl-style) [READ]

`GET /v3/endpoint/{namespace}/{name}/logs/download`

Streams every log line matching the filters as `text/plain; charset=utf-8`,
chronologically ascending, with no pagination. Format per line:
`<timestamp> <replica> <level> <line>` — `level` defaults to `INFO`.

Sets `Content-Disposition: attachment` so a browser downloads the response
as a file. Capped at `MAX_DOWNLOAD_LINES` for safety; narrow `since`/`until`
if you need more.

## Path parameters

- `namespace` string, required
- `name` string, required

## Query parameters

- `replica` string
- `level` string
- `search` string
- `since` string
- `until` string
- `line_max_length` integer

## Response `200`

Log lines streamed as text/plain

## Other responses

- `501` — Log search not available on this deployment

---

[API](https://skmtc.net/huggingface/apis/hf-inference-endpoints-api.md) · [All operations](https://skmtc.net/huggingface/apis/hf-inference-endpoints-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hf-inference-endpoints-api/versions/52e3f4cdbf86/schema)
