---
title: "List Slash Commands"
method: GET
path: "/api/slash-commands"
---

# List Slash Commands

`GET /api/slash-commands`

## Response `200`

Successful Response

- SlashCommandListResponse
  - `commands` SlashCommandResponse[], required
    - `description` string, required
    - `name` string, required
    - `prompt` string, required
    - `syncTargets` SlashSyncEntryResponse[], required
      - `error` string, nullable
      - `path` string, required
      - `status` 'synced' | 'removed' | 'not_selected' | 'blocked_manual_file' | 'blocked_modified_file' | 'missing' | 'drifted' | 'failed', required
      - `target` 'opencode' | 'claude' | 'cursor' | 'codex', required
  - `defaultTargets` string[], required
  - `reviewCommands` SlashCommandReviewResponse[], required
    - `actions` string[], required
    - `canImport` boolean, required
    - `commandExists` boolean, required
    - `description` string, required
    - `error` string, nullable
    - `kind` 'unmanaged' | 'drifted' | 'missing', required
    - `name` string, required
    - `path` string, required
    - `prompt` string, required
    - `reviewRef` string, required
    - `target` 'opencode' | 'claude' | 'cursor' | 'codex', required
    - `targetLabel` string, required
  - `storePath` string, required
  - `syncStatePath` string, required
  - `targets` SlashTargetResponse[], required
    - `available` boolean, required
    - `defaultSelected` boolean, required
    - `docsUrl` string, required
    - `enabled` boolean, required
    - `fileGlob` string, required
    - `id` 'opencode' | 'claude' | 'cursor' | 'codex', required
    - `invocationPrefix` string, required
    - `label` string, required
    - `outputDir` string, required
    - `renderFormat` 'frontmatter_markdown' | 'cursor_plaintext', required
    - `rootPath` string, required
    - `scope` 'global' | 'project', required
    - `supportNote` string, nullable
    - `supportsFrontmatter` boolean, required

## Changes

- **2026-04-29** `2073c669fff2` — 3 warning, 10 info
  - added the new `blocked_modified_file` enum value to the `commands/items/syncTargets/items/status` response property for the response status `200`
  - added the new `drifted` enum value to the `commands/items/syncTargets/items/status` response property for the response status `200`
  - added the new `missing` enum value to the `commands/items/syncTargets/items/status` response property for the response status `200`
  - added the optional property `targets/items/supportNote` to the response with the `200` status
  - …9 more
- **2026-04-29** `7710f75fad0f` — 1 info
  - endpoint added
- **2026-04-17** `a9787ab8c53c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/mode-io/apis/skill-manager/changes/api/slash-commands/get.md)

---

[API](https://skmtc.dev/mode-io/apis/skill-manager.md) · [All operations](https://skmtc.dev/mode-io/apis/skill-manager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mode-io/skill-manager/revisions/774e8a3f5f7e/schema)
