---
title: "Create an alert rule"
method: POST
path: "/v1/watchlists"
tags: ["watchlists"]
---

# Create an alert rule

`POST /v1/watchlists`

## Request

- Base URL: `https://stablescan.achivx.com`
- URL: `https://stablescan.achivx.com/v1/watchlists`
- Auth: HTTP bearer

A write that times out answers 503 timeout without Retry-After — check its effect before repeating it.

## Request body

- object

## Response `201`

The rule as stored.

- AlertRule
  - `category` string, required
  - `chain_id` integer, required
  - `chains` integer[], nullable
  - `created_at` string, required
  - `direction` string, required
  - `enabled` boolean, required
  - `exchanges` string[], nullable
  - `flow` string, required
  - `id` string, required
  - `include_internal` boolean
  - `min_amount` integer, nullable
  - `severity` string, required
  - `subject` string
  - `subject_type` string, required
  - `threshold` number, nullable
  - `tokens` string[], nullable
  - `updated_at` string, required
  - `webhook_url` string, required

## Other responses

- `400`: The one error envelope. Branch on `error.code`, not on the status.
- `401`: The one error envelope. Branch on `error.code`, not on the status.
- `429`: The per-IP token bucket (20 requests/second, burst 40) is empty — wait `Retry-After`.
- `500`: The one error envelope. Branch on `error.code`, not on the status.
- `503`: The one error envelope. Branch on `error.code`, not on the status.

---

[API](https://skmtc.dev/achivx/apis/stablecoin-scanner-rest-api.md) · [All operations](https://skmtc.dev/achivx/apis/stablecoin-scanner-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/achivx/apis/stablecoin-scanner-rest-api/revisions/cbd001c8925c?raw)
