---
title: "Read a file of a skill in a mind"
description: "One file of a skill this mind carries, for anyone who may read the mind.\n\nThe read path for someone who does not own the skill: a grantee gets the\nfile list from ``consult`` and the bytes here. The skill must be one the\nmind carries, so naming any other key is a 404 however readable that skill\nis elsewhere."
---

> 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 › Minds

`GET /minds/{mind_id}/skills/{skill_key}/files/{file_path}`

One file of a skill this mind carries, for anyone who may read the mind.

The read path for someone who does not own the skill: a grantee gets the
file list from ``consult`` and the bytes here. The skill must be one the
mind carries, so naming any other key is a 404 however readable that skill
is elsewhere.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `mind_id` (`read_mind_skill_file.path.mind_id`; string, required)
  - format `uuid`
- `skill_key` (`read_mind_skill_file.path.skill_key`; string, required)
- `file_path` (`read_mind_skill_file.path.file_path`; string, required)

## Header parameters

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

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/minds/<mind_id>/skills/<skill_key>/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/minds/<mind_id>/skills/<skill_key>/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_mind_skill_file.response.422.detail`; array<object>, optional)
  - `loc` (`read_mind_skill_file.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`read_mind_skill_file.response.422.detail.msg`; string, required)
  - `type` (`read_mind_skill_file.response.422.detail.type`; string, required)
  - `input` (`read_mind_skill_file.response.422.detail.input`; unknown, optional)
  - `ctx` (`read_mind_skill_file.response.422.detail.ctx`; object, optional)


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