---
title: "Create page type"
method: POST
path: "/page-types"
tags: ["Page Types"]
---

# Create page type

`POST /page-types`

## Request

- Base URL: `https://api.distill.io/v2`
- URL: `https://api.distill.io/v2/page-types`
- Auth: one of:
  - API key in cookie `connect.sid`
  - HTTP bearer
  - API key in query parameter `api_key`

Auth: Enterprise+Admin — Enterprise plan account with admin role on the workspace.

## Request body

- object
  - `name` string, required
  - `domain_name` string, required
  - `match_type` 'regex' | 'exact'
  - `regex` string, required
  - `ts` string, date-time

## Response `200`

Success

- object
  - `id` string, uuid, required
  - `name` string, required
  - `domain_name` string, required
  - `match_type` string
  - `regex` string, required
  - `ts` string, date-time, required
  - `ts_mod` string, date-time

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/distill/apis/distill-io-api-v2.md) - [All operations](https://skmtc.dev/distill/apis/distill-io-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/distill/apis/distill-io-api-v2/revisions/c55722ccfe14?raw)
