Skip to main content
PATCH
/
v2
/
notifications
/
email
Update Email Settings
curl --request PATCH \
  --url https://api.tusky.io/v2/notifications/email \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "email": "<string>",
  "events": [
    {}
  ],
  "balanceThreshold": "<string>"
}
'
Configure email notification preferences.

Request Body

enabled
boolean
Enable or disable email notifications.
email
string
Destination email address.
events
array
Event types to subscribe to: files.expiring, balance.low, bandwidth.limit_approaching, bandwidth.limit_reached, transactions.limit_approaching, transactions.limit_reached.
balanceThreshold
string
SUI balance threshold for balance.low alerts (e.g., "5.0").

Example

curl -X PATCH https://api.tusky.io/v2/notifications/email \
  -H "Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "email": "alerts@example.com",
    "events": ["files.expiring", "balance.low"],
    "balanceThreshold": "5.0"
  }'

Response

{
  "enabled": true,
  "email": "alerts@example.com",
  "events": ["files.expiring", "balance.low"],
  "balanceThreshold": "5.0"
}