Skip to main content
paradime.admin.notifications reads the company’s Slack connection and sets where a workspace’s alerts go: Slack and email. For the GraphQL operations, see Notifications.
Prerequisites
  • These operations are part of the Enterprise plan. On other plans, they raise AdminPlanUpgradeRequiredException.
  • Your API key needs the Notifications admin capability group. To disconnect Slack, use a company API key.
  • The admin client of the paradime-io package. See Admin client.
The examples on this page use this client:
Slack is connected once for the company, and every workspace shares the connection. A company admin connects it in a browser: the API can’t. See Notifications.

Get the Slack connection

Reads the company’s Slack connection. When Slack is not connected, install_url is the Paradime settings page where a company admin connects it.
Optional[str]
default:"None"
The workspace to target, for a company API key. The Slack connection doesn’t depend on it.
Optional[SlackInstallation]
The connection, or None when the server returned none.

Disconnect Slack

Removes the company’s Slack connection, for every workspace. Needs a company API key. Disconnecting again is not an error.
Optional[str]
default:"None"
The Slack team that you expect to be connected. When another team is connected, nothing changes and the call raises AdminConflictException.
Optional[str]
default:"None"
The workspace to target, for a company API key.
SlackInstallation
The connection, now pending.

Get alert destinations

Reads where one category of the workspace’s alerts goes.
AlertCategory
default:"AlertCategory.BOLT_SYSTEM"
The alerts to read. BOLT_SYSTEM is the alerts that Paradime sends about Bolt schedules and their runs.
Optional[str]
default:"None"
The workspace to read, for a company API key.
Optional[AlertNotifications]
The destinations, or None when the server returned none.

Set alert destinations

Routes one category of the workspace’s alerts. A destination you leave out keeps its value. Each destination you give replaces its value, so an empty list removes it.
AlertCategory
default:"AlertCategory.BOLT_SYSTEM"
The alerts to route.
Optional[Sequence[str]]
default:"None"
Slack channel ids. When you give it, with or without slack_user_ids, it replaces the Slack destination.
Optional[Sequence[str]]
default:"None"
Slack user ids.
Optional[bool]
default:"None"
Whether alerts go to the workspace’s admins by email.
Optional[str]
default:"None"
The workspace to change, for a company API key.
AlertNotifications
Where the category’s alerts go now.
Giving slack_channel_ids or slack_user_ids replaces both Slack lists. To add a channel, read the current destinations first and send the full list.

Types

Import the models and enums from paradime.apis.admin.notifications.types.
model
model