LoginSignupGithub

Get Object Preferences

Object preferences are used to configure notification preferences for non-user entities, like group email addresses or Slack channels. This is particularly useful in SaaS products where you may need to send notifications, such as anomaly alerts, directly to team-based communication channels rather than individual users. Preferences can be fetched in bulk or for individual components, depending on your UI implementation. All the API options are to fetch preference of a single object at a time.

  • Get Overall Preferences: Most recommended method for preference UI preview if you are giving granular preference control to your users at both channel and category level. You can also use our pre-built preference component rather than building it in-house.
  • Get Preferences for all categories: Returns preference of all categories and channels inside the category. Useful if you are just showing category opt-out option on UI.
  • Get Preferences for all channels: Retrieves preferences for all active channels in a user's profile. Suitable if you are just showing channel opt-out option on UI.
  • Get Preferences for a single category: Fetches preferences for a specific category and its channels. Typically used for debugging purposes and not ideal for UI since it requires calling individual APIs for all categories.