Other notification operations (GraphQL)

Related queries and mutations in Notifications. Each has its own section.

Queries

getSlackChannels (query)

getSlackChannels is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
excludeArchivedBooleanSpecify whether to include archived Slack Channels
ignoreCachedBooleanSpecify whether to ignore the cached versions and attempt to pull directly from Slack API.
teamIdStringOptional team ID to filter Slack channels by. If omitted, returns channels for every workspace the account still has an active Slack credential for; channels belonging to a disconnected workspace are excluded.

Returns

SlackChannelResponse

Example

query GetSlackChannels {
  getSlackChannels {
    channels {
      name
      id
      topic
      purpose
    }
  }
}

Types used only by getSlackChannels

SlackChannel

Object type.

FieldTypeDescription
nameString
idString
topicString
purposeString
SlackChannelResponse

Object type.

FieldTypeDescription
channels[SlackChannel]

getSlackChannelsV2 (query)

getSlackChannelsV2 is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Cached Slack channels for every workspace the account still has an active Slack connection for; channels of a disconnected workspace are excluded. The same channel_id can recur across workspaces (distinguished by team_id), so a picker keyed on channel_id alone must deduplicate at the presentation layer.

Arguments

ArgumentTypeDescription
orderByStringOrdering
offsetInt
beforeString
afterString
firstInt
lastInt
name_IexactString
name_IcontainsString
name_IstartswithString
teamId_IexactString

Returns

SlackChannelV2Connection

Example

query GetSlackChannelsV2 {
  getSlackChannelsV2 {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

SlackChannelV2Connection

getSlackOauthUrl (query)

getSlackOauthUrl is a query in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Returns a Slack OAuth URL

Arguments

ArgumentTypeDescription
slackAppTypeSlackAppTypeSlack app type

Returns

SlackOauthUrlResponse

Example

query GetSlackOauthUrl {
  getSlackOauthUrl {
    url
  }
}

Types used only by getSlackOauthUrl

SlackOauthUrlResponse

Object type.

FieldTypeDescription
urlString

Related types

SlackAppType

Mutations

deauthorizeSlackApp (mutation)

deauthorizeSlackApp is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Arguments

ArgumentTypeDescription
forceBooleanRemove the integration even when it still backs active notification settings (the disconnect is rejected otherwise).
slackAppTypeSlackAppType!Slack App Type
teamIdStringSlack Team ID

Returns

DeauthorizeSlackAppMutation

Example

mutation DeauthorizeSlackApp($slackAppType: SlackAppType!) {
  deauthorizeSlackApp(slackAppType: $slackAppType) {
    success
  }
}

Types used only by deauthorizeSlackApp

DeauthorizeSlackAppMutation

Object type.

FieldTypeDescription
successBoolean

Related types

SlackAppType

refreshSlackAppScopes (mutation)

refreshSlackAppScopes is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Re-read the workspace's live bot scopes from Slack into the install record (for scopes granted outside the Monte Carlo install flow).

Arguments

ArgumentTypeDescription
slackAppTypeSlackAppType!Slack App Type
teamIdString!Slack Team ID

Returns

RefreshSlackAppScopes

Example

mutation RefreshSlackAppScopes($slackAppType: SlackAppType!, $teamId: String!) {
  refreshSlackAppScopes(slackAppType: $slackAppType, teamId: $teamId) {
    botScopes
  }
}

Types used only by refreshSlackAppScopes

RefreshSlackAppScopes

Object type. Re-read the workspace's live bot scopes from Slack into the install record. Use after granting scopes outside the Monte Carlo install flow (e.g. a reinstall from Slack's app configuration page).

FieldTypeDescription
botScopes[String!]The refreshed bot scopes now recorded for the installation

Related types

SlackAppType

toggleSlackAgentDataSampling (mutation)

toggleSlackAgentDataSampling is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Enable/disable raw customer data sampling in the Monte Carlo AI (agent) Slack app's answers for this workspace.

Arguments

ArgumentTypeDescription
enableBoolean!If true, allow data sampling
teamIdStringSlack Team ID

Returns

ToggleSlackAgentDataSampling

Example

mutation ToggleSlackAgentDataSampling($enable: Boolean!) {
  toggleSlackAgentDataSampling(enable: $enable) {
    enabled
  }
}

Types used only by toggleSlackAgentDataSampling

ToggleSlackAgentDataSampling

Object type. Enable/disable raw customer data sampling in the Monte Carlo AI (agent) Slack app's answers for this workspace.

FieldTypeDescription
enabledBoolean!The resulting enabled/disabled state for the feature

toggleSlackAgentDispatch (mutation)

toggleSlackAgentDispatch is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Enable/disable dispatching this workspace's notifications via the Monte Carlo AI (agent) Slack app instead of the Monte Carlo app.

Arguments

ArgumentTypeDescription
enableBoolean!If true, enable the feature
teamIdStringSlack Team ID

Returns

ToggleSlackAgentDispatch

Example

mutation ToggleSlackAgentDispatch($enable: Boolean!) {
  toggleSlackAgentDispatch(enable: $enable) {
    enabled
  }
}

Types used only by toggleSlackAgentDispatch

ToggleSlackAgentDispatch

Object type. Enable/disable dispatching this workspace's notifications via the Monte Carlo AI (agent) Slack app instead of the Monte Carlo app.

FieldTypeDescription
enabledBooleanThe resulting enabled/disabled state for the feature

toggleSlackBroadcastUpdates (mutation)

toggleSlackBroadcastUpdates is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Enable/disable posting alert/incident updates to Slack channel in addition to posting a thread reply to the original message.

Arguments

ArgumentTypeDescription
enableBoolean!If true, enable the feature
teamIdStringSlack Team ID

Returns

ToggleSlackBroadcastUpdates

Example

mutation ToggleSlackBroadcastUpdates($enable: Boolean!) {
  toggleSlackBroadcastUpdates(enable: $enable) {
    enabled
  }
}

Types used only by toggleSlackBroadcastUpdates

ToggleSlackBroadcastUpdates

Object type.

FieldTypeDescription
enabledBooleanThe resulting enabled/disabled state for the feature

toggleSlackReplyWarning (mutation)

toggleSlackReplyWarning is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Enable/disable the Slack reply warning feature

Arguments

ArgumentTypeDescription
enableBoolean!If true, enable the feature
teamIdStringSlack Team ID

Returns

ToggleSlackReplyWarning

Example

mutation ToggleSlackReplyWarning($enable: Boolean!) {
  toggleSlackReplyWarning(enable: $enable) {
    enabled
  }
}

Types used only by toggleSlackReplyWarning

ToggleSlackReplyWarning

Object type. Enable/disable the Slack reply warning feature

FieldTypeDescription
enabledBooleanThe resulting enabled/disabled state for the feature

updateNotificationReadStatus (mutation)

updateNotificationReadStatus is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Update notification read status for a notification

Arguments

ArgumentTypeDescription
notificationIdString!The ID of the notification to update
readBoolean!True to mark as read, false to mark as unread

Returns

UpdateNotificationReadStatus

Example

mutation UpdateNotificationReadStatus($notificationId: String!, $read: Boolean!) {
  updateNotificationReadStatus(notificationId: $notificationId, read: $read) {
    success
  }
}

Types used only by updateNotificationReadStatus

UpdateNotificationReadStatus

Object type. Update notification read status for a specific notification

FieldTypeDescription
successBooleanIndicates whether the operation was successful

updateSlackChannels (mutation)

updateSlackChannels is a mutation in the Monte Carlo GraphQL API, in Notifications. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Update the slack channels cache for the account

Returns

UpdateSlackChannelsMutation

Example

mutation UpdateSlackChannels {
  updateSlackChannels {
    success
  }
}

Types used only by updateSlackChannels

UpdateSlackChannelsMutation

Object type.

FieldTypeDescription
successBoolean

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.