Skip to main content
POST
See the liquidation alerts guide for the message formats and how to verify a webhook signature, and Warn users before liquidation for position risk alerts.

Authorizations

Authorization
string
header
required

Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.

Body

application/json
telegram_chat
string

A Telegram chat instead of url: a public @channel or group name, or a numeric chat id (groups and channels start with -100). The bot named in setup must be in the chat (in a channel, as an admin that can post).

Example:

"@my_liquidations"

url
string

Where to post: https://discord.com/api/webhooks/..., https://hooks.slack.com/services/... or any public HTTPS URL (port 443 or 8443). Required unless telegram_chat is set.

Example:

"https://discord.com/api/webhooks/123/abc"

name
string

Shown in the message title.

Maximum string length: 80
Example:

"BTC and ETH longs"

markets

Markets to watch: symbols or Hyperliquid coin names, as a list or a comma-separated string (at most 50). Omit for every market.

Example:
side
enum<string>
default:any

The liquidated position: long means longs were liquidated.

Available options:
any,
long,
short
min_usd
number
default:0

Smallest liquidation to report, in USD.

Required range: x >= 0
Example:

100000

address
string

Only this wallet's liquidations.

Example:

"0xabc0000000000000000000000000000000000001"

signal
enum<string>

position_risk (Explorer and up): warn when a position of one of addresses gets within threshold_pct of its liquidation price, and when that wallet is liquidated (see above). The others, Pro and Enterprise: follow an edge signal instead of liquidations. liquidation_pressure posts each call (a market side entering high pressure; side long = longs at risk, min_usd = least notional at risk); opening_bell posts the 09:29 New York preview of the HIP-3 stock perps in markets (all when omitted); flow_ahead posts each new TWAP with at least $250,000 left to execute (side long = buy TWAPs, short = sell TWAPs, min_usd = least USD left); flow posts each Flow alert event of GET /v1/signals/flow on markets (all when omitted; side long = bids and buy TWAPs, short = asks and sell TWAPs, min_usd = least USD of the event); sweep posts each sweep of GET /v1/signals/sweep on markets (side long = takers buying, short = takers selling, min_usd = least USD swept). At most one message a minute and 20 an hour per edge signal alert. No address filter. Other plans get 403 PLAN_REQUIRED.

Available options:
liquidation_pressure,
opening_bell,
flow_ahead,
flow,
sweep,
position_risk
addresses

position_risk only: the wallets to watch, as a list or a comma-separated string. Their count over all of the account's position risk alerts is limited by plan (Explorer 10, Builder 200, Pro 1,000).

Example:
threshold_pct
number
default:10

position_risk only: warn when mark is within this percent of the liquidation price.

Required range: 1 <= x <= 50
Example:

10

Response

Alert created. signing_secret appears only here, and only for webhooks.

id
string<uuid>
name
string
type
enum<string>

email: an alert set with POST /v1/alerts/email; it emails the account's address once, then switches off.

Available options:
webhook,
discord,
slack,
telegram,
email
destination
string

Host of the URL, without its secret part, the Telegram chat, or the email address.

Example:

"discord.com/…"

markets
string[]

Empty: every market.

Example:
side
enum<string>
Available options:
any,
long,
short
min_usd
number
Example:

100000

address
string
signal
enum<string>

Set on an edge signal or position risk alert; absent on a liquidation alert.

Available options:
liquidation_pressure,
opening_bell,
flow_ahead,
flow,
sweep,
position_risk
addresses
string[]

Position risk alerts only: the watched wallets.

Example:
threshold_pct
number

Position risk alerts only: the warning distance from the liquidation price, in percent of mark.

Example:

10

price_low
number

Email alerts only: the lowest average liquidation price that matches.

Example:

87500

price_high
number

Email alerts only: the highest average liquidation price that matches.

Example:

88500

status
enum<string>

disabled after 20 failed deliveries in a row, at once when a Telegram chat cannot receive, or after an email alert's one email (see disabled_reason); a delivered test re-enables it.

Available options:
active,
disabled
disabled_reason
enum<string>

Why a disabled alert is off: failures (20 failed deliveries in a row), sent (an email alert sent its one email), or a Telegram refusal that pauses it at once: telegram_blocked (a private chat blocked the bot), telegram_chat_not_found, telegram_deactivated (the account is gone) or telegram_removed (the bot was removed from the group or channel). Absent while active.

Available options:
failures,
sent,
telegram_blocked,
telegram_chat_not_found,
telegram_deactivated,
telegram_removed
Example:

"telegram_blocked"

failures
integer

Failed deliveries in a row.

last_error
string
Example:

"destination answered HTTP 404: Unknown Webhook"

last_sent_at
string<date-time> | null
sent_count
integer

Items delivered so far: liquidations, signal calls or position risk events.

created_at
string<date-time>
signing_secret
string

Webhooks only, in the create response only.

Example:

"whsec_3f9a..."

setup
string

Create response only: what to do before the first message arrives (Telegram: which bot to add to the chat).