---
title: "Download a skill folder"
description: "The skill as a zip that the Claude and OpenAI Skills APIs accept: SKILL.md\nwith the agentskills.io frontmatter fields, and every 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}/export`

The skill as a zip that the Claude and OpenAI Skills APIs accept: SKILL.md
with the agentskills.io frontmatter fields, and every file.

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

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

## Header parameters

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

The skill folder as a zip.

### 422

Validation Error

#### Example

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

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


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