---
title: "Export skill tree"
method: GET
path: "/skills/{slug}/export"
tags: ["Skills"]
---

# Export skill tree

`GET /skills/{slug}/export`

## Request

- Base URL: `https://api.case.dev`
- URL: `https://api.case.dev/skills/{slug}/export`
- Auth: HTTP bearer

Export a skill as an installable filesystem tree for sandbox runtimes. Authenticated org-scoped custom skills are resolved before curated skills. Slugs of merged skills are permanent aliases: they export the surviving skill (slug, root and files describe the target) with `redirected_from` set to the requested slug.

## Path parameters

- `slug` string, required

## Query parameters

- `target` string

## Response `200`

Installable skill tree

- object
  - `slug` string
  - `target` string
  - `root` string
  - `source` 'custom' | 'curated'
  - `redirected_from` string: Present only when the requested slug is a permanent alias of a merged skill. Holds the requested slug; slug, root and files describe the target skill.
  - `files` object[]
    - `path` string
    - `content` string
    - `content_type` string
    - `encoding` 'utf8' | 'base64': Encoding of content. Binary files use canonical base64.
    - `sha256` string
    - `size_bytes` integer

## Other responses

- `400`: Missing slug or unsupported target
- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Skill not found

## Changes

- **2026-10-16** `a21d188f4b21`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casemark/apis/case-dev-api/changes/skills/:slug/export/get.md)

---

[API](https://skmtc.dev/casemark/apis/case-dev-api.md) - [All operations](https://skmtc.dev/casemark/apis/case-dev-api/llms.txt) - [OpenAPI document](https://skmtc.dev/casemark/apis/case-dev-api/revisions/9a3245c00044?raw)
