Related queries and mutations in Notifications. Each has its own section.
Queries
getSlackUserGroups (query)
getSlackUserGroups 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.
Status: Experimental
Bulk fetch Slack user groups by IDs
Arguments
| Argument | Type | Description |
|---|---|---|
teamId | String! | Slack team/workspace ID |
usergroupIds | [String!]! | List of Slack user group IDs to fetch |
Returns
Example
query GetSlackUserGroups($teamId: String!, $usergroupIds: [String!]!) {
getSlackUserGroups(teamId: $teamId, usergroupIds: $usergroupIds) {
id
name
}
}Related types
getSlackUsers (query)
getSlackUsers 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.
Status: Experimental
Bulk fetch Slack users by IDs
Arguments
| Argument | Type | Description |
|---|---|---|
teamId | String! | Slack team/workspace ID |
userIds | [String!]! | List of Slack user IDs to fetch |
Returns
Example
query GetSlackUsers($teamId: String!, $userIds: [String!]!) {
getSlackUsers(teamId: $teamId, userIds: $userIds) {
id
displayName
}
}Related types
listSlackUserGroups (query)
listSlackUserGroups 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.
Status: Experimental
List all Slack user groups (pass-through to Slack API). Returns only id and name for efficiency. Clients can do their own filtering. Note: Slack's API does not support pagination for user groups.
Arguments
| Argument | Type | Description |
|---|---|---|
teamId | String! | Slack team/workspace ID |
Returns
SlackUserGroupListOutput
Example
query ListSlackUserGroups($teamId: String!) {
listSlackUserGroups(teamId: $teamId) {
usergroups {
id
name
}
}
}Types used only by listSlackUserGroups
listSlackUserGroupsSlackUserGroupListOutput
SlackUserGroupListOutputObject type. Response for listing Slack user groups.
| Field | Type | Description |
|---|---|---|
usergroups | [SlackUserGroupOutput!]! | List of all user groups |
Related types
listSlackUsers (query)
listSlackUsers 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.
Status: Experimental
List Slack users with pagination (pass-through to Slack API). Returns only id and display_name for efficiency. Clients can do their own filtering.
Arguments
| Argument | Type | Description |
|---|---|---|
teamId | String! | Slack team/workspace ID |
cursor | String | Pagination cursor from previous response |
limit | Int | Number of results per page (default 1000, max 1000) |
Returns
SlackUserListOutput
Example
query ListSlackUsers($teamId: String!) {
listSlackUsers(teamId: $teamId) {
nextCursor
}
}Types used only by listSlackUsers
listSlackUsersSlackUserListOutput
SlackUserListOutputObject type. Paginated response for listing Slack users.
| Field | Type | Description |
|---|---|---|
users | [SlackUserOutput!]! | List of users in this page |
nextCursor | String | Cursor for next page (null if no more pages) |
Related types
Mutations
linkSlackAppInstallation (mutation)
linkSlackAppInstallation 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
Callback API for Slack App Installation Oauth flow
Arguments
| Argument | Type | Description |
|---|---|---|
code | String! | OAuth code from Slack |
slackAppType | String | Slack app type (e.g. 'observe', 'agent') |
state | String! | State parameter for OAuth flow |
Returns
LinkSlackAppInstallation
Example
mutation LinkSlackAppInstallation($code: String!, $state: String!) {
linkSlackAppInstallation(code: $code, state: $state) {
installationUuid
}
}Types used only by linkSlackAppInstallation
linkSlackAppInstallationLinkSlackAppInstallation
LinkSlackAppInstallationObject type. Handle Slack OAuth callback
| Field | Type | Description |
|---|---|---|
installationUuid | String | The UUID of the Slack installation |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
