Deployments
Get build logs
Returns the raw build log for a deployment as a single string.
When to poll logs
Poll this endpoint while status is building or deploying. The build log is also included in the main GET /api/v1/deployments/{id} response, so you only need this dedicated endpoint if you want to fetch logs without the full deployment object.
Caching
If the build worker is unreachable (e.g. the container has already been destroyed after expired or stopped), the last persisted log is returned. The log field is an empty string "" if no log is available yet.
get/api/v1/deployments/{id}/logs
Request
- Base URL: https://previewdrop.dev
- URL: https://previewdrop.dev/api/v1/deployments/{id}/logs
- Auth: HTTP bearer
Path parameters
idstring uuid required
Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890
UUID of the deployment.
Response
OK
Example response
{
"log": "[1/4] Installing dependencies...\n[2/4] Building...\nBuild succeeded.\n",
"hints": [
{
"id": "npm-err",
"title": "npm install failed",
"detail": "Package installation failed. Common causes: conflicting peer dependencies or wrong Node version."
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.