---
title: "Create a rule"
method: POST
path: "/v1/rules"
tags: ["Rules"]
---

# Create a rule

`POST /v1/rules`

## Request

- Base URL: `https://www.layercall.com`
- URL: `https://www.layercall.com/v1/rules`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Request body

- object

## Response `200`

Success

- object
  - `added` integer
  - `rules` object[]
    - `action` string
    - `created_at` string
    - `id` string
    - `kind` string
    - `value` string
  - `skipped` unknown[]
    - unknown

---

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