---
title: "Create a new page"
method: POST
path: "/pages"
---

# Create a new page

`POST /pages`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/pages`
- Auth: HTTP basic

Creates a new page.

## Request body

- PageCreate
  - `title` string, required: The name/title of the page.
  - `slug` string: The URL slug for the page (without domain).
  - `metaTitle` string: The title tag for the page.
  - `metaKeywords` string: The meta keywords for the page.
  - `metaDescription` string: The meta description for the page.
  - `content` string: The content for the page.
  - `customContent` string: Additional content for the page.

## Response `201`

Page created successfully.

- Page
  - `id` integer: Unique identifier for the page.
  - `createdAt` string, date-time: Timestamp when the page was created.
  - `title` string: The name/title of the page.
  - `slug` string: The URL slug for the page.
  - `url` string: The full URL for the page.
  - `metaTitle` string: The title tag for the page.
  - `metaKeywords` string: The meta keywords for the page.
  - `metaDescription` string: The meta description for the page.

## Other responses

- `400`: Invalid request data.
- `401`: Unauthorized. Invalid or missing API key.
- `500`: Server error.

---

[API](https://skmtc.dev/ecommerceapi/apis/website-pages.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/website-pages/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/website-pages/revisions/bf3bc3622f22?raw)
