Skip to main content
Check whether Slack is connected to your Paradime account, set where a workspace’s Bolt system alerts go, and disconnect Slack, from code.
Prerequisites:
  • These operations are part of the Enterprise plan. On other plans, they fail with PLAN_UPGRADE_REQUIRED.
  • An account API key or a workspace API key. With an account key, send X-Paradime-Workspace to read or set a workspace’s alerts. disconnectSlack needs an account key.
  • The Notifications admin capability group.
Keys, errors, and steps that need a person work the same in every area. See Conventions.

Operations

Check the Slack connection

Slack connects once for the whole account, so slack needs no X-Paradime-Workspace header.
  • status is CONNECTED when Slack is connected. It is PENDING_USER_ACTION when an account admin has to connect Slack in a browser: send them to installUrl, the Paradime settings page where Slack is connected. An API call can’t finish this step. See Steps that need a person.
  • isReconnectRequired is true when Slack must be connected again to grant the scopes in missingScopes. installUrl is set until it is done.

Route Bolt system alerts

Bolt system alerts tell you about problems with Bolt itself, such as a repository Bolt can’t clone. In Paradime, you set them in the Bolt System Alerts panel of the Bolt schedules homepage. Through the API, setAlertNotifications sets them for the targeted workspace. The only category is BOLT_SYSTEM.
  • A destination you leave out keeps its value. A destination you send replaces its value.
  • slack.channelIds and slack.userIds are the full set of Slack destinations. Use Slack ids, such as C04ABCDEF12 for a channel and U02ABCDEF34 for a user, not names. To remove every Slack destination, send both lists empty.
  • Slack must be connected to the account before you add a Slack destination.
  • email.isEnabled turns alert emails to the workspace admins on or off, as the Email workspace admins switch does.
Bolt system alerts go to Slack or Microsoft Teams, not both. If the workspace sends them to Teams, remove the Teams destinations in Paradime before you add Slack destinations. The API doesn’t read or change the panel’s other settings: Teams destinations, the email addresses you add one by one, and the Frequency. They keep their values. To read the destinations, select alertNotifications on the workspace:

Disconnect Slack

disconnectSlack removes the Slack connection from the whole account, for every workspace. It needs an account key, and no X-Paradime-Workspace header. Send the teamId you expect to be connected: if another Slack team is connected, nothing changes and the call fails with CONFLICT. Disconnecting again is not an error.
After the call, status is PENDING_USER_ACTION, and installUrl is where an account admin connects Slack again.

Errors

These are the cases specific to notifications. For the error format and the codes every area shares, see Errors.