Stream serverless worker logs
Stream a Runpod Serverless worker’s logs in real time as Server-Sent Events, with resumable reconnects via Last-Event-ID.
Authorizations
Runpod API key authentication. Generate an API key in the Runpod console and send it in the Authorization header as Bearer <api_key>. Keys are scoped to the permissions granted when created; requests may return 403 when a valid key lacks access to the requested resource or action.
Console sessions (Clerk JWTs) act for the signed-in user. To act for a team instead, also send X-Team-Id: <team_id>; it applies only when the user owns or belongs to that team, otherwise the request runs against the user's own account. API keys created inside a team already act for that team and do not need the header.
Headers
Path Parameters
Query Parameters
Response
Worker log event stream
Server-Sent Events stream. Each event includes an id: line and a JSON data: payload with source, line, and ts fields.