Skip to main content
POST
/
api
/
exec
Execute a command with multiple disks mounted
curl --request POST \
  --url https://control.green.us-east-1.aws.prod.archil.com/api/exec \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "disks": {
    "data": "dsk-abc123",
    "logs": "dsk-def456"
  },
  "command": "ls -la /mnt/archil/data /mnt/archil/logs"
}
'
{
  "success": true,
  "data": {
    "exitCode": 0,
    "stdout": "<string>",
    "stderr": "<string>",
    "timing": {
      "totalMs": 2450,
      "queueMs": 150,
      "executeMs": 2300
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.archil.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key (format key-{API_KEY})

Body

application/json
disks
object
required

Map of relative path under /mnt/archil to the disk to mount there. At least one entry is required. Relative paths must be non-empty, non-absolute, and contain no . or .. segments.

Example:
{
  "data": "dsk-abc123",
  "logs": "dsk-def456"
}
command
string
required

Shell command to execute inside the container

Example:

"ls -la /mnt/archil/data /mnt/archil/logs"

Response

Command completed

success
boolean
required
Example:

true

data
object
required