Skip to Content
Indexify
Account

Update a single notification preference

POST
/api/notification_preferences.php?action=update

Authorization

ApiKeyAuth
headerX-API-KEY<token>

API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.

Query Parameters

action*"update"
Value in"update"

Request Body

application/json
  1. body
notification_type*string
Value in"stack_follow""price_movement""transaction""creator_fee""creator_note""trending_stack""stack_closed"
enabled*boolean

Response Body

Preference updated.

application/json
  1. response
success*boolean
Example Request
curl -X POST 'https://api.indexify.finance/api/notification_preferences.php?action=update' \  -H 'Content-Type: application/json' \  -d '{  "notification_type": "stack_follow",  "enabled": true}'
Example Response
{  "success": true}