Skip to content
Docs

get_deployment_build_logs

Get the build logs for a deployment by ID or URL, to investigate why a build failed. Returns the most recent lines by default (where build errors appear). Use errorsOnly to see just the failing lines. Omit since and until for latest logs. Use since to narrow the window, and omit until when the end should be the current time.

ParameterTypeRequiredDefaultDescription
idOrUrlstringYes-The unique identifier or hostname of the deployment.
directionstringNo"tail"Which end of the build log to return. "tail" (default) returns the most recent lines, where build errors appear. "head" returns the earliest lines. Allowed values: "tail", "head".
errorsOnlybooleanNofalseReturn only error, stderr, exit, and fatal events.
limitnumberNo100Maximum number of log lines to return.
sincestringNo-Start of the window as an ISO date or relative lookback from now (e.g. "1h", "30m").
untilstringNo-Optional end of the window as an ISO date, relative lookback, or "now". Omit this when the end should be the current time.
buildIdstringNo-Filter to a specific build ID (bld_...) for multi-build deployments.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.

Was this helpful?

supported.