Start typing to search.

API Reference

Get run logs

View Markdown
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 bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Path parameters

idintegerrequired

Resource ID

Query parameters

snapshotstring

If set, forces a snapshot (full text) response even for active runs.

tailinteger

Return 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

responsestring

Content typetext/event-stream

responsestring

Error responses

404Resource not found

Resource not found

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}