Get page by ID

In this example, we demonstrate how to retrieve a single CMS page by its numeric ID using the OneEntry API.

✅ Purpose of the scenario:
  • Connect to the OneEntry API
  • Retrieve a page by its numeric ID
  • Access page content via localizeInfos and attributeValues
✅ What you need:
  • A valid PROJECT_URL and APP_TOKEN for authentication with the OneEntry API.
  • A page configured in OneEntry with a known numeric ID (e.g., 9)
📌 Important:
  • These examples do not include error handling.
  • You can manage errors using a try-catch block or by employing a construction like await Promise.catch((error) => error).
Loading sandbox…