GET/applications/{uuid}/previews/{pull_request_id}/logs

Get preview application logs.

Get runtime container logs for a preview deployment by application UUID and pull request ID. Requires the read:sensitive or root token ability.

5 parameters
uuidstringrequired
UUID of the application.
pull_request_idintegerrequired
Pull request ID of the preview deployment.
linesintegeroptional
Number of lines to show from the end of the logs. Use `all` to return all logs. `-1` remains available as a compatibility alias.
Default:100
show_timestampsbooleanoptional
Show timestamps in the logs.
Default:false
service_namestringoptional
Return logs only from the container of the Docker Compose service with this name. Returns 404 when no running container matches.

5 status codes
200Preview runtime logs.
logsstringoptional
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
404Resource not found.
messagestringoptional
422Validation error.
errorsobjectoptional
messagestringoptional

Error handling

A 400 is returned: Invalid token. A 401 is returned: Unauthenticated. A 404 is returned: Resource not found. A 422 is returned: Validation error.