Price Alerts Webhook (ADD) 🆕

Add a webhook to receive price alerts

Add a webhook to receive price alerts

post
Header parameters
x-api-keystringOptional

API key for Pro/Enterprise plans

Body
webhook_urlstringOptional
alert_typestringOptional
Responses
200

Webhook Alert Added

application/json
Responseobject
post
POST /api/v1/blockchain/add-webhook-alert HTTP/1.1
Host: api.dexcheck.ai
Content-Type: application/json
Accept: */*
Content-Length: 237

{
  "webhook_url": "https://webhook.site/123e4567-e89b-12d3-a456-426614174000",
  "alert_type": "price_alert",
  "alert_data": {
    "trigger_price": 0.1,
    "trigger_type": "cross_above",
    "chain": "SOL",
    "pair_id": "4w2cysotX6czaUGmmWg13hDpY4QEMG2CzeKYEQyK9Ama"
  }
}
{
  "status": "success",
  "alert_id": "bf5f2aff-e462-469b-b0c2-189e615edf36"
}