---
title: "Add an allowlist or blocklist entry"
method: POST
path: "/v1/lists"
tags: ["Lists"]
---

# Add an allowlist or blocklist entry

`POST /v1/lists`

## Request

- Base URL: `https://api.kaidn.io`
- URL: `https://api.kaidn.io/v1/lists`
- Auth: API key in header `x-api-key`

## Request body

- object
  - `list` 'allow' | 'block', required
  - `type` 'ip' | 'email' | 'device' | 'user', required
  - `value` string, required

## Response `200`

Success. Field-level shape for this endpoint is documented at https://kaidn.io/docs.

- object: Success. Field-level shape for this endpoint is documented at https://kaidn.io/docs.

## Other responses

- `400`: The request body or query string failed validation.
- `401`: Missing or invalid API key.
- `429`: Rate limit exceeded. Back off and retry.

---

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