Levain LabsLevain Labs
API ReferenceRuns

Get Run Log

Get a time-limited download URL for the run's log file.

Get a time-limited download URL for the run's log file.

The log is a single plaintext file capturing the full execution timeline of the run, including messages exchanged with model providers, tools invoked, and the agent's intermediate reasoning. It is intended for debugging, traceability, and feeding back to builder agents.

Returns 404 while the run is still in progress (the file is written when the run finishes).

Not available for managed agents published by Levain — their execution internals stay private. For managed agents published by your organization, access requires an organization-scoped API key or an admin of the organization.

GET
/api/v1/runs/{run_id}/log

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

run_id*Run Id
Formatuuid

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/log"
{
  "url": "string",
  "expires_in_seconds": 0
}