---
title: "Create a page"
method: POST
path: "/papi/project/{projectId}/pages"
tags: ["Pages"]
---

# Create a page

`POST /papi/project/{projectId}/pages`

## Request

- Base URL: `https://api.websitepublisher.ai`
- URL: `https://api.websitepublisher.ai/papi/project/{projectId}/pages`
- Auth: OAuth 2 (authorization code, authorization URL `https://api.websitepublisher.ai/dapi/oauth/authorize`, token URL `https://api.websitepublisher.ai/dapi/oauth/token`, scopes: `read`, `write`)

Create HTML page. Use index.htm for homepage.

## Path parameters

- `projectId` integer, required

## Request body

- Page
  - `slug` string, required: URL path like about.htm
  - `content` string, required: Complete HTML with DOCTYPE
  - `meta` PageMeta
    - `title` string
    - `landingpage` boolean: True for homepage
    - `language` string
  - `seo` PageSeo
    - `title` string
    - `description` string
    - `keywords` string
    - `robots_index` boolean: Allow search engines to index this page. Default: false (noindex). Set to true to appear in Google.
    - `robots_follow` boolean: Allow search engines to follow links on this page. Default: false.

## Response `201`

Created

---

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