Skip to main content
GET
/
templates
/
{templateID}
/
builds
/
{buildID}
/
logs
Get build logs
curl --request GET \
  --url https://api.e2b.app/templates/{templateID}/builds/{buildID}/logs \
  --header 'Authorization: Bearer <token>'
{
  "logs": []
}

Authorizations

Authorization
string
header
required

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

Path Parameters

templateID
string
required
buildID
string
required

Query Parameters

cursor
integer<int64>

Starting timestamp of the logs that should be returned in milliseconds

Required range: x >= 0
limit
integer<int32>
default:100

Maximum number of logs that should be returned

Required range: 0 <= x <= 100
direction
enum<string>

Direction of the logs that should be returned

Available options:
forward,
backward
level
string

Severity level for log entries (e.g. info, warn, error)

source
enum<string>

Source of the logs that should be returned

Available options:
temporary,
persistent

Response

Successfully returned the template build logs

logs
object[]
required

Build logs structured