Related queries and mutations in Users, accounts and access. Each has its own section.
Queries
getAccountFeatureFlagStatus (query)
getAccountFeatureFlagStatus is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Returns feature flag state
Arguments
| Argument | Type | Description |
|---|---|---|
feature | String! | Name of the feature flag |
Returns
Boolean
Example
query GetAccountFeatureFlagStatus($feature: String!) {
getAccountFeatureFlagStatus(feature: $feature)
}getAccountOwners (query)
getAccountOwners is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get the ids, emails, and names of all Account Owners in the account.
Arguments
| Argument | Type | Description |
|---|---|---|
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetAccountOwners {
getAccountOwners {
totalCount
edgeCount
}
}Related types
getApiUsage (query)
getApiUsage is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get API Gateway usage data for the account's API key
Arguments
Returns
ApiUsageResponse
Example
query GetApiUsage {
getApiUsage {
limits {
totalRequestsPerDay
requestsPerSecond
burstLimit
}
}
}Types used only by getApiUsage
getApiUsageApiUsageLimits
ApiUsageLimitsObject type.
| Field | Type | Description |
|---|---|---|
totalRequestsPerDay | Int! | |
requestsPerSecond | Float! | |
burstLimit | Int! |
ApiUsageResponse
ApiUsageResponseObject type.
| Field | Type | Description |
|---|---|---|
limits | ApiUsageLimits! | |
usage | [DailyUsage!]! |
DailyUsage
DailyUsageObject type.
| Field | Type | Description |
|---|---|---|
date | Date! | |
requestsUsed | Int! | |
requestsRemaining | Int! |
Related types
getBqProjects (query)
getBqProjects is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Arguments
| Argument | Type | Description |
|---|---|---|
credentialsKey | String | |
ctpConfig | JSONString | CTP pipeline config to apply when listing projects. Required when the connection relies on credential transformation. |
Returns
[BigQueryProject]
Example
query GetBqProjects {
getBqProjects {
fullProjectId
friendlyName
}
}Types used only by getBqProjects
getBqProjectsBigQueryProject
BigQueryProjectObject type.
| Field | Type | Description |
|---|---|---|
fullProjectId | String | |
friendlyName | String |
Related types
getCollectionProperties (query)
getCollectionProperties is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get infrastructure properties for a new data collector deployment
Arguments
| Argument | Type | Description |
|---|---|---|
region | String! | AWS region |
Returns
CollectionProperties
Example
query GetCollectionProperties($region: String!) {
getCollectionProperties(region: $region) {
crossAccountExternalId
customerAccountToken
codeBucket
codeVersion
platformAwsAccountId
dockerImageUri
}
}Types used only by getCollectionProperties
getCollectionPropertiesCollectionProperties
CollectionPropertiesObject type. Collection infrastructure properties
| Field | Type | Description |
|---|---|---|
crossAccountExternalId | String | External id for cross account IAM role |
customerAccountToken | String | Customer account token (unique per data collector) |
codeBucket | String | S3 bucket containing data collector code |
codeVersion | String | Data collector code version |
platformAwsAccountId | String | Monte Carlo AWS account id |
dockerImageUri | String | URI of the docker image for the data collector |
platformRegionDetails | PlatformRegionProperties | Region-specific properties |
PlatformRegionProperties
PlatformRegionPropertiesObject type. Region-specific platform properties
| Field | Type | Description |
|---|---|---|
gatewayEndpoint | String | Gateway endpoint URL |
gatewayVpce | String | Gateway VPC id |
linkerArn | String | ARN of SNS topic used to link data collector deployment |
logArn | String | ARN of CloudWatch log destination for cross-account log subscriptions |
templateLaunchUrl | String | CloudFormation template launch URL |
getDatasets (query)
getDatasets is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get datasets in the account
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Filter by a specific warehouse |
search | String | Filter by a dataset |
allowSearchOnProject | Boolean | Apply search filter on project name |
domainId | UUID | Filter by domain UUID |
includeTableCount | Boolean | Include table count for each dataset Default: false. |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
dataset | String | |
project | String |
Returns
Example
query GetDatasets {
getDatasets {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
getDatasetsByUuid (query)
getDatasetsByUuid is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get datasets by UUID
Arguments
| Argument | Type | Description |
|---|---|---|
datasetUuids | [UUID]! |
Returns
[Dataset]
Example
query GetDatasetsByUuid($datasetUuids: [UUID]!) {
getDatasetsByUuid(datasetUuids: $datasetUuids) {
id
deletedAt
uuid
project
dataset
mcon
createdAt
updatedAt
isExcluded
isMuted
tableCount
mutedEventTypes
}
}Related types
getEventOnboardingData (query)
getEventOnboardingData is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Returns
EventOnbardingConfig
Example
query GetEventOnboardingData {
getEventOnboardingData {
accountUuid
config
}
}Types used only by getEventOnboardingData
getEventOnboardingDataEventOnbardingConfig
EventOnbardingConfigObject type.
| Field | Type | Description |
|---|---|---|
accountUuid | UUID! | |
config | JSONString | Onboarding Config meant to be shared between customers and MC |
Related types
getInvitesInAccount (query)
getInvitesInAccount is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Arguments
| Argument | Type | Description |
|---|---|---|
first | Int | Default: 100. |
roles | [String] | Filter by user role membership |
offset | Int | |
before | String | |
after | String | |
last | Int | |
state | String |
Returns
Example
query GetInvitesInAccount {
getInvitesInAccount {
totalCount
edgeCount
}
}Related types
getProjects (query)
getProjects is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Get projects by UUID
Arguments
Returns
Example
query GetProjects {
getProjects {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
getTokenMetadata (query)
getTokenMetadata is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve access token metadata for current user or account
Arguments
| Argument | Type | Description |
|---|---|---|
index | AccessKeyIndexEnum! | Specifies which metadata index to use |
isServiceApiToken | Boolean | Filter by token type. If not provided, returns all token types the caller is authorized to see. |
Returns
Example
query GetTokenMetadata($index: AccessKeyIndexEnum!) {
getTokenMetadata(index: $index) {
id
firstName
lastName
email
creationTime
createdBy
expirationTime
comment
isServiceApiToken
groups
}
}Types used only by getTokenMetadata
getTokenMetadataAccessKeyIndexEnum
AccessKeyIndexEnumEnum type.
| Value | Description |
|---|---|
account | |
user |
Related types
getTutorialState (query)
getTutorialState is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetches stages and status for tutorial
Arguments
| Argument | Type | Description |
|---|---|---|
tutorialName | String | The name of the tutorial being queried |
Returns
Example
query GetTutorialState {
getTutorialState {
id
createdTime
updatedTime
accountUuid
tutorialName
tutorialStarted
tutorialCompleted
state
}
}Related types
getUser (query)
getUser is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Returns
Example
query GetUser {
getUser {
id
cognitoUserId
email
firstName
lastName
displayName
state
createdOn
isSso
ssoGroups
ssoGroupsUpdatedAt
tokenId
isDeleted
deletedAt
deleteReason
invalidatedAt
persona
role
}
}Related types
getUserApiKeys (query)
getUserApiKeys is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
List a specific user's personal API keys (account admin).
Arguments
| Argument | Type | Description |
|---|---|---|
userId | ID! | cognito_user_id of the target user, who must be in your account. |
Returns
[TokenMetadata!]!
Example
query GetUserApiKeys($userId: ID!) {
getUserApiKeys(userId: $userId) {
id
firstName
lastName
email
creationTime
createdBy
expirationTime
comment
isServiceApiToken
groups
}
}Related types
getUserAuthorizedClients (query)
getUserAuthorizedClients is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
List the OAuth/MCP clients a user in your account has authorized. Requires permission to edit users (settings/users/edit).
Arguments
| Argument | Type | Description |
|---|---|---|
userId | String! | cognito_user_id of the target user, who must be in your account. |
Returns
[AuthorizedConnectApplication!]
Example
query GetUserAuthorizedClients($userId: String!) {
getUserAuthorizedClients(userId: $userId) {
id
applicationId
clientId
name
grantedScopes
oauthResource
wasDynamicallyRegistered
createdTime
}
}Types used only by getUserAuthorizedClients
getUserAuthorizedClientsAuthorizedConnectApplication
AuthorizedConnectApplicationObject type. An OAuth/MCP client a user has authorized (a WorkOS Connect grant).
Resolved from a flat dict produced by _flatten_authorized_client; the
nested WorkOS application sub-object is lifted up there so the fields
here resolve directly with no per-field resolvers.
| Field | Type | Description |
|---|---|---|
id | String | Grant identifier. |
applicationId | String | Stable identifier for the authorized client application. This is the recommended value to pass to revokeUserAuthorizedClient. |
clientId | String | The client's OAuth identifier — what the client presents when it signs in to access the API. Depending on how the client registered, this is either an opaque id or a URL. Distinct from applicationId; also accepted by revokeUserAuthorizedClient. |
name | String | Client application display name. |
grantedScopes | [String] | Scopes the user granted this client. |
oauthResource | String | Resource the grant is scoped to, when present. |
wasDynamicallyRegistered | Boolean | Whether the client self-registered via Dynamic Client Registration. |
createdTime | String | When the client application was created. |
getUsersBasicInfo (query)
getUsersBasicInfo is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get ids, emails and names of all users in account
Arguments
| Argument | Type | Description |
|---|---|---|
search | String | Filter by first name, last name or email address |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
Example
query GetUsersBasicInfo {
getUsersBasicInfo {
totalCount
edgeCount
}
}Related types
getUsersInAccount (query)
getUsersInAccount is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Arguments
| Argument | Type | Description |
|---|---|---|
roles | [String] | Filter by user roles |
search | String | Filter by first name, last name or email address |
orderBy | [String] | Order by fields. Use camelCase and '-' for desc. e.g. ['email', '-role'] |
authorizationGroups | [String] | Filter by authorization group names |
userId | String | Filter by user's Cognito user ID |
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
email | String | |
firstName | String | |
lastName | String | |
role | String |
Returns
Example
query GetUsersInAccount {
getUsersInAccount {
totalCount
edgeCount
}
}Related types
ssoRecoveryCodeStatus (query)
ssoRecoveryCodeStatus is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Status of the account's SSO recovery codes: how many are currently active (unused and unrevoked) and whether the account opted out of code prompts by revoking. Requires the Edit SSO Settings permission.
Returns
SsoRecoveryCodeStatus
Example
query SsoRecoveryCodeStatus {
ssoRecoveryCodeStatus {
activeCount
hasActiveCodes
optedOut
viewerRecoveryBlocked
}
}Types used only by ssoRecoveryCodeStatus
ssoRecoveryCodeStatusSsoRecoveryCodeStatus
SsoRecoveryCodeStatusObject type.
| Field | Type | Description |
|---|---|---|
activeCount | Int! | Number of recovery codes currently active (unused and unrevoked) for the account. |
hasActiveCodes | Boolean! | Whether the account has any active recovery codes. |
optedOut | Boolean! | Whether the account explicitly opted out of SSO recovery-code prompts by revoking its codes. While opted out, saving changes to an existing SSO configuration is not gated on holding codes; generating a new set opts back in. Initial SSO setup always requires codes, opted out or not. |
viewerRecoveryBlocked | Boolean! | Whether SSO recovery is unavailable to the REQUESTING user — unlike the sibling fields, which are account-scoped. True when their email's password identity is actively owned by another Monte Carlo account, which makes both recovery-code redemption and the password-reset fallback fail closed for them. Resolution is lazy — the Cognito lookup runs only when the client selects this field — and fails soft: a lookup fault reads as false rather than failing the status query. |
testDnsLookup (query)
testDnsLookup is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Performs a DNS lookup for the specified host name
Arguments
| Argument | Type | Description |
|---|---|---|
host | String | Host to check |
port | Int | Optional port to use |
ignoreAgent | Boolean | Perform the DNS Lookup in the platform service, even if a remote agent is configured |
serviceUuid | UUID | Platform Service UUID. To disambiguate accounts with multiple services |
Returns
Example
query TestDnsLookup {
testDnsLookup {
success
}
}Related types
Mutations
configureMetadataEvents (mutation)
configureMetadataEvents is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Configure collection of metadata via S3 events
Arguments
| Argument | Type | Description |
|---|---|---|
connectionType | String! | Type of data lake connection (e.g. hive-s3) |
dcId | UUID | DC UUID. To disambiguate accounts with multiple collectors |
name | String | Provide a friendly name for the warehouse when creating |
Returns
ConfigureMetadataEvents
Example
mutation ConfigureMetadataEvents($connectionType: String!) {
configureMetadataEvents(connectionType: $connectionType) {
success
}
}Types used only by configureMetadataEvents
configureMetadataEventsConfigureMetadataEvents
ConfigureMetadataEventsObject type. Configure collection of metadata via S3 events
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
configureQueryLogEvents (mutation)
configureQueryLogEvents is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Configure collection of query logs via S3 events
Arguments
| Argument | Type | Description |
|---|---|---|
assumableRole | String! | AWS role that can be assumed by the DC |
connectionType | String! | Type of data lake connection (e.g. hive-s3) |
dcId | UUID | DC UUID. To disambiguate accounts with multiple collectors |
externalId | String | An external id, per assumable role conditions |
formatType | String! | Log file format (e.g. hive-emr) |
location | String | Location of the log files |
mapping | JSONString | A map where keys are the attributes in the destinationschema and values are the keys in the source schema |
name | String | Provide a friendly name for the warehouse when creating |
sourceFormat | String | File format (e.g. "json") |
Returns
ConfigureQueryLogEvents
Example
mutation ConfigureQueryLogEvents($assumableRole: String!, $connectionType: String!, $formatType: String!) {
configureQueryLogEvents(assumableRole: $assumableRole, connectionType: $connectionType, formatType: $formatType) {
success
}
}Types used only by configureQueryLogEvents
configureQueryLogEventsConfigureQueryLogEvents
ConfigureQueryLogEventsObject type. Configure collection of query logs via S3 events
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
confirmSsoRecoveryCodes (mutation)
confirmSsoRecoveryCodes is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Confirm a freshly generated SSO recovery-code set by entering one of its codes back; the submitted code is consumed. Required after every generate or regenerate so the account's active set is always a proven-saved one.
Arguments
| Argument | Type | Description |
|---|---|---|
code | String! | One of the account's active recovery codes, entered back to confirm the freshly generated set was saved. The submitted code is consumed. |
Returns
ConfirmSsoRecoveryCodes
Example
mutation ConfirmSsoRecoveryCodes($code: String!) {
confirmSsoRecoveryCodes(code: $code) {
activeCount
}
}Types used only by confirmSsoRecoveryCodes
confirmSsoRecoveryCodesConfirmSsoRecoveryCodes
ConfirmSsoRecoveryCodesObject type.
| Field | Type | Description |
|---|---|---|
activeCount | Int! | Number of active recovery codes remaining after the confirmed code is consumed. |
createAccessToken (mutation)
createAccessToken is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Generate an API Access Token and associate to user
Arguments
| Argument | Type | Description |
|---|---|---|
comment | String | Any comment or description to help identify the token |
expirationInDays | Int! | Number of days before the token auto expires |
Returns
CreateAccessToken
Example
mutation CreateAccessToken($expirationInDays: Int!) {
createAccessToken(expirationInDays: $expirationInDays) {
accessToken {
id
token
}
}
}Types used only by createAccessToken
createAccessTokenCreateAccessToken
CreateAccessTokenObject type. Generate an API Access Token and associate to user
| Field | Type | Description |
|---|---|---|
accessToken | AccessToken |
Related types
createOrUpdateSamlIdentityProvider (mutation)
createOrUpdateSamlIdentityProvider is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Arguments
| Argument | Type | Description |
|---|---|---|
accountIdentifier | String | An account identifier authorized by the IdP |
defaultAuthorizationGroups | [String] | One or more authorization group names to assign to new SSO users who do not have an invite. If none/not set, it means new users must wait to be assigned group to gain any access. |
domains | [String]! | A list of domains authorized by the IdP |
metadata | String | The metadata in XML format, encoded as base64 |
metadataUrl | String | The URL of the metadata file |
recoveryCodeConfirmation | String | One of the account's active SSO recovery codes, confirming the admin has saved them; the submitted code is consumed. Required on the first SSO enable — generate a set with generateSsoRecoveryCodes first. Editing an existing configuration needs no confirmation as long as an active set exists. |
Returns
CreateOrUpdateSamlIdentityProvider
Example
mutation CreateOrUpdateSamlIdentityProvider($domains: [String]!) {
createOrUpdateSamlIdentityProvider(domains: $domains) {
account {
id
uuid
name
createdOn
config
allowNonSsoLogin
dataShare
isDeleted
pendingDeletion
frozenAt
entitlements
enableExceptionManagement
enablePlatformAgentDomainFiltering
agentRawDataAccessMode
piiInventoryAccessMode
enablePrAgentPaidTier
enablePrAgentMetering
enableProactiveTuneCreatorNotifications
enableCostAgentPaidTier
agentMonitorDefaultCollectionLagHours
}
}
}Types used only by createOrUpdateSamlIdentityProvider
createOrUpdateSamlIdentityProviderCreateOrUpdateSamlIdentityProvider
CreateOrUpdateSamlIdentityProviderObject type.
Related types
createOrUpdateServiceApiToken (mutation)
createOrUpdateServiceApiToken is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Generate a service API Access Token
Arguments
| Argument | Type | Description |
|---|---|---|
comment | String | Any comment or description to help identify the token |
displayName | String | A name to show when displaying the user name |
expirationInDays | Int | Number of days before the token auto expires |
groups | [String] | Names of the groups for the API token. |
tokenId | String | Token ID to edit |
Returns
CreateOrUpdateServiceApiToken
Example
mutation CreateOrUpdateServiceApiToken {
createOrUpdateServiceApiToken {
accessToken {
id
token
}
}
}Types used only by createOrUpdateServiceApiToken
createOrUpdateServiceApiTokenCreateOrUpdateServiceApiToken
CreateOrUpdateServiceApiTokenObject type. Generate a service API Access Token
| Field | Type | Description |
|---|---|---|
accessToken | AccessToken |
Related types
deleteAccessToken (mutation)
deleteAccessToken is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete an API Access Token by ID
Arguments
| Argument | Type | Description |
|---|---|---|
tokenId | String! | ID of the token to delete |
Returns
DeleteAccessToken
Example
mutation DeleteAccessToken($tokenId: String!) {
deleteAccessToken(tokenId: $tokenId) {
success
}
}Types used only by deleteAccessToken
deleteAccessTokenDeleteAccessToken
DeleteAccessTokenObject type. Delete an API Access Token by ID
| Field | Type | Description |
|---|---|---|
success | Boolean | If the token was successfully deleted |
deleteAllUserApiKeys (mutation)
deleteAllUserApiKeys is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Delete all of a user's personal API keys (account admin).
Arguments
| Argument | Type | Description |
|---|---|---|
userId | ID! | cognito_user_id of the target user, who must be in your account. |
Returns
DeleteAllUserApiKeys
Example
mutation DeleteAllUserApiKeys($userId: ID!) {
deleteAllUserApiKeys(userId: $userId) {
deletedCount
}
}Types used only by deleteAllUserApiKeys
deleteAllUserApiKeysDeleteAllUserApiKeys
DeleteAllUserApiKeysObject type. Delete all personal API keys belonging to a user in your account (account admin).
| Field | Type | Description |
|---|---|---|
deletedCount | Int! | The number of API keys that were deleted. |
deleteEventOnboardingData (mutation)
deleteEventOnboardingData is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete stored event onboarding configuration
Returns
DeleteEventOnboardingData
Example
mutation DeleteEventOnboardingData {
deleteEventOnboardingData {
success
}
}Types used only by deleteEventOnboardingData
deleteEventOnboardingDataDeleteEventOnboardingData
DeleteEventOnboardingDataObject type. Delete stored event onboarding configuration
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the event onboarding data was deleted successfully |
deleteSamlIdentityProvider (mutation)
deleteSamlIdentityProvider is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Returns
DeleteSamlIdentityProvider
Example
mutation DeleteSamlIdentityProvider {
deleteSamlIdentityProvider {
account {
id
uuid
name
createdOn
config
allowNonSsoLogin
dataShare
isDeleted
pendingDeletion
frozenAt
entitlements
enableExceptionManagement
enablePlatformAgentDomainFiltering
agentRawDataAccessMode
piiInventoryAccessMode
enablePrAgentPaidTier
enablePrAgentMetering
enableProactiveTuneCreatorNotifications
enableCostAgentPaidTier
agentMonitorDefaultCollectionLagHours
}
}
}Types used only by deleteSamlIdentityProvider
deleteSamlIdentityProviderDeleteSamlIdentityProvider
DeleteSamlIdentityProviderObject type.
Related types
deleteUserApiKey (mutation)
deleteUserApiKey is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: General availability
Delete a specific user's personal API key (account admin).
Arguments
| Argument | Type | Description |
|---|---|---|
tokenId | ID! | The API key id to delete. |
userId | ID! | cognito_user_id of the target user, who must be in your account. |
Returns
DeleteUserApiKey
Example
mutation DeleteUserApiKey($tokenId: ID!, $userId: ID!) {
deleteUserApiKey(tokenId: $tokenId, userId: $userId) {
deleted
}
}Types used only by deleteUserApiKey
deleteUserApiKeyDeleteUserApiKey
DeleteUserApiKeyObject type. Delete a specific personal API key belonging to a user in your account (account admin).
| Field | Type | Description |
|---|---|---|
deleted | Boolean! | Whether the API key was deleted. |
deleteUserInvite (mutation)
deleteUserInvite is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete user invite
Arguments
| Argument | Type | Description |
|---|---|---|
emails | [String]! | List of email addresses to invite |
Returns
DeleteUserInvite
Example
mutation DeleteUserInvite($emails: [String]!) {
deleteUserInvite(emails: $emails) {
success
}
}Types used only by deleteUserInvite
deleteUserInviteDeleteUserInvite
DeleteUserInviteObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the operation was completed successfully |
disableMetadataEvents (mutation)
disableMetadataEvents is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Disable collection of metadata via S3 events
Arguments
| Argument | Type | Description |
|---|---|---|
name | String | Resource name (required if more than one is present |
Returns
DisableMetadataEvents
Example
mutation DisableMetadataEvents {
disableMetadataEvents {
success
}
}Types used only by disableMetadataEvents
disableMetadataEventsDisableMetadataEvents
DisableMetadataEventsObject type. Disable collection of metadata via S3 events
| Field | Type | Description |
|---|---|---|
success | Boolean |
disableQueryLogEvents (mutation)
disableQueryLogEvents is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Disable collection of query logs via S3 events
Arguments
| Argument | Type | Description |
|---|---|---|
dcId | UUID | DC UUID. To disambiguate accounts with multiple collectors |
name | String | Resource name (required if more than one is present |
Returns
DisableQueryLogEvents
Example
mutation DisableQueryLogEvents {
disableQueryLogEvents {
success
}
}Types used only by disableQueryLogEvents
disableQueryLogEventsDisableQueryLogEvents
DisableQueryLogEventsObject type. Disable collection of query logs via S3 events
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
disableUser (mutation)
disableUser is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Disable a user
Arguments
| Argument | Type | Description |
|---|---|---|
email | String! | Email address of user |
Returns
DisableUser
Example
mutation DisableUser($email: String!) {
disableUser(email: $email) {
user {
id
cognitoUserId
email
firstName
lastName
displayName
state
createdOn
isSso
ssoGroups
ssoGroupsUpdatedAt
tokenId
isDeleted
deletedAt
deleteReason
invalidatedAt
persona
role
}
}
}Types used only by disableUser
disableUserDisableUser
DisableUserObject type.
| Field | Type | Description |
|---|---|---|
user | User |
Related types
generateSsoRecoveryCodes (mutation)
generateSsoRecoveryCodes is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Generate a fresh set of single-use SSO recovery codes for the account, invalidating any previously active set. The plaintext codes are returned once. Generating also opts the account back into recovery-code prompts if it had opted out by revoking.
Returns
GenerateSsoRecoveryCodes
Example
mutation GenerateSsoRecoveryCodes {
generateSsoRecoveryCodes {
codes
}
}Types used only by generateSsoRecoveryCodes
generateSsoRecoveryCodesGenerateSsoRecoveryCodes
GenerateSsoRecoveryCodesObject type.
| Field | Type | Description |
|---|---|---|
codes | [String!]! | The full set of newly generated recovery codes, in plaintext. Returned only once at creation — they are stored hashed and cannot be retrieved again, so the caller must surface them to the user immediately. Any previously active set is invalidated. |
inviteUsers (mutation)
inviteUsers is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
DEPRECATED: use inviteUsersV2
Arguments
| Argument | Type | Description |
|---|---|---|
input | InviteUsersInput! |
Returns
InviteUsersPayload
Example
mutation InviteUsers($input: InviteUsersInput!) {
inviteUsers(input: $input) {
clientMutationId
}
}Types used only by inviteUsers
inviteUsersInviteUsersInput
InviteUsersInputInput object type.
| Field | Type | Description |
|---|---|---|
emails | [String]! | |
clientMutationId | String |
InviteUsersPayload
InviteUsersPayloadObject type.
| Field | Type | Description |
|---|---|---|
users | [UserInvite] | |
clientMutationId | String |
Related types
inviteUsersV2 (mutation)
inviteUsersV2 is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Invite users to the account
Arguments
| Argument | Type | Description |
|---|---|---|
authGroups | [String] | Names of groups to add the user to upon acceptance. Optional for SSO/SCIM accounts, where access is governed by the identity provider on login (for example, when reinstating a previously-removed user); required otherwise. |
emails | [String]! | List of email addresses to invite |
invitationType | InvitationType | Type of invitation to send--typically maps to product. |
Returns
InviteUsersV2
Example
mutation InviteUsersV2($emails: [String]!) {
inviteUsersV2(emails: $emails) {
existingUsers
alreadyInvited
}
}Types used only by inviteUsersV2
inviteUsersV2InvitationType
InvitationTypeEnum type. Used to select the template to use for new user invites.
| Value | Description |
|---|---|
Observability |
InviteUsersV2
InviteUsersV2Object type.
| Field | Type | Description |
|---|---|---|
invites | [UserInvite] | List of users invites sent |
existingUsers | [String] | List of email addresses of users who already exist and cannot be invited |
alreadyInvited | [String] | List of email addresses already invited to this account or another account |
Related types
resendUserInvite (mutation)
resendUserInvite is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Resend user invite
Arguments
| Argument | Type | Description |
|---|---|---|
emails | [String]! | List of email addresses to resend the invitation |
Returns
ReInviteUsers
Example
mutation ResendUserInvite($emails: [String]!) {
resendUserInvite(emails: $emails) {
existingUsers
}
}Types used only by resendUserInvite
resendUserInviteReInviteUsers
ReInviteUsersObject type.
| Field | Type | Description |
|---|---|---|
invites | [UserInvite] | List of users to resend invites |
existingUsers | [String] | List of email addresses of users who already exist and cannot be invited |
Related types
revokeAllUserAuthorizedClients (mutation)
revokeAllUserAuthorizedClients is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Revoke all of a user's OAuth/MCP client authorizations at once, forcing the user to re-authenticate every client on next use. Returns the number revoked. Requires permission to edit users (settings/users/edit).
Arguments
| Argument | Type | Description |
|---|---|---|
userId | String! | cognito_user_id of the target user, who must be in your account. |
Returns
RevokeAllUserAuthorizedClients
Example
mutation RevokeAllUserAuthorizedClients($userId: String!) {
revokeAllUserAuthorizedClients(userId: $userId) {
ok
revokedCount
}
}Types used only by revokeAllUserAuthorizedClients
revokeAllUserAuthorizedClientsRevokeAllUserAuthorizedClients
RevokeAllUserAuthorizedClientsObject type.
| Field | Type | Description |
|---|---|---|
ok | Boolean | |
revokedCount | Int | Number of client authorizations revoked. |
revokeSsoRecoveryCodes (mutation)
revokeSsoRecoveryCodes is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Invalidate all of the account's active SSO recovery codes. An explicit revoke also opts the account out of recovery-code prompts: saving changes to an existing SSO configuration is no longer gated on holding codes until a new set is generated. Initial SSO setup still requires codes.
Returns
RevokeSsoRecoveryCodes
Example
mutation RevokeSsoRecoveryCodes {
revokeSsoRecoveryCodes {
revokedCount
}
}Types used only by revokeSsoRecoveryCodes
revokeSsoRecoveryCodesRevokeSsoRecoveryCodes
RevokeSsoRecoveryCodesObject type.
| Field | Type | Description |
|---|---|---|
revokedCount | Int! | Number of active recovery codes that were invalidated by this call. |
revokeUserAuthorizedClient (mutation)
revokeUserAuthorizedClient is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Revoke a user's authorization for a single OAuth/MCP client (a WorkOS Connect grant), forcing the user to re-authenticate that client on next use. Requires permission to edit users (settings/users/edit).
Arguments
| Argument | Type | Description |
|---|---|---|
applicationId | String! | Which authorized client to revoke. Accepts either the applicationId (recommended) or the clientId from getUserAuthorizedClients — these are distinct identifiers for the client; see those fields. |
userId | String! | cognito_user_id of the target user, who must be in your account. |
Returns
RevokeUserAuthorizedClient
Example
mutation RevokeUserAuthorizedClient($applicationId: String!, $userId: String!) {
revokeUserAuthorizedClient(applicationId: $applicationId, userId: $userId) {
ok
}
}Types used only by revokeUserAuthorizedClient
revokeUserAuthorizedClientRevokeUserAuthorizedClient
RevokeUserAuthorizedClientObject type.
| Field | Type | Description |
|---|---|---|
ok | Boolean |
saveEventOnboardingData (mutation)
saveEventOnboardingData is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Save event onboarding configuration
Arguments
| Argument | Type | Description |
|---|---|---|
config | JSONString! | JSON Key/values with event config to store |
Returns
SaveEventOnboardingData
Example
mutation SaveEventOnboardingData($config: JSONString!) {
saveEventOnboardingData(config: $config) {
success
}
}Types used only by saveEventOnboardingData
saveEventOnboardingDataSaveEventOnboardingData
SaveEventOnboardingDataObject type. Save event onboarding configuration
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the event onboarding data was saved successfully |
Related types
setAccountMaxTimeSeries (mutation)
setAccountMaxTimeSeries is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Set the maximum number of time series for the account.
Arguments
| Argument | Type | Description |
|---|---|---|
maxTimeSeries | Int! |
Returns
SetMaxTimeSeries
Example
mutation SetAccountMaxTimeSeries($maxTimeSeries: Int!) {
setAccountMaxTimeSeries(maxTimeSeries: $maxTimeSeries) {
success
}
}Types used only by setAccountMaxTimeSeries
setAccountMaxTimeSeriesSetMaxTimeSeries
SetMaxTimeSeriesObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean |
setAccountName (mutation)
setAccountName is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Arguments
| Argument | Type | Description |
|---|---|---|
accountName | String! |
Returns
SetAccountName
Example
mutation SetAccountName($accountName: String!) {
setAccountName(accountName: $accountName) {
account {
id
uuid
name
createdOn
config
allowNonSsoLogin
dataShare
isDeleted
pendingDeletion
frozenAt
entitlements
enableExceptionManagement
enablePlatformAgentDomainFiltering
agentRawDataAccessMode
piiInventoryAccessMode
enablePrAgentPaidTier
enablePrAgentMetering
enableProactiveTuneCreatorNotifications
enableCostAgentPaidTier
agentMonitorDefaultCollectionLagHours
}
}
}Types used only by setAccountName
setAccountNameSetAccountName
SetAccountNameObject type.
| Field | Type | Description |
|---|---|---|
account | Account |
Related types
setTutorialState (mutation)
setTutorialState is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Sets the state of a tutorial
Arguments
| Argument | Type | Description |
|---|---|---|
state | TutorialStatusType! | initial, started, completed, invalid |
tutorialName | String! | The name of the tutorial which includes the step |
Returns
SetTutorialState
Example
mutation SetTutorialState($state: TutorialStatusType!, $tutorialName: String!) {
setTutorialState(state: $state, tutorialName: $tutorialName) {
success
}
}Types used only by setTutorialState
setTutorialStateSetTutorialState
SetTutorialStateObject type. Set the state of a tutorial step
| Field | Type | Description |
|---|---|---|
success | Boolean | Step status change success |
Related types
switchUserAccount (mutation)
switchUserAccount is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
User can switch accounts if provided with valid invite
Arguments
| Argument | Type | Description |
|---|---|---|
switchToAccountId | UUID! | |
verificationToken | String! |
Returns
SwitchUserAccount
Example
mutation SwitchUserAccount($switchToAccountId: UUID!, $verificationToken: String!) {
switchUserAccount(switchToAccountId: $switchToAccountId, verificationToken: $verificationToken) {
newAccount {
id
uuid
name
createdOn
config
allowNonSsoLogin
dataShare
isDeleted
pendingDeletion
frozenAt
entitlements
enableExceptionManagement
enablePlatformAgentDomainFiltering
agentRawDataAccessMode
piiInventoryAccessMode
enablePrAgentPaidTier
enablePrAgentMetering
enableProactiveTuneCreatorNotifications
enableCostAgentPaidTier
agentMonitorDefaultCollectionLagHours
}
}
}Types used only by switchUserAccount
switchUserAccountSwitchUserAccount
SwitchUserAccountObject type.
| Field | Type | Description |
|---|---|---|
newAccount | Account |
Related types
toggleAccountFeature (mutation)
toggleAccountFeature is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Enable/disable an account level feature
Arguments
| Argument | Type | Description |
|---|---|---|
feature | String! | Feature to enable/disable |
isEnabled | Boolean! | Enable or disable the feature |
Returns
ToggleAccountFeature
Example
mutation ToggleAccountFeature($feature: String!, $isEnabled: Boolean!) {
toggleAccountFeature(feature: $feature, isEnabled: $isEnabled) {
success
}
}Types used only by toggleAccountFeature
toggleAccountFeatureToggleAccountFeature
ToggleAccountFeatureObject type. Enable/disable an account level feature
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the feature was enabled or disabled successfully |
toggleEventConfig (mutation)
toggleEventConfig is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Enable / disable the configuration for data collection via events
Arguments
| Argument | Type | Description |
|---|---|---|
assumableRole | String | AWS role that can be assumed by the DC |
connectionId | UUID | The connection id. Cannot be present with DW ID |
connectionType | String | Type of connection (e.g. hive-s3), required if connection id not set |
dwId | UUID | The warehouse id. Cannot be present with connection ID |
enable | Boolean! | If true enable the connection, otherwise disable it |
eventType | DataCollectorEventTypes! | Type of event (e.g. metadata) |
externalId | String | An external id, per assumable role conditions |
formatType | String | Log file format (e.g. hive-emr) |
location | String | Location of the log files |
mapping | JSONString | A map where keys are the attributes in the destinationschema and values are the keys in the source schema |
sourceFormat | String | File format (e.g. "json") |
Returns
ToggleEventConfig
Example
mutation ToggleEventConfig($enable: Boolean!, $eventType: DataCollectorEventTypes!) {
toggleEventConfig(enable: $enable, eventType: $eventType) {
success
}
}Types used only by toggleEventConfig
toggleEventConfigDataCollectorEventTypes
DataCollectorEventTypesEnum type.
| Value | Description |
|---|---|
s3_metadata_events | |
s3_ql_events |
ToggleEventConfig
ToggleEventConfigObject type. Enable / disable the configuration for data collection via events
| Field | Type | Description |
|---|---|---|
success | Boolean |
Related types
toggleMuteDataset (mutation)
toggleMuteDataset is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Deprecated
Start/Stop creating incidents for the given dataset
Arguments
| Argument | Type | Description |
|---|---|---|
input | ToggleMuteDatasetInput! |
Returns
ToggleMuteDatasetPayload
Example
mutation ToggleMuteDataset($input: ToggleMuteDatasetInput!) {
toggleMuteDataset(input: $input) {
clientMutationId
}
}Types used only by toggleMuteDataset
toggleMuteDatasetToggleMuteDatasetInput
ToggleMuteDatasetInputInput object type.
| Field | Type | Description |
|---|---|---|
dwId | UUID! | Warehouse the dataset is contained in. |
dsId | UUID! | ID of the dataset. |
mute | Boolean! | True for muting the table, False for un-muting |
mutedEventTypes | [MutedEventType] | Restrict muting to the following event types (optional) |
clientMutationId | String |
ToggleMuteDatasetPayload
ToggleMuteDatasetPayloadObject type. Start/Stop creating incidents for the given dataset
| Field | Type | Description |
|---|---|---|
muted | Dataset | |
clientMutationId | String |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
