Create alerts
Create a new alert by flagging a balance, transaction, or identity. Send a POST request to the/alerts/flag/{id} endpoint, where {id} is the identifier of the entity you want to flag.
Create and manage alerts programmatically using the Cloud APIs.
/alerts/flag/{id} endpoint, where {id} is the identifier of the entity you want to flag.
curl -X POST 'https://api.cloud.blnkfinance.com/alerts/flag/bal_1234567890abcdef' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"title": "Balance threshold exceeded",
"description": "Account balance has exceeded the maximum allowed limit."
}'
curl -X PUT 'https://api.cloud.blnkfinance.com/alerts/flag/ano_8a380fd1-0289-46d1-bc76-aa17a510a64e' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"title": "Balance threshold exceeded - Resolved",
"description": "Account balance has been adjusted and is now within acceptable limits."
}'
# Get all alerts
curl -X GET 'https://api.cloud.blnkfinance.com/alerts' \
-H 'Authorization: Bearer YOUR_API_KEY'
# Get specific alert by ID
curl -X GET 'https://api.cloud.blnkfinance.com/alerts/ano_8a380fd1-0289-46d1-bc76-aa17a510a64e' \
-H 'Authorization: Bearer YOUR_API_KEY'