Skip to main content
PUT
/
api
/
notifications
/
preferences
Update notification preferences
curl --request PUT \
  --url https://app.autoposting.ai/api-proxy/api/notifications/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": {
    "post.failed": true,
    "post.published": false
  }
}
'
{
  "success": true,
  "data": {
    "inApp": {
      "post.published": true,
      "post.failed": true,
      "agent.run.completed": true,
      "clip.render.completed": true,
      "team.invitation": true
    },
    "email": {
      "post.published": false,
      "post.failed": true,
      "agent.run.completed": false,
      "clip.render.completed": false,
      "team.invitation": true
    }
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Body

application/json
inApp
object

Map of notification event type to boolean. Only provided keys are updated.

email
object

Map of notification event type to boolean. Only provided keys are updated.

Response

Updated notification preferences

success
boolean
required
data
object
required

Per-channel map of notification event type to enabled boolean.