---
title: GET /api/v1/docs/file
description: Get File
locale: en
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/api/docs/get-docs-file/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Generated from the OpenAPI contract — do not edit by hand. Interactive explorer with full schemas: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); frozen spec for this build: [openapi.json](/developers/api/openapi.json). Group: [docs](../).
:::

Get File

: markdown content + frontmatter + resolved wikilinks.

**Auth:** `Authorization: Bearer <token>` required

## Request

```sh
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/docs/file" \
  -H "Authorization: Bearer <token>"
```

## Response `200`

The contract carries no example for this response; schema: `DocFile`. Field-level shape: [interactive explorer](https://entherium.duckdns.org:8443/reference).

## Returns

`DocFile` — Successful Response

| Field | Type | Description |
| --- | --- | --- |
| `body` | `string` |  |
| `frontmatter` | `object` |  |
| `links` | `array of WikiLink` |  |
| `path` | `string` |  |

## Parameters

| Parameter | In | Required | Type | Default | Constraints | Description |
| --- | --- | --- | --- | --- | --- | --- |
| `path` | query | yes | `string` | — | — | Relative path within vault |

## Errors

| Code | Meaning | Body |
| --- | --- | --- |
| `400` | Requested path is not a .md file | — |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |
| `403` | Path escapes the docs vault | — |
| `404` | File not found | — |
| `422` | Validation Error | `HTTPValidationError` |

Every error body is `{detail, code?, request_id, doc_url}` — `request_id` is the value to quote, `doc_url` points at the [Errors reference](../../../reference/errors/).
