v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03269339953.6 KB
Hosting: NodeJS

Get NodeJS build logs

Retrieve logs from a specific Node.js build process.

To stream live output while a build is running, poll this endpoint repeatedly while the build state is running, passing the previously returned lines count as from_line to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).

get/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

uuidstring uuid required
Example:123e4567-e89b-12d3-a456-426614174000

Build UUID

Query parameters

from_lineinteger nullable
Example:10

Line from which to start retrieving logs

Response

Success response

logsstring nullable required

Logs from the build process, may contain ANSI escape sequences (for colors, etc.)

linesinteger required

Number of log lines returned

Example response

{
  "logs": "added 10 packages, and audited 11 packages in 8s\n\n3 packages are looking for funding\n  run `npm fund` for details",
  "lines": 3
}