---
title: "Plain-text download of a beyt range"
method: GET
path: "/api/range.txt"
tags: ["rest"]
---

# Plain-text download of a beyt range

`GET /api/range.txt`

## Request

- Base URL: `https://masnavi.ai`
- URL: `https://masnavi.ai/api/range.txt`
- Auth: none declared

Returns the same content as /api/range but formatted as a human-readable plain-text document. Pass ?download=1 to receive as a downloadable .txt attachment instead of inline.

## Query parameters

- `start` string, nullable
- `end` string, nullable
- `start_global` integer, nullable
- `end_global` integer, nullable
- `download` integer: 1 = attach as file

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/masnavi/apis/masnavi-ai.md) · [All operations](https://skmtc.dev/masnavi/apis/masnavi-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/masnavi/apis/masnavi-ai/revisions/2622163d327c?raw)
