---
title: "/:channel/:commandId"
method: GET
path: "/bot/commands/{channel}/{commandId}"
tags: ["commands"]
---

# /:channel/:commandId

`GET /bot/commands/{channel}/{commandId}`

## Request

- Base URL: `https://api.streamelements.com/kappa/v2`
- URL: `https://api.streamelements.com/kappa/v2/bot/commands/{channel}/{commandId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://api.streamelements.com/oauth2/authorize`
    - Token URL: `https://api.streamelements.com/oauth2/token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/streamelements/apis/se-api-docs/docs/bot/commands/:channel/:commandId/get.ts> (a function with typed inputs; its response is checked against the schema)

Get command details

## Path parameters

- `channel` string, required
- `commandId` string, required

## Headers

- `Accept` string, required

## Response `200`

- BotCommand
  - `cooldown` Cooldown, required
    - `user` integer, required
    - `global` integer, required
  - `aliases` string[], required
  - `keywords` string[], required
  - `enabled` boolean, required
  - `enabledOnline` boolean, required
  - `enabledOffline` boolean, required
  - `hidden` boolean, required
  - `cost` integer, required
  - `type` string, required
  - `accessLevel` integer, required
  - `_id` string
  - `regex` string, required
  - `reply` string, required
  - `command` string, required
  - `channel` string, required
  - `createdAt` string
  - `updatedAt` string

## Other responses

- `400`: Bad Request

## Changes

- **2021-02-22** `51e3df32da57`: 3 breaking
  - the response property `_id` became optional for the status `200`
  - the response property `createdAt` became optional for the status `200`
  - the response property `updatedAt` became optional for the status `200`
- **2021-02-07** `6f0746f170b0`: 1 warning
  - deleted the `header` request parameter `Content-Type`
- **2021-02-07** `8c745ed2e9e4`: 11 warning
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `200`
  - the optional response header `Access-Control-Expose-Headers` removed for the status `200`
  - the optional response header `ETag` removed for the status `200`
  - the optional response header `Server` removed for the status `200`
  - …7 more

[Operation history](https://skmtc.dev/streamelements/apis/se-api-docs/changes/bot/commands/:channel/:commandId/get.md)

---

[API](https://skmtc.dev/streamelements/apis/se-api-docs.md) - [All operations](https://skmtc.dev/streamelements/apis/se-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/streamelements/apis/se-api-docs/revisions/aa13169b9373?raw)
