> ## Documentation Index > Fetch the complete documentation index at: https://www.canva.dev/docs/apps/llms.txt > Use this file to discover all available pages before exploring further. # getCurrentPageContext API reference for the getCurrentPageContext method. Allows to get the context of currently selected page. ## Usage: Get current page information ```typescript import { getCurrentPageContext } from "@canva/design"; const pageContext = await getCurrentPageContext(); if (pageContext.dimensions) { // Do something with the page dimensions, e.g. `pageContext.dimensions.width` and `pageContext.dimensions.height` } else { // This page type does not have fixed dimensions, e.g. Whiteboard or Doc } ``` ## Returns Page context of currently selected page. This is a `Promise` that resolves with the following object: The dimensions of the page, in pixels. This may be `undefined` because some types of pages don't have dimensions, such as whiteboards. Properties of dimensions}> The width of the page, in pixels. The height of the page, in pixels. ## Permissions To use this method, the `canva:design:content:read` permission must be enabled for the app. To learn more, see [Permissions](https://www.canva.dev/docs/apps/configuring-intents-permissions/).