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

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

`POST /api/v1/file-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/file-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

- CreateSpacePageRequest
  - `path` string, required: Path of the new .md or .mdx file.
  - `title` string
  - `content` string: Markdown body; the page starts empty without it.

## Response `201`

Page created, only in the Files view until published

- CreatedSpacePage
  - `documentId` string, required
  - `fileNodeId` string, required
  - `path` string, required

## Other responses

- `400`: Bad request, such as a missing parent folder
- `403`: Permission is missing
- `404`: Space not found, or file not found
- `409`: Something already exists at that path

---

[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/7b303b7ddf6a?raw)
