---
title: "Create Extraction Rule"
method: POST
path: "/extraction"
tags: ["enrichment", "extraction"]
---

# Create Extraction Rule

`POST /extraction`

Create a new extraction rule

## Request body

- ExtractionRuleDtoBase
  - `name` string, required
  - `description` string
  - `priority` integer
  - `attribute` string
  - `condition` string
  - `disabled` boolean
  - `regex` string, required
  - `pre` boolean

## Response `200`

Successful Response

- ExtractionRuleDtoOut
  - `name` string, required
  - `description` string
  - `priority` integer
  - `attribute` string
  - `condition` string
  - `disabled` boolean
  - `regex` string, required
  - `pre` boolean
  - `id` integer, required
  - `created_by` string
  - `created_at` string, date-time, required
  - `updated_by` string
  - `updated_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/keephq/apis/keep-api.md) · [All operations](https://skmtc.net/keephq/apis/keep-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/keephq/keep-api/versions/bb4a0896091f/schema)
