Deployments
Get container logs
Returns the runtime stdout/stderr from the container that powers a deployment.
When to use
Call this after a deployment reaches ready status to inspect what the app is printing at runtime. Also useful when a container exits unexpectedly — the last output is retained.
Availability
Logs are streamed directly from the worker. If the worker is unreachable or the container has been removed (e.g. deployment is expired or stopped), containerLog will be an empty string.
Tail
Use the tail query parameter to limit how many lines are returned (1–1000). Defaults to 300.
get/api/v1/deployments/{id}/container-logs
Request
- Base URL: https://previewdrop.dev
- URL: https://previewdrop.dev/api/v1/deployments/{id}/container-logs
- Auth: HTTP bearer
Path parameters
idstring uuid required
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890
UUID of the deployment.
Query parameters
tailinteger
Number of log lines to return from the end of the log (1–1000). Defaults to 300.
Response
OK
Example response
{
"containerLog": "Server listening on port 3000\nGET / 200 12ms\n",
"status": "ready"
}Changes
No recorded changes to this operation across all 1 revision of this API.