Skip to content

SDK method

tools.setInboxNotificationLevel

Set inbox notification level. Convenience alias for set_inbox_notification_level, forwarding to tinbox.api.push.setPref.mutate.

Signature

ts
setInboxNotificationLevel(input: Parameters<TinboxTools["setInboxNotificationLevel"]>[0]): ReturnType<TinboxTools["setInboxNotificationLevel"]>

Parameters

NameTypeRequiredDescription
inboxIdstringyesThe accessible inbox id.
level"off" | "important" | "all"yesoff, important, or all.

Returns

ReturnType<TinboxTools["setInboxNotificationLevel"]>

Example

ts
await tinbox.tools.setInboxNotificationLevel({
  "inboxId": "ibx_…",
  "level": "off"
});