---
title: "Collect a command's output"
method: GET
path: "/platform/deployments/{id}/cli/{run_id}"
tags: ["Platform"]
---

# Collect a command's output

`GET /platform/deployments/{id}/cli/{run_id}`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/platform/deployments/{id}/cli/{run_id}`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Returns one run with its `output` and `exit_code`. Poll until
`status` is `success` or `failed`.

`output` is on the deny list of our own request/response audit
log — a database dump never lands there — and the row is deleted
within a day.

## Path parameters

- `id` string, required
- `run_id` string, required

## Response `200`

The run, with its output once it has finished

## Other responses

- `401`: Invalid or missing API credentials
- `404`: Resource not found

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
