---
title: "Get command history"
method: GET
path: "/terminal/command_history/{hostId}"
tags: ["Terminal"]
---

# Get command history

`GET /terminal/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 request parameters.
- `500` — Failed to fetch 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)
