sandboxes

Sandbox logs (v2)

Changed on

Get sandbox logs

get/v2/sandboxes/{sandboxID}/logs

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/v2/sandboxes/{sandboxID}/logs
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer and API key in header X-Team-ID
    • or API key in header X-Admin-Token and API key in header X-Team-ID
    • or HTTP bearer and API key in header X-Team-ID

Path parameters

sandboxIDstring required

Query parameters

cursorinteger

Starting timestamp of the logs that should be returned in milliseconds

limitinteger

Maximum number of logs that should be returned

direction'forward' | 'backward'

Direction of the logs that should be returned

level'debug' | 'info' | 'warn' | 'error'

State of the sandbox

Minimum log level to return. Logs below this level are excluded

searchstring

Case-sensitive substring match on log message content

Response

Successfully returned the sandbox logs

Changes