Server Logs
Server logs capture runtime information from your deployed apps. These logs help you monitor app performance, debug runtime issues, and track server-side events for your Launch deployments.
Get Server Logs
https://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/deployments/{deployment_uid}/logs/server-logsThe Get Server Logs request fetches the server logs of a specific deployment of an environment of your project in Launch using the project_uid, environment_uid, and deployment_uid path parameters. Results are returned oldest-first regardless of sortDirection. sortDirection decides which way a cursor pages: to read older logs use the default desc and pass pageInfo.oldestCursor; to read newer logs use asc and pass pageInfo.newestCursor. Do not infer a cursor from row order. The 24-hour limit on startTime is re-applied on every request, so keep startTime well inside the last 24 hours while paging. Callers that send only startTime and endTime keep working unchanged.
{
"serverLogs": [
{
"message": " ✓ Ready in 239ms\n",
"timestamp": "2025-12-03T10:44:36.645Z",
"source": "server-logs",
"cursor": "[1764758676645,\"AZr3kQ\"]"
},
{
"message": " ▲ Next.js 15.3.1\n",
"timestamp": "2025-12-03T10:44:43.181Z",
"source": "server-logs",
"cursor": "[1764758683181,\"AZr3kR\"]"
}
],
"pageInfo": {
"hasOlder": false,
"hasNewer": null,
"oldestCursor": "[1764758676645,\"AZr3kQ\"]",
"newestCursor": "[1764758683181,\"AZr3kR\"]"
}
}