---
title: "Create Exclusion List"
method: POST
path: "/queries/exclusion-list"
---

# Create Exclusion List

`POST /queries/exclusion-list`

Create a new exclusion list from a list of domains.

## Request body

- CreateExclusionListRequest — Request model for creating an exclusion list.
  - `query_name` string, required — Name for the exclusion list
  - `domains` string[], nullable — List of domains for the exclusion list
  - `persona_ids` integer[], nullable — List of persona IDs for the exclusion list
  - `tags` string[] — Tags to apply to the exclusion list (max 20 tags, each 2-50 chars, alphanumeric/hyphen/underscore)

## Response `200`

Successful Response

- QuerySaveResponse — Response model for saving/creating queries and exclusion lists.
  - `query_id` string, required
  - `query_name` string, nullable
  - `action` string, nullable
  - `domain_count` integer, nullable
  - `persona_id_count` integer, nullable
  - `row_count` integer, nullable
  - `tags` string[], nullable
  - `message` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-18** `6b838ca10add` — 2 info
  - added the optional property `action` to the response with the `200` status
  - added the optional property `row_count` to the response with the `200` status

[Change history](https://skmtc.dev/discolike/apis/discolike-api/changes/queries/exclusion-list/post.md)

---

[API](https://skmtc.dev/discolike/apis/discolike-api.md) · [All operations](https://skmtc.dev/discolike/apis/discolike-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discolike/discolike-api/revisions/11d1e74d88c7/schema)
