notification51 ops

Notification API

Push, SMS, and email notifications with per-channel providers and templates.

Queries

QUERY

adminListAnnouncements

#

List announcements with pagination (admin only)

Arguments

  • input!
Returns!
QUERY

announcement

#

Get a single announcement by ID (admin only)

Arguments

  • id!
Returns
QUERY

announcements

#

Query active announcements targeted at the current account. The app is taken from the x-app request header.

Arguments

  • limitInt
Returns[!]!
QUERY

emailProvider

#

Get a specific email provider by ID

Arguments

  • idString!
Returns
QUERY

emailProviderDefinition

#

Get a specific email provider definition by ID

Arguments

  • idString!
Returns
QUERY

emailProviderDefinitions

#

List all available email provider definitions for the tenant

Returns[!]!
QUERY

emailProviders

#

List all email providers for the tenant

Returns[!]!
QUERY

emailScenarioDefinitions

#

List all email scenario definitions with their metadata. Returns every possible email scenario with default subject, description, and the variables the system provides. # Authorization Requires PlatformAdmin or TenantAdmin role.

Returns[!]!
QUERY

emailTemplate

#

Get a specific email template by ID. # Authorization Requires PlatformAdmin role.

Arguments

  • idString!
Returns
QUERY

emailTemplateByScenario

#

Get the active email template for a specific scenario. # Authorization Requires PlatformAdmin role.

Arguments

  • scenario!
Returns
QUERY

emailTemplates

#

List all email templates for the tenant. # Authorization Requires PlatformAdmin role.

Returns[!]!
QUERY

liveActivities

#

Query live activities for the current account

Arguments

  • app!
  • topics[String!]
Returns[!]!
QUERY

myNotificationPreferences

#

Get the current user's notification preferences. Returns preferences grouped by category, filtered for the caller's app and role. Merges tenant defaults with user overrides.

Returns!
QUERY

notifications

#

Query durable notifications for the current account

Arguments

  • app!
  • status
  • limitInt
  • offsetInt
Returns[!]!
QUERY

smsProvider

#

Get a specific SMS provider by ID (admin only)

Arguments

  • idString!
Returns
QUERY

smsProviderCoverage

#

Full SMS provider coverage matrix. Globally-available providers report an empty country_codes list with is_global = true.

Returns[!]!
QUERY

smsProviders

#

List all SMS providers for the tenant (admin only)

Arguments

  • input!

    Default

    {
      "search": null,
      "pagination": {
        "limit": 10,
        "page": 1,
        "after": null
      }
    }
Returns!
QUERY

smsProvidersForCountry

#

SMS providers available in the given country. Includes globally- available providers (Twilio, Infobip, etc.) in every response. country_code must be an ISO 3166-1 alpha-2 code (case-insensitive).

Arguments

  • countryCodeString!

    ISO 3166-1 alpha-2 country code (e.g. "KW", "US").

Returns[!]!
QUERY

smsTemplate

#

Get a specific SMS template by ID

Arguments

  • idString!
Returns
QUERY

smsTemplates

#

List all SMS templates for the tenant

Returns[!]!
QUERY

unreadCount

#

Get unread count for an app

Arguments

  • app!
ReturnsInt!

Mutations

MUTATION

createAnnouncement

#

Create an announcement (admin only)

Arguments

  • input!
Returns!
MUTATION

createEmailProvider

#

Create a new email provider configuration

Arguments

  • input!
Returns!
MUTATION

createEmailProviderDefinition

#

Create a custom email provider definition (SMTP or HTTP Webhook)

Arguments

  • input!
Returns!
MUTATION

createEmailTemplate

#

Create a new email template. # Authorization Requires PlatformAdmin role.

Arguments

  • input!
Returns!
MUTATION

createNotification

#

Create a new durable notification

Arguments

  • input!
Returns!
MUTATION

createSmsProvider

#

Create a new SMS provider (admin only)

Arguments

  • input!
Returns!
MUTATION

createSmsTemplate

#

Create a new SMS template

Arguments

  • input!
Returns!
MUTATION

deactivateEmailProviderDefinition

#

Deactivate a custom email provider definition

Arguments

  • idString!
ReturnsBoolean!
MUTATION

deleteAnnouncement

#

Delete an announcement (admin only)

Arguments

  • id!
ReturnsBoolean!
MUTATION

deleteEmailProvider

#

Delete an email provider

Arguments

  • idString!
ReturnsBoolean!
MUTATION

deleteEmailTemplate

#

Delete an email template. # Authorization Requires PlatformAdmin role.

Arguments

  • idString!
ReturnsBoolean!
MUTATION

deleteSmsProvider

#

Delete an SMS provider (admin only)

Arguments

  • idString!
ReturnsBoolean!
MUTATION

deleteSmsTemplate

#

Delete an SMS template

Arguments

  • idString!
ReturnsBoolean!
MUTATION

dismissNotification

#

Dismiss a notification

Arguments

  • input!
ReturnsBoolean!
MUTATION

endLiveActivity

#

End a live activity

Arguments

  • input!
ReturnsBoolean!
MUTATION

markAllRead

#

Mark all notifications as read

Arguments

  • input!
ReturnsInt!
MUTATION

markNotificationRead

#

Mark a notification as read

Arguments

  • input!
ReturnsBoolean!
MUTATION

registerPushToken

#

Register a push notification token for the authenticated device

Arguments

  • input!
Returns!
MUTATION

sendTestEmail

#

Send a test email for the given scenario, using the caller's tenant's default email provider and its configured template. Always returns the rendered preview. When dryRun is true the email is rendered but not dispatched, so admins can verify placeholder substitution before committing to a real send. # Authorization Requires PlatformAdmin or TenantAdmin.

Arguments

  • input!
Returns!
MUTATION

setDefaultEmailProvider

#

Set an email provider as the default for the tenant

Arguments

  • idString!
ReturnsBoolean!
MUTATION

setDefaultSmsProvider

#

Set an SMS provider as the default (admin only)

Arguments

  • idString!
ReturnsBoolean!
MUTATION

testSmsProvider

#

Test an SMS provider by sending a test message (admin only)

Arguments

  • idString!
  • phoneNumberString!
Returns!
MUTATION

updateAnnouncement

#

Update an announcement (admin only)

Arguments

  • input!
Returns!
MUTATION

updateEmailProvider

#

Update an existing email provider

Arguments

  • input!
Returns!
MUTATION

updateEmailProviderDefinition

#

Update a custom email provider definition

Arguments

  • input!
Returns!
MUTATION

updateEmailTemplate

#

Update an existing email template. # Authorization Requires PlatformAdmin role.

Arguments

  • input!
Returns!
MUTATION

updateLiveActivity

#

Update a live activity

Arguments

  • input!
Returns!
MUTATION

updateMyNotificationPreferences

#

Update the current user's notification preferences. Accepts a list of preference changes (subject + channel + enabled). Only marketing/optable subjects can be toggled — transactional and OTP subjects are rejected. Returns the full updated preferences after applying changes.

Arguments

  • input!
Returns!
MUTATION

updateSmsProvider

#

Update an existing SMS provider (admin only)

Arguments

  • input!
Returns!
MUTATION

updateSmsTemplate

#

Update an existing SMS template

Arguments

  • input!
Returns!

Build the foundation once. Expand without limits.

BetterSuite is built for teams who see on-demand as a business — not a feature.