---
title: "Create command"
method: POST
path: "/commands"
tags: ["product:chat"]
---

# Create command

`POST /commands`

Creates custom chat command

## Request body

- CreateCommandRequest, nullable — Create a new command
  - `args` string — Arguments help text, shown in commands auto-completion
  - `description` string, required — Description, shown in commands auto-completion
  - `name` string, required — Unique command name
  - `set` string — Set name used for grouping commands

## Response `201`

CreateCommandResponse

- CreateCommandResponse, nullable
  - `command` Command, nullable — Represents custom chat command
    - `args` string, required — Arguments help text, shown in commands auto-completion
    - `created_at` string, date-time — Date/time of creation
    - `description` string, required — Description, shown in commands auto-completion
    - `name` string, required — Unique command name
    - `set` string, required — Set name used for grouping commands
    - `updated_at` string, date-time — Date/time of the last update
  - `duration` string, required

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/3dba86aaa0d8/schema)
