---
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

---

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