Run a command in a process
Run a single command inside a running application process (container) and return its output. This is a non-interactive alternative to the WebSocket terminal: one command runs, and its stdout, stderr, and exit code are returned. The command runs directly without a shell, so pipes, redirects, and command chaining do not apply.
This endpoint requires at least read access to the application. A key with only read access can run read-only commands (such as ls, cat, env, ps, grep); a request to run any other command is rejected with a 403. A key with write access to the application can run any command. Note that the read-only restriction is a convenience to prevent accidental changes, not a security sandbox: read-only commands can still read environment variables and files inside the container.
Documentation Index
Fetch the complete documentation index at: https://api-docs.sevalla.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Application identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Process identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Body
Command to run, given as an argument vector where the first element is the binary and the rest are its arguments (for example ["ls", "-la", "/app"]). The command is run directly, not through a shell, so shell features like pipes, redirects, globbing, and chaining with ; or && are not available. Run those as separate calls instead. API keys with only read access to the application can run read-only commands (such as ls, cat, env, ps, grep); keys with write access can run any command.
1 - 100 elements["ls", "-la", "/app"]
Maximum time in seconds to wait for the command to finish before it is aborted. Defaults to 15 seconds.
1 <= x <= 6015
Response
Default Response
Standard output produced by the command.
"total 8\ndrwxr-xr-x 2 app app 4096 Jan 1 00:00 .\n"
Standard error produced by the command.
""
Exit code returned by the command. 0 means success; any other value means the command failed.
-9007199254740991 <= x <= 90071992547409910