API Reference
Get run logs
GET
/api/runs/{id}/logs
Returns full log text for completed runs. For active runs, returns a Server-Sent Events stream with log events (line data) and a final done event with {"status": "..."}.
Operation IDgetRunLogs
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Query parameters
snapshotstringIf set, forces a snapshot (full text) response even for active runs.
tailintegerReturn only the last N bytes of the log. Applies when the response would be a snapshot (completed run or snapshot=true).
Success response body
200Log content (text/plain for completed, text/event-stream for active)
Log content (text/plain for completed, text/event-stream for active)
Content typetext/plain
responsestringContent typetext/event-stream
responsestringError responses
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}