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
| Argument | Type | Description |
|---|---|---|
excludeArchived | Boolean | Specify whether to include archived Slack Channels |
ignoreCached | Boolean | Specify whether to ignore the cached versions and attempt to pull directly from Slack API. |
teamId | String | Optional 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
getSlackChannelsSlackChannel
SlackChannelObject type.
| Field | Type | Description |
|---|---|---|
name | String | |
id | String | |
topic | String | |
purpose | String |
SlackChannelResponse
SlackChannelResponseObject type.
| Field | Type | Description |
|---|---|---|
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
| Argument | Type | Description |
|---|---|---|
orderBy | String | Ordering |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
name_Iexact | String | |
name_Icontains | String | |
name_Istartswith | String | |
teamId_Iexact | String |
Returns
Example
query GetSlackChannelsV2 {
getSlackChannelsV2 {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
slackAppType | SlackAppType | Slack app type |
Returns
SlackOauthUrlResponse
Example
query GetSlackOauthUrl {
getSlackOauthUrl {
url
}
}Types used only by getSlackOauthUrl
getSlackOauthUrlSlackOauthUrlResponse
SlackOauthUrlResponseObject type.
| Field | Type | Description |
|---|---|---|
url | String |
Related types
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
| Argument | Type | Description |
|---|---|---|
force | Boolean | Remove the integration even when it still backs active notification settings (the disconnect is rejected otherwise). |
slackAppType | SlackAppType! | Slack App Type |
teamId | String | Slack Team ID |
Returns
DeauthorizeSlackAppMutation
Example
mutation DeauthorizeSlackApp($slackAppType: SlackAppType!) {
deauthorizeSlackApp(slackAppType: $slackAppType) {
success
}
}Types used only by deauthorizeSlackApp
deauthorizeSlackAppDeauthorizeSlackAppMutation
DeauthorizeSlackAppMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
slackAppType | SlackAppType! | Slack App Type |
teamId | String! | Slack Team ID |
Returns
RefreshSlackAppScopes
Example
mutation RefreshSlackAppScopes($slackAppType: SlackAppType!, $teamId: String!) {
refreshSlackAppScopes(slackAppType: $slackAppType, teamId: $teamId) {
botScopes
}
}Types used only by refreshSlackAppScopes
refreshSlackAppScopesRefreshSlackAppScopes
RefreshSlackAppScopesObject 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).
| Field | Type | Description |
|---|---|---|
botScopes | [String!] | The refreshed bot scopes now recorded for the installation |
Related types
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
| Argument | Type | Description |
|---|---|---|
enable | Boolean! | If true, allow data sampling |
teamId | String | Slack Team ID |
Returns
ToggleSlackAgentDataSampling
Example
mutation ToggleSlackAgentDataSampling($enable: Boolean!) {
toggleSlackAgentDataSampling(enable: $enable) {
enabled
}
}Types used only by toggleSlackAgentDataSampling
toggleSlackAgentDataSamplingToggleSlackAgentDataSampling
ToggleSlackAgentDataSamplingObject type. Enable/disable raw customer data sampling in the Monte Carlo AI (agent) Slack app's answers for this workspace.
| Field | Type | Description |
|---|---|---|
enabled | Boolean! | 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
| Argument | Type | Description |
|---|---|---|
enable | Boolean! | If true, enable the feature |
teamId | String | Slack Team ID |
Returns
ToggleSlackAgentDispatch
Example
mutation ToggleSlackAgentDispatch($enable: Boolean!) {
toggleSlackAgentDispatch(enable: $enable) {
enabled
}
}Types used only by toggleSlackAgentDispatch
toggleSlackAgentDispatchToggleSlackAgentDispatch
ToggleSlackAgentDispatchObject type. Enable/disable dispatching this workspace's notifications via the Monte Carlo AI (agent) Slack app instead of the Monte Carlo app.
| Field | Type | Description |
|---|---|---|
enabled | Boolean | The 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
| Argument | Type | Description |
|---|---|---|
enable | Boolean! | If true, enable the feature |
teamId | String | Slack Team ID |
Returns
ToggleSlackBroadcastUpdates
Example
mutation ToggleSlackBroadcastUpdates($enable: Boolean!) {
toggleSlackBroadcastUpdates(enable: $enable) {
enabled
}
}Types used only by toggleSlackBroadcastUpdates
toggleSlackBroadcastUpdatesToggleSlackBroadcastUpdates
ToggleSlackBroadcastUpdatesObject type.
| Field | Type | Description |
|---|---|---|
enabled | Boolean | The 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
| Argument | Type | Description |
|---|---|---|
enable | Boolean! | If true, enable the feature |
teamId | String | Slack Team ID |
Returns
ToggleSlackReplyWarning
Example
mutation ToggleSlackReplyWarning($enable: Boolean!) {
toggleSlackReplyWarning(enable: $enable) {
enabled
}
}Types used only by toggleSlackReplyWarning
toggleSlackReplyWarningToggleSlackReplyWarning
ToggleSlackReplyWarningObject type. Enable/disable the Slack reply warning feature
| Field | Type | Description |
|---|---|---|
enabled | Boolean | The 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
| Argument | Type | Description |
|---|---|---|
notificationId | String! | The ID of the notification to update |
read | Boolean! | 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
updateNotificationReadStatusUpdateNotificationReadStatus
UpdateNotificationReadStatusObject type. Update notification read status for a specific notification
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates 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
updateSlackChannelsUpdateSlackChannelsMutation
UpdateSlackChannelsMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
