Skip to main content
GET
/
orgs
/
{org_id}
/
projects
/
{project_id}
/
preview
/
logs
cURL
curl --request GET \
  --url https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/preview/logs \
  --header 'Authorization: Bearer <token>'
"<string>"
Tail of the dev server log (stdout and stderr merged) for a running preview. Project admin only. Requires query params rev (branch) and component. Optional tail caps bytes from the end (default 64 KiB, max 1 MiB). Response is text/plain; x-log-truncated is set when the tail was clipped.

Authorizations

Authorization
string
header
required

Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.

Path Parameters

org_id
string
required
project_id
string
required

Query Parameters

rev
string
required

Git branch name of the preview to read logs from (for example main).

component
enum<string>
required

Which component to fetch logs for.

Available options:
api,
ui
tail
integer<int64> | null

Max number of lines to return from the end of the log. Default 200, max 10000.

Required range: x >= 0

Response

Last N lines of the log as plain text.

The response is of type string.