Deployments
Preview

Stream a pod's logs

Server-sent events, one `line` event per log line (`{"time","container","text"}`) and an `end` event when the stream closes. The operator reads the logs as the deployment's service account and relays them over its stream path (a signed logs-open command, then StreamData), the same path exec uses. A

GET
/deployments/{deploymentId}/pods/{clusterId}/{pod}/logs
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
clusterId*string
Formatuuid
pod*string
Lengthlength <= 253
container?string
Lengthlength <= 253
sinceSeconds?integer
Range1 <= value <= 86400
follow?boolean
Defaultfalse
tailLines?integer
Range1 <= value <= 10000

Response Body

The log stream.

response?stringtext/event-stream
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pods/497f6eca-6276-4993-bfeb-53cbbbba6f08/string/logs'
Example Response
"string"