> ## Documentation Index
> Fetch the complete documentation index at: https://docs.custral.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pages

> Create document, presentation, whiteboard and spreadsheet pages.

A **page** sits in a section of the workspace sidebar. Create one with
`POST /v1/pages`, giving a `sectionId` from `GET /v1/sections` (or a
`parentId` to nest it under another page). Name neither and it goes in the key
creator's Private pages, which is also where it lands in a workspace with no
sections. It starts empty and ready to edit:
the response's `documentId` is what you read and write its contents by.

| `type` | Edit its contents with |
| - | - |
| `document` | [`/v1/documents/{id}`](https://docs.custral.com/dev/api-reference/documents) |
| `presentation` | [`/v1/presentations/{id}`](https://docs.custral.com/dev/api-reference/presentations) |
| `whiteboard` | [`/v1/whiteboards/{id}`](https://docs.custral.com/dev/api-reference/whiteboards) |
| `spreadsheet` | [`/v1/spreadsheets/{id}`](https://docs.custral.com/dev/api-reference/spreadsheets) |

```json The Page object theme={null}
{
  "id": "page_3Ab9xK2mQ7",
  "name": "Q3 plan",
  "type": "whiteboard",
  "sectionId": "sect_3Ab9xK2mQ1",
  "parentId": null,
  "private": false,
  "documentId": "page_3Ab9xK2mQ7"
}
```

> [!NOTE]
>
> Creating a page needs the `documents:write` scope, and Can edit on the section or page it goes in. Listing sections
> needs `documents:read`.

```ts SDK theme={null}
const [section] = await custral.pages.sections();
const page = await custral.pages.create({name: "Q3 plan", type: "whiteboard", sectionId: section.id});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.