---
title: "List a skill's files"
description: "Every file besides SKILL.md, with its size and hash; no contents."
---

> 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`

Every file besides SKILL.md, with its size and hash; no contents.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `skill_id` (`list_skill_files.path.skill_id`; string, required)
  - format `uuid`

## Header parameters

- `X-On-Behalf-Of` (`list_skill_files.header.X-On-Behalf-Of`; any of, optional)
  - any of: `string`, `null`
- `X-External-User-Id` (`list_skill_files.header.X-External-User-Id`; any of, optional)
  - any of: `string`, `null`
- `X-App-Id` (`list_skill_files.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' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-api.mvstg.com/skills/<skill_id>/files';
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"

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

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

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "files": [
    {
      "path": "string",
      "sha256": "string",
      "size": 0,
      "content_type": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
```

- `files` (`list_skill_files.response.200.files`; array<object>, required)
  - `path` (`list_skill_files.response.200.files.path`; string, required) — Path in the skill folder, e.g. `references/method.md`.
  - `sha256` (`list_skill_files.response.200.files.sha256`; string, required) — Hex SHA-256 of the file's bytes.
  - `size` (`list_skill_files.response.200.files.size`; integer, required) — Size in bytes.
  - `content_type` (`list_skill_files.response.200.files.content_type`; string, required)
  - `created_at` (`list_skill_files.response.200.files.created_at`; string, required)
    - format `date-time`
  - `updated_at` (`list_skill_files.response.200.files.updated_at`; string, required) — When this path last got different bytes.
    - format `date-time`

### 422

Validation Error

#### Example

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

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


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