---
title: "Export a space as a multi-file Agent Skill"
method: GET
path: "/spaces/{id}/skill"
---

# Export a space as a multi-file Agent Skill

`GET /spaces/{id}/skill`

## Request

- Base URL: `https://api.spacecontext.app/v1`
- URL: `https://api.spacecontext.app/v1/spaces/{id}/skill`
- Auth: HTTP bearer

Returns the files of a ready-to-use skill built from the current document, exactly as this key may read it: a redacted document gives a redacted skill. `SKILL.md` is a short static guide; the knowledge is in `references/` and `space.json`, which an agent opens only when needed. A key without `spaces:sensitive` gets 409 `ENRICHMENT_PENDING` until the deep pass has screened the analysis.

## Path parameters

- `id` string, required

## Query parameters

- `include` 'transcript'
- `enrich` 'auto' | 'none'

## Response `200`

Skill bundle

- SkillBundle
  - `object` 'skill', required
  - `name` string, required
  - `space_id` string, required
  - `scan_id` string, required
  - `files` SkillFile[], required
    - `path` string, required
    - `media_type` 'text/markdown' | 'application/json', required
    - `content` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response
- `409`: Error response
- `429`: Too many requests. Retry after the number of seconds in `Retry-After`.

---

[API](https://skmtc.dev/spacecontext/apis/space-context-api.md) · [All operations](https://skmtc.dev/spacecontext/apis/space-context-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacecontext/apis/space-context-api/revisions/1dca940259b4?raw)
