Get Application Logs
Get a point-in-time snapshot of an application’s recent stdout and stderr with GET /v2/apps//logs. For live logs, use the realtime SSE stream.
GET
Get Application Logs
string
required
The API key for your account. You can find this in your account settings.
apps:read scope.
This endpoint fetches the application’s most recent stdout/stderr buffer directly from the cluster: it is a short-lived snapshot, not a stream. stdout and stderr are returned concatenated in the order they were written, with no per-line distinction between the two, unlike the Real-time Logs event which prefixes each line with its stream id.
Use it when you need a one-off look at recent output, for example rendering the logs tab on page load or after a manual refresh button. It returns 404 when the application is offline, has never been deployed, or the cluster returns a transient error. Workspace members with access to the application can call it the same way the owner does.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
Response
string
Indicates whether the call was successful:
success if it was, error if not.object
The contents of the response.
Common errors
Related
- CLI:
squarecloud app logs - SDKs:
api.apps.logs()(JavaScript),client.apps.logs()(Python),c.Apps.Logs()(Go)

