---
title: "Create a page of your own"
description: "A new page that is yours alone, empty until you save code to it."
canonical: "https://grid82.com/docs/app-api/my/pages-create"
updated: "2026-11-13"
---

# Create a page of your own

`POST https://your-suite.grid82.app/your-app/v1/pages`

A new page that is yours alone, empty until you save code to it.

> **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}.grid82.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).

Refused unless one of your roles may build pages.

Requires the `pages:write` scope. Operation `my.pages.create`. MCP tool `my_pages_create`. CLI: `grid82 my pages create` (`npx grid82`).

## 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 60 characters. |
| `tableId` | string | no       | Up to 64 characters. |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**201**: Success

- `data` (`object`, required)
- `data.id` (`string`, required, length: `1–64 chars`)
- `data.name` (`string`, required, length: `1–120 chars`)
- `data.kind` (`enum<string>`, required, one of: `declarative, code`)
- `data.mode` (`enum<string>`, required, one of: `locked, template, canvas`)
- `data.owner` (`enum<string>`, required, one of: `admin, user`)
- `data.ownerUserId` (`string`, length: `≤ 64 chars`)
- `data.tableId` (`string`, pattern: `^[a-z][a-z0-9_]{0,62}$`)
- `data.forkedFrom` (`string`, length: `≤ 64 chars`)
- `data.visibleTo` (`string | string[]`, required, default: `*`)
- `data.reads` (`object`)
- `data.reads.tables` (`string[]`, required, default: `[]`)
- `data.reads.fields` (`string[]`, required, default: `[]`)
- `data.reads.views` (`string[]`, required, default: `[]`)
- `data.bundleHash` (`string`, length: `≤ 128 chars`)
- `data.publishedVersion` (`integer`, range: `≥ 1`)
- `data.theme` (`object`)
- `data.theme.accent` (`string`, pattern: `^(?:#[0-9a-fA-F]{3,8}|oklch\([0-9.%\s/]{1,60}\))$`)
- `data.theme.radius` (`number`, range: `0–24`)
- `data.document` (`object`)
- `data.version` (`integer`, required, default: `1`, range: `≥ 1`)
- `data.updatedAt` (`string`, required)

```json
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "kind": "declarative",
    "mode": "locked",
    "owner": "admin",
    "ownerUserId": "<string>",
    "tableId": "<string>",
    "forkedFrom": "<string>",
    "visibleTo": "*",
    "reads": {
      "tables": [],
      "fields": [],
      "views": []
    },
    "bundleHash": "<string>",
    "publishedVersion": 123,
    "theme": {
      "accent": "<string>",
      "radius": 123.45
    },
    "document": null,
    "version": 1,
    "updatedAt": "<string>"
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request POST \
  --url 'https://your-suite.grid82.app/your-app/v1/pages' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
```
