---
title: "Write command input"
method: POST
path: "/v1/sandboxes/{id}/execs/{exec_id}/stdin"
tags: ["Sandboxes"]
---

# Write command input

`POST /v1/sandboxes/{id}/execs/{exec_id}/stdin`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/sandboxes/{id}/execs/{exec_id}/stdin`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `exec_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- SandboxStdinRequest
  - `data` string, byte, required: Up to 64 KiB of base64 encoded input bytes. Empty data is allowed when eof is true.
  - `eof` boolean, required: Close stdin after this frame.

## Response `202`

Accepted

- SandboxStdinReceipt
  - `sequence` integer, required
  - `bytes` integer, required
  - `eof` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `default`: Error. The code, message, and fix fields describe the rejection and its remedy.

---

[API](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api.md) - [All operations](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodus-compute/apis/nodus-infrastructure-execution-api/revisions/a59210899d95?raw)
