---
title: "POST /api/v1/docs-views/{spaceId}/pages"
method: POST
path: "/api/v1/docs-views/{spaceId}/pages"
---

# POST /api/v1/docs-views/{spaceId}/pages

`POST /api/v1/docs-views/{spaceId}/pages`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/docs-views/{spaceId}/pages`
- Auth: none declared

## Path parameters

- `spaceId` integer, required: Space id, from GET /spaces.

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- CreateDocsViewPageRequest
  - `title` string, required
  - `content` string: Markdown body; the page starts empty without it.
  - `parentNavItemId` integer: Container or page to place it under; the top level by default.
  - `position` 'start' | 'end': Where among its siblings it lands; end by default.

## Response `201`

Page created, with its file

- CreatedDocsViewPage
  - `navItemId` integer, required
  - `documentId` string, required
  - `path` string, nullable, required: The file created for it in the Files view.
  - `url` string, required

## Other responses

- `400`: Bad request
- `403`: Permission is missing
- `404`: Space or item not found, or the Space has neither a docs site nor two-way sync

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/c00420511526?raw)
