---
title: "Add a page"
description: "Creates the page's definition: name, mode, the groups that see it, optionally the table it is about."
canonical: "https://gtable.app/docs/builder-api/pages/create"
updated: "2026-10-05"
---

# Add a page

`POST https://studio.gtable.app/v1/apps/{appId}/pages`

Creates the page's definition: name, mode, the groups that see it, optionally the table it is about.

It has no code yet, save a version with `pages.code.set`, or ask the assistant to draft one.

Requires the `pages:write` scope. Operation `pages.create`. MCP tool `pages_create`. CLI, once published: `gtable pages create`.

## Path parameters

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

## Headers

| Name              | Type   | Required | Description                                                                                                                                                                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Idempotency-Key` | string | no       | Any unique string. Sending the same key with the same request again returns the first response (marked `Idempotency-Replayed: true`) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |

## Request body

| Field       | Type                    | Required | Description           |
| ----------- | ----------------------- | -------- | --------------------- |
| `name`      | string                  | yes      | Up to 120 characters. |
| `kind`      | "declarative" or "code" | no       | Default `"code"`.     |
| `mode`      | "locked" or "template"  | no       | Default `"locked"`.   |
| `tableId`   | string                  | no       | Up to 64 characters.  |
| `visibleTo` | "\*" or string\[]       | no       | Default `"*"`.        |
