Read bounded runtime logs
GET https://repopack.com/api/v0/projects/<key>/apps/<app>/logs?tail=100
Authorization: Bearer <token>
This reads the current deployment's container stdout/stderr without starting or redeploying anything. With app.read, select an optional unit name and deployment number; a task App instead requires app.preview and visibility of its task. tail defaults to 100 and accepts 1–10,000; invalid selectors return 400. The JSON response contains app, unit, deployment, runtime_status, timestamps, logs and truncated; a one-shot read is truncated at roughly 4 million characters. A missing unit/deployment is 404, a removed container returns 410 app_runtime_logs_unavailable, and runtime read failure 502 app_runtime_logs_failed.
Set follow=true to receive SSE events runtime_logs_metadata, runtime_log, and a terminal runtime_logs_end or error event. Follow ends within 30 minutes or on container exit, removal, token revocation or lost project/task access; it is not an infinite durable log archive. The stream rechecks access while open. Logs may contain secrets; redact them before sharing. See deployment events for build/status events, which are separate from runtime output.