---
title: "Get command history"
method: GET
path: "/host/command-history/{hostId}"
tags: ["SSH"]
---

# Get command history

`GET /host/command-history/{hostId}`

Retrieves the command history for a specific host.

## Path parameters

- `hostId` integer, required

## Response `200`

A list of commands.

## Other responses

- `400` — Invalid userId or hostId.
- `500` — Failed to fetch command history.

---

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