WebApp
Web Apps
Fetch an application's runtime or build logs.
This function fetches an application's runtime or build logs. It returns the most recent lines from the log the container persists on disk. It returns a static tail; live streaming of new lines is not yet available.
get/WebApp/fetch_logs
Query parameters
log_type'app' | 'build' required
Example:app
The type of log to fetch.
- app — The application's runtime output (stdout and stderr).
- build — The output of the build step.
namestring required
Example:my-app
The application's unique name (slug).
deploy_idstring
Example:dp-20260612-0001
Limit the output to a specific deploy's logs. Only meaningful when log_type is build.
This parameter defaults to the most recent deploy.
linesinteger
Example:100
The maximum number of log lines to return, counted from the end of the log.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "fetch_logs",
"module": "WebApp",
"result": {
"data": {
"lines": [
"Server listening on port 3000",
"GET / 200 12ms"
]
},
"status": 1
}
}