---
title: "Get available slash commands"
method: GET
path: "/slash-commands"
tags: ["Sessions"]
---

# Get available slash commands

`GET /slash-commands`

Retrieve slash commands available in the specified working directory

## Query parameters

- `working_dir` string, required
- `query` string

## Response `200`

List of slash commands

- SlashCommandsResponse
  - `data` SlashCommand[], required
    - `name` string, required — Command name including slash prefix
    - `source` 'local' | 'global', required — Source of the command - local (repo) or global (user home)

## Other responses

- `400` — Bad request
- `500` — Internal server error

## Changes

- **2025-10-16** `4a8d1a8ffaa6` — 1 breaking, 1 warning
  - added the new required `query` request parameter `working_dir`
  - deleted the `query` request parameter `session_id`
- **2025-10-06** `5b4cf7cbb947` — 1 info
  - endpoint added
- **2025-08-05** `f3a20bfa8bea` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/changes/slash-commands/get.md)

---

[API](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api.md) · [All operations](https://skmtc.dev/humanlayer/apis/humanlayer-daemon-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humanlayer/humanlayer-daemon-rest-api/revisions/02da8cb8aa12/schema)
