Skip to main content
GET
Get sandbox logs
Follow next_cursor until it’s null, keeping the same time range and limit. Related guide: Inspect sandbox logs.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Headers

X-Team-Id
string

Optional team ID. Must match the team_id query parameter when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

Minimum string length: 1

Path Parameters

sandbox_name
string
required

Immutable sandbox name returned by creation.

Minimum string length: 1
Example:

"baseten-api-review-0916"

Query Parameters

team_id
string

Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

Minimum string length: 1
start_time
string<date-time>
required
end_time
string<date-time>
required
limit
integer
default:100
Required range: 1 <= x <= 1000
cursor
string

Opaque next_cursor from the previous page. Omit for the first page.

Required string length: 1 - 4096

Response

A page of sandbox logs.

sandbox_name
string
required
start_time
string<date-time>
required
end_time
string<date-time>
required
logs
object[]
required
Maximum array length: 1000
next_cursor
string | null
required

Opaque cursor for the next page; null when there are no more entries.