Sandboxes

Stream a command's stdout/stderr as `application/x-ndjson` (`@vercel/sandbox`-compatible). Each line is either `{stream:"stdout"|"stderr", data:"..."}` or `{stream:"error", data:{code, message}}`.

Changed on
get/v1/sandboxes/{id}/cmd/{cmd_id}/logs

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idstring required
cmd_idstring required

Response

NDJSON stream of log events

Changes