GET
/
v1
/
devboxes
/
{id}
/
logs
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const devboxLogsListView = await client.devboxes.logs.list('id');

  console.log(devboxLogsListView.logs);
}

main();
{
  "logs": [
    {
      "cmd_id": "<string>",
      "level": "<string>",
      "timestamp_ms": 123,
      "shell_name": "<string>",
      "cmd": "<string>",
      "message": "<string>",
      "exit_code": 123,
      "source": "setup_commands"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The Devbox ID.

Query Parameters

execution_id
string

ID of execution to filter logs by.

shell_name
string

Shell Name to filter logs by.

Response

200
application/json
OK
logs
object[]
required

List of logs for the given devbox.