---
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

---

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