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
| Name | Type | Required | Description |
|---|---|---|---|
inboxId | string | yes | The accessible inbox id. |
level | "off" | "important" | "all" | yes | off, important, or all. |
Returns
ReturnType<TinboxTools["setInboxNotificationLevel"]>
Example
ts
await tinbox.tools.setInboxNotificationLevel({
"inboxId": "ibx_…",
"level": "off"
});