---
title: "Read one file from a draft"
method: GET
path: "/v1/skill-drafts/{draft_id}/files/content"
tags: ["skill-drafts"]
---

# Read one file from a draft

`GET /v1/skill-drafts/{draft_id}/files/content`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/skill-drafts/{draft_id}/files/content`
- Auth: HTTP bearer

The text of one file in your own draft, addressed by its exact bundle-relative path. A file whose bytes are not text (a binary asset from an uploaded package) is refused rather than mangled — download the original package for those.

## Path parameters

- `draft_id` string, uuid, required

## Query parameters

- `path` string, required

## Headers

- `X-Tenant-Id` string, nullable

## Response `200`

Successful Response

- DraftFileContent: One file's text, returned to the draft's author only.
  - `path` string, required
  - `kind` string, required
  - `content` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: Not found
- `422`: Validation error

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
