cURL
Previews
Preview Logs
Tail the last N lines of a running preview component’s dev server log (stdout+stderr merged). Admin only. Logs disappear when the preview exits.
GET
cURL
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
Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.
Query Parameters
Git branch name of the preview to read logs from (for example main).
Which component to fetch logs for.
Available options:
api, ui Max number of lines to return from the end of the log. Default 200, max 10000.
Required range:
x >= 0Response
Last N lines of the log as plain text.
The response is of type string.