Skip to main content
POST
Run command

Authorizations

Authorization
string
header
required

Organization or personal API key from Settings → API Keys.

Headers

X-Replicas-Api-Version
enum<string>

API version. 2026-10-07 returns snake_case responses. See versioning.

Available options:
2026-10-07

Path Parameters

id
string<uuid>
required

Replica ID

Body

application/json
command
string
required

Shell command, run in the workspace root

timeout_seconds
integer
default:30
Required range: 1 <= x <= 50

Response

Success

output
string
required

Combined stdout and stderr, last 64 KB

exit_code
integer | null
required

null when the command timed out

timed_out
boolean
required
truncated
boolean
required