---
title: "Set Filter"
method: POST
path: "/watch_filters/add"
tags: ["filter"]
---

# Set Filter

`POST /watch_filters/add`

## Request

- Base URL: `https://api.watchdata.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.watchdata.io/watch_filters/add`
- Auth: none declared

## Request body

- AddFilterIn
  - `address` string, required
  - `contract_address` string, nullable
  - `with_approval` boolean, nullable

## Response `200`

Successful Response

- AddFilterOut
  - `filter_id` string, required

## Other responses

- `422`: Validation Error

---

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