Exec
Execute Command
Execute a command via simple HTTP POST (non-TTY only). Simpler alternative for exec for environments that can't handle websockets.
POST
/v1/cells/{name}/execHTTP client
Set up your HTTP client with the auth header before calling the API. Match the authentication type shown above.
const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json',
};const BASE_URL = 'https://cells-api.mudbase.dev';
const HEADERS = {
'Authorization': 'Bearer YOUR_JWT_TOKEN',
'Content-Type': 'application/json',
};Example request
Call this endpoint using the client from SDK setup. Use View HTTP for a raw cURL example.
const res = await fetch('https://cells-api.mudbase.dev/v1/cells/YOUR_NAME/exec', {
method: 'POST',
headers: HEADERS,
body: JSON.stringify({}),
});
const data = await res.json();const res = await fetch('https://cells-api.mudbase.dev/v1/cells/YOUR_NAME/exec', {
method: 'POST',
headers: HEADERS,
body: JSON.stringify({}),
});
const data = await res.json();Playground
read-onlyBuild a request example for this endpoint. Read-only: the playground does not send requests. Run the request with curl or the SDK.
No Request Yet
Send a request to see the full inspector
Authentication
Requires Bearer key
Note
Include your API key in the
Authorization: Bearer YOUR_KEY header. View authentication guide →Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | - |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cmd | string | Yes | Command to execute (can be repeated for command + args) |
path | string | No | Explicit path to executable (defaults to first `cmd` value or `bash`) |
stdin | boolean | No | Enable stdin from request body (default: `false`) |
env | string | No | Environment variables in `KEY=VALUE` format (can be repeated) |
dir | string | No | Working directory for the command |
Request Body
Raw bytes forwarded to stdin when `stdin=true`. Empty or omitted when stdin is disabled.
json
{}{}Responses
200Success
400Bad Request - Invalid request body
403Forbidden: a plan allowance or the free trial credit is used up. The error name is in the body (cpu_hours_exhausted, memory_hours_exhausted, egress_limit_reached, trial_credit_exhausted or trial_expired).
json
{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}404Not Found - Resource not found
413Payload Too Large - Stdin exceeds 10 MiB
429Too Many Requests: the concurrent cell limit is reached (concurrency_limit_reached), or the request is throttled. Retry after the number of seconds in Retry-After.
json
{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}{
"error": "trial_credit_exhausted",
"message": "Stylish Keyboard designed to make you stand out with lively looks",
"limit": 25,
"used": 56276
}500Internal Server Error
503Service Unavailable: the service cannot handle the request. Retry after the number of seconds in Retry-After.
Errors
| Code | Meaning |
|---|---|
400 | Bad Request - Invalid request body |
403 | Forbidden: a plan allowance or the free trial credit is used up. The error name is in the body (cpu_hours_exhausted, memory_hours_exhausted, egress_limit_reached, trial_credit_exhausted or trial_expired). |
404 | Not Found - Resource not found |
413 | Payload Too Large - Stdin exceeds 10 MiB |
429 | Too Many Requests: the concurrent cell limit is reached (concurrency_limit_reached), or the request is throttled. Retry after the number of seconds in Retry-After. |
500 | Internal Server Error |
503 | Service Unavailable: the service cannot handle the request. Retry after the number of seconds in Retry-After. |