Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Launch API
  4. Server Logs

Server Logs

markdownView as Markdown

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

GEThttps://launch-api.contentstack.com/projects/{project_uid}/environments/{environment_uid}/deployments/{deployment_uid}/logs/server-logs

The 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.

Sample Response
Status|200 OK
12345678910111213141516171819202122
{
  "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\"]"
  }
}
Hide Parameters

URL Parameters

project_uidrequiredstring

Enter the project_uid of the project where the environments belong.

environment_uidrequiredstring

Enter the environment_uid of the environment associated with your deployment.

deployment_uidrequiredstring

Enter the deployment_uid for the deployment whose server logs you want to retrieve.

Query Parameters

sortDirectionoptionalstring

Direction to traverse from the window: desc (default) walks toward older logs, asc toward newer logs. The response itself is always oldest-first.

sourceoptionalstring

Restrict results to one source: edge-logs (Edge Functions) or origin (SSR and Cloud Functions).

limitoptionalstring

Maximum number of logs to return, as an integer. Values outside 1 to 5000 are clamped; the default is 5000.

cursoroptionalstring

Opaque cursor taken from pageInfo.oldestCursor or pageInfo.newestCursor of a previous response (or from a log's own cursor). Pair it with the matching sortDirection: oldestCursor with desc, newestCursor with asc. Do not parse or construct it.

searchoptionalstring

Free-text search over the log message, up to 256 characters.

endTimerequiredstring

Provide the ending time value in numeric string

startTimerequiredstring

Provide the starting time value in numeric string

Headers

authorizationoptionalstring

Use a bearer token to authenticate if you're not using the authtoken header. Format: Bearer <token>. If provided, the organization_uid header isn't required.

authtokenoptionalstring

Use an authentication token if the Authorization header isn't provided. **Requires the organization_uid header.** When using authtoken authentication, you must explicitly provide the organization_uid header. The organization_uid cannot be derived from project_uid for Launch REST APIs.

x-cs-api-versionoptionalstring

Enter the API version. Default is 1.0

organization_uidoptionalstring

⚠️ **REQUIRED when using authtoken authentication** - you must explicitly provide this header. Optional with Authorization Bearer token (organization_uid can be derived from the token).