---
title: "Create a new key page"
method: POST
path: "/key-pages"
tags: ["KeyPage"]
---

# Create a new key page

`POST /key-pages`

Create a new key page with the given parameters

## Request body

- KeyPage
  - `dateCreated` string, date-time — Date and time a key page is created
  - `id` integer — Unique Id of the key page
  - `matchType` string — Matching type for the given key page
  - `modificationDate` string, date-time — Date and time a key page is modified
  - `name` string, required — Name of the key page
  - `relativeUrlRegExp` string — Regular expression for the relative URL
  - `secondMatchType` string — Second matching type for the given key page (if needed)
  - `siteId` integer — Site Id of the project the key page belongs to
  - `totalCount` integer — Number of impressions for the key page

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api.md) · [All operations](https://skmtc.net/kameleoon/apis/openapi-definition-for-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kameleoon/openapi-definition-for-automation-api/versions/09f2abcea0b5/schema)
