Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Returns the notification preferences for the current user’s membership in a community.

Parameters

No parameters.

Returns

Returns the notification preferences object along with basic community information. Custom preferences are merged with defaults, so all preference keys will always be present. If the user is not an active member of the community, a 403 Forbidden error will be returned.
  curl -H "Authorization: $ACCESS_TOKEN" \
    --request GET \
    --url https://api.onlydrams.app/api/v1/communities/:community_id/notification_preferences
{
  "preferences": {
    "posts": {
      "email": true,
      "push": true
    }
  },
  "community": {
    "id": "bf0b10ae-ad6a-41e6-9908-1c2fe6e4877b",
    "name": "OnlyDrams"
  }
}