---
title: "Read a skill file"
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: AI Gateway API › Skills

`GET /skills/{skill_id}/files/{file_path}`

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `skill_id` (`read_skill_file.path.skill_id`; string, required)
  - format `uuid`
- `file_path` (`read_skill_file.path.file_path`; string, required) — Path in the skill folder, e.g. `references/method.md`.

## Header parameters

- `X-On-Behalf-Of` (`read_skill_file.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`read_skill_file.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`
- `X-App-Id` (`read_skill_file.header.X-App-Id`; any of, optional)
  - any of: `string`, `null`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://truememory-api.mvstg.com/skills/<skill_id>/files/<file_path>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/skills/<skill_id>/files/<file_path>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-api.mvstg.com/skills/<skill_id>/files/<file_path>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The file's bytes.

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`read_skill_file.response.422.detail`; array<object>, optional)
  - `loc` (`read_skill_file.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`read_skill_file.response.422.detail.msg`; string, required)
  - `type` (`read_skill_file.response.422.detail.type`; string, required)
  - `input` (`read_skill_file.response.422.detail.input`; unknown, optional)
  - `ctx` (`read_skill_file.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/api/skills/files/get/index.md
