Configure email and push notification preferences for the authenticated user.
Setup Notification Settings
This endpoint allows partners to configure notification preferences for the authenticated user by enabling or disabling email and push notifications. Settings are applied immediately upon a successful request. Use this endpoint during onboarding or whenever a user updates their communication preferences.
Endpoint
POST /settings/informing
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when a user opts in or out of email or push notifications through your application's settings interface. This is also appropriate during account setup to establish initial notification preferences. Both notification channels can be toggled independently to match each user's communication preferences.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| emailEnabled | boolean | No | Flag to enable or disable email notifications |
| pushEnabled | boolean | No | Flag to enable or disable push notifications |
{
"emailEnabled": true,
"pushEnabled": false
}Response
200 OK
A successful request returns an HTTP 200 status with no response body, indicating notification settings were updated successfully.
Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields or validation error |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions |
| 404 | Resource not found |
| 500 | Internal server error |
Common Mistakes
- Sending non-boolean values for
emailEnabledorpushEnabled(e.g., strings"true"or"false"instead oftrueorfalse) - Omitting the
Authorizationheader or using an expired token, which results in a 401 error - Sending an empty request body — include at least one of the two fields to update a preference
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token for authenticationPOST /api/auth/refresh— Refresh an existing Bearer token
Example
curl -X POST https://api.banking.netevia.dev/settings/informing \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"emailEnabled": true,
"pushEnabled": false
}'