---
title: "Read a page's code"
description: "The current version of a page you can open, or an earlier one by number."
canonical: "https://gtable.app/docs/app-api/my/pages-code-get"
updated: "2026-10-05"
---

# Read a page's code

`GET https://your-suite.gtable.app/your-app/v1/pages/{pageId}/code`

The current version of a page you can open, or an earlier one by number.

> **Note: Generic contract**
>
> Your own version of this operation, with your tables and the fields you can read, is in
> your app's document: `https://{suite}.gtable.app/{app}/v1/openapi.json`, behind your credential.
> [Why each person gets their own](/docs/start/studio-and-runtime#why-an-app-has-an-api-of-its-own).

Null when nothing has been saved yet.

Requires the `pages:read` scope. Operation `my.pages.code.get`. MCP tool `my_pages_code_get`. CLI, once published: `gtable my pages code get`.

## Path parameters

| Name     | Type   | Required | Description |
| -------- | ------ | -------- | ----------- |
| `pageId` | string | yes      |             |

## Query parameters

| Name      | Type    | Required | Description |
| --------- | ------- | -------- | ----------- |
| `version` | integer | no       |             |
