---
title: "Export one distilled procedure as an Agent Skill (SKILL.md)"
method: GET
path: "/api/agent/skills/{id}/export"
tags: ["Agent"]
---

# Export one distilled procedure as an Agent Skill (SKILL.md)

`GET /api/agent/skills/{id}/export`

## Request

- Base URL: `http://localhost:38200`
- URL: `http://localhost:38200/api/agent/skills/{id}/export`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `token`

T698. Filesystem export channel — the caller pulls their own tenant's rows over an authenticated HTTP GET, same trust posture as GET /api/export/markdown.

## Path parameters

- `id` integer, required

## Response `200`

Rendered skill markdown.

- object
  - `contextId` integer
  - `slug` string
  - `clusterKey` string
  - `skillMd` string

## Other responses

- `400`: id must be a positive integer.
- `401`: Missing or invalid credentials.
- `404`: Resource not found (or not visible to the caller).

---

[API](https://skmtc.dev/contextq/apis/contextq-api.md) · [All operations](https://skmtc.dev/contextq/apis/contextq-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contextq/apis/contextq-api/revisions/7afc44056a22?raw)
