Skip to main content
PATCH
/
api
/
v1
/
notifications
/
settings
curl --request PATCH \
  --url https://mcp.echozero.app/api/v1/notifications/settings \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "appPermission": {
    "botAlerts": true
  }
}
'
{
  "success": true,
  "data": true
}

Authorizations

x-api-key
string
header
required

Headers

x-signature
string

HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Optional -- when omitted, HMAC verification is skipped.

x-timestamp
string

Request timestamp in epoch milliseconds. Required when x-signature is provided. Rejected if drift exceeds 5 minutes.

Body

application/json

OpenAPI: McpUpdateNotificationSettingsBodyDto. GraphQL: UpdateNotificationSettingsInput in apps/gql-main/src/notification/inputs/updateNotificationSettings.input.ts.

appPermission
object

App push notification toggles

emailPermission
object

Email notification toggles

Response

Settings saved.

success
boolean
required
Example:

true

data
boolean
required

Operation result