Custom connectors (GraphQL)

Related queries and mutations in Integrations and connections. Each has its own section.

Queries

getCustomBiConnectors (query)

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

Status: Experimental

List custom BI connector types visible to the account, grouped by agent. Optionally filter by agent UUID.

Arguments

ArgumentTypeDescription
agentUuidUUIDFilter to connectors registered by a specific agent.

Returns

[AgentCustomBiConnectors!]

Example

query GetCustomBiConnectors {
  getCustomBiConnectors {
    agentUuid
  }
}

Types used only by getCustomBiConnectors

AgentCustomBiConnectors

Object type. Custom BI connectors grouped under a single agent.

FieldTypeDescription
agentUuidUUID!UUID of the agent that owns these connectors.
customBiConnectors[CustomBiConnector!]!Custom BI connector types registered by this agent.
CustomBiConnector

Object type. A custom BI connector type registered for an account.

FieldTypeDescription
idString!Unique connection type identifier.
nameString!Display name for the connector.
jobTypes[String!]!Job types this connector supports (e.g. BI_REPORTS).
lastUpdatedTimeDateTimeWhen the connector's manifest was last synced.
iconUrlStringAgent-supplied remote URL for the connector's icon, or null if none was registered. Consumers should fall back to a default icon on load error.

Related types

DateTime, UUID

getCustomConnectors (query)

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

Status: Experimental

List custom warehouse connector types visible to the account, grouped by agent. Optionally filter by agent UUID. For ETL connector types, use getCustomEtlConnectors; for BI connector types, use getCustomBiConnectors.

Arguments

ArgumentTypeDescription
agentUuidUUIDFilter to connectors registered by a specific agent.

Returns

[AgentCustomConnectors!]

Example

query GetCustomConnectors {
  getCustomConnectors {
    agentUuid
  }
}

Types used only by getCustomConnectors

AgentCustomConnectors

Object type. Custom connectors grouped under a single agent.

FieldTypeDescription
agentUuidUUID!UUID of the agent that owns these connectors.
customConnectors[CustomConnector!]!Custom connector types registered by this agent.
CustomConnector

Object type. A custom connector type registered for an account.

FieldTypeDescription
idString!Unique connection type identifier.
nameString!Display name for the connector.
capabilitiesCustomConnectorCapabilities!Supported features derived from the connector's manifest.
jobTypes[String!]!Job types this connector supports (e.g. METADATA, QUERY_LOGS, SQL_QUERY).
lastUpdatedTimeDateTimeWhen the connector's manifest was last synced.
CustomConnectorCapabilities

Object type. Supported features for a custom connector, derived from its manifest.

FieldTypeDescription
supportsMetadataBoolean!Whether the connector supports metadata collection.
supportsQueryLogsBoolean!Whether the connector supports query log collection.
supportsLineageBoolean!Whether the connector supports lineage extraction.
supportsFieldLineageBoolean!Whether the connector supports field-level lineage.
supportsSchemaBoolean!Whether the connector supports schema collection.
supportsFreshnessBoolean!Whether the connector supports freshness monitoring.
supportsVolumeRowsBoolean!Whether the connector supports row-count volume monitoring.
supportsVolumeBytesBoolean!Whether the connector supports byte-size volume monitoring.
supportsCustomSqlMonitorBoolean!Whether the connector supports custom SQL monitors.
supportsFullQueryLanguageBoolean!Whether the connector supports the full query language.
supportsStatsMonitorBoolean!Whether the connector supports stats monitors.
supportsComparisonMonitorBoolean!Whether the connector supports comparison monitors.
supportsValidationMonitorBoolean!Whether the connector supports validation monitors.
supportsJsonSchemaMonitorBoolean!Whether the connector supports JSON schema monitors.
supportsTransformBoolean!Whether the connector supports transforms.
supportsAgentMonitorBoolean!Whether the connector supports agent monitors.
supportsAgentTrajectoryMonitorBoolean!Whether the connector supports agent trajectory monitors.
supportsNonMetadataSizeCollectionBoolean!Whether the connector supports size collection without metadata.
supportsMetricMonitorsOnUnknownTypesBoolean!Whether the connector supports metric monitors on unknown field types.

Related types

DateTime, UUID

getCustomEtlConnectors (query)

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

Status: Experimental

List custom ETL connector types visible to the account, grouped by agent. Optionally filter by agent UUID.

Arguments

ArgumentTypeDescription
agentUuidUUIDFilter to connectors registered by a specific agent.

Returns

[AgentCustomEtlConnectors!]

Example

query GetCustomEtlConnectors {
  getCustomEtlConnectors {
    agentUuid
  }
}

Types used only by getCustomEtlConnectors

AgentCustomEtlConnectors

Object type. Custom ETL connectors grouped under a single agent.

FieldTypeDescription
agentUuidUUID!UUID of the agent that owns these connectors.
customEtlConnectors[CustomEtlConnector!]!Custom ETL connector types registered by this agent.
CustomEtlConnector

Object type. A custom ETL connector type registered for an account.

FieldTypeDescription
idString!Unique connection type identifier.
nameString!Display name for the connector.
jobTypes[String!]!Job types this connector supports (e.g. ETL).
lastUpdatedTimeDateTimeWhen the connector's manifest was last synced.
iconUrlStringAgent-supplied remote URL for the connector's icon, or null if none was registered. Consumers should fall back to a default icon on load error.
terminologyTerminologyPer-connector display-noun overrides for the ETL group/job/task tiers, or null if the connector did not register any.

Related types

DateTime, Terminology, UUID

Mutations

addCustomBiConnector (mutation)

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

Status: Experimental

Add a connection for a custom BI connector type.

Arguments

ArgumentTypeDescription
connectionNameStringFriendly name for the connection.
connectionTypeString!Custom BI connector connection type ID.
keyString!Credentials key from testCustomConnector.
nameStringFriendly name for the BI container.

Returns

AddCustomBiConnector

Example

mutation AddCustomBiConnector($connectionType: String!, $key: String!) {
  addCustomBiConnector(connectionType: $connectionType, key: $key) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by addCustomBiConnector

AddCustomBiConnector

Object type. Add a connection for a custom BI connector type. Creates a BI container, connection, and schedules BI asset collection. Requires a credentials key from testCustomConnector with validationName='save_credentials'.

FieldTypeDescription
connectionConnection

Related types

Connection

addCustomConnector (mutation)

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

Status: Experimental

Add a connection for a custom connector type.

Arguments

ArgumentTypeDescription
connectionNameStringFriendly name for the connection.
connectionTypeString!Custom connector connection type ID.
jobTypes[String!]Override default job types from the manifest.
keyString!Credentials key from testCustomConnector.
nameStringFriendly name for the warehouse.
warehouseUuidUUIDAdd the connection to an existing warehouse instead of creating a new one.

Returns

AddCustomConnector

Example

mutation AddCustomConnector($connectionType: String!, $key: String!) {
  addCustomConnector(connectionType: $connectionType, key: $key) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by addCustomConnector

AddCustomConnector

Object type. Add a connection for a custom connector type. Creates a warehouse, connection, and schedules jobs based on the custom type's manifest capabilities. Requires a credentials key from testCustomConnector with validationName='save_credentials'.

FieldTypeDescription
connectionConnection

Related types

Connection, UUID

addCustomEtlConnector (mutation)

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

Status: Experimental

Add a connection for a custom ETL connector type.

Arguments

ArgumentTypeDescription
connectionNameStringFriendly name for the connection.
connectionTypeString!Custom ETL connector connection type ID.
keyString!Credentials key from testCustomConnector.
nameStringFriendly name for the ETL container.

Returns

AddCustomEtlConnector

Example

mutation AddCustomEtlConnector($connectionType: String!, $key: String!) {
  addCustomEtlConnector(connectionType: $connectionType, key: $key) {
    connection {
      id
      createdTime
      updatedTime
      deletedAt
      uuid
      type
      subtype
      name
      deletionProtection
      jobTypes
      credentialsS3Key
      integrationGatewayCredentialsKey
      data
      identifiers
      createdOn
      updatedOn
      isActive
      disabledOn
      ctpConfig
      resolvedConnectionType
    }
  }
}

Types used only by addCustomEtlConnector

AddCustomEtlConnector

Object type. Add a connection for a custom ETL connector type. Creates an ETL container, connection, and schedules ETL asset collection. Requires a credentials key from testCustomConnector with validationName='save_credentials'.

FieldTypeDescription
connectionConnection

Related types

Connection

createOrUpdateCustomIntegration (mutation)

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

Status: Experimental

Create a custom integration with per-capability connections.

Arguments

ArgumentTypeDescription
lineageCapabilityConfigInputLineage capability configuration (mode: COLLECT, REUSE, or PUSH). Omit to leave unchanged (lineage is still inferred from query logs automatically).
metadataCapabilityConfigInputMetadata capability configuration (mode: COLLECT, REUSE, or PUSH). Omit to leave unchanged.
monitorsCapabilityConfigInputMonitors capability configuration (mode: COLLECT or REUSE). PUSH is not supported. Omit to leave unchanged.
nameStringDisplay name for the integration. Required when creating a new integration; optional on update.
queryLogsCapabilityConfigInputQuery logs capability configuration (mode: COLLECT, REUSE, or PUSH). Omit to leave unchanged.
warehouseUuidUUIDUUID of an existing custom-integration warehouse to update. When omitted, a new warehouse is created.

Returns

CreateOrUpdateCustomIntegration

Example

mutation CreateOrUpdateCustomIntegration {
  createOrUpdateCustomIntegration {
    result {
      warehouseUuid
    }
  }
}

Types used only by createOrUpdateCustomIntegration

CapabilityConfigInput

Input object type. Configuration for a single capability in a custom integration.

  • COLLECT: connectionType, credentialsKey, and deploymentId
    are required.
  • REUSE: reuseCapability is required.
  • PUSH: configure this capability for push-via-API. On create no
    connection is provisioned; on update it soft-deletes the existing
    connection (or strips its job types if the connection is shared). No
    other fields are used. Not supported for the monitors capability.

Omitting this input (null) means "leave unchanged" on update, or "not
configured" on create (push via API is always available, and lineage
inference from query logs is automatic).

FieldTypeDescription
modeCapabilityMode!How this capability is configured: collect a new connection, reuse an existing one, or push (transition to push mode).
connectionTypeStringNative connection type ID (e.g. 'spark', 'snowflake'). Required when mode is COLLECT.
credentialsKeyStringTemporary credentials key from a prior test mutation. Required when mode is COLLECT.
deploymentIdUUIDData collector UUID to use for this connection. Required when mode is COLLECT.
reuseCapabilityReusableCapabilityWhich previously configured capability's connection to reuse. Required when mode is REUSE.
CapabilityMode

Enum type. How a capability is configured in a custom integration.

ValueDescription
COLLECT
REUSE
PUSH
CreateOrUpdateCustomIntegration

Object type. Create or update a custom integration warehouse with per-capability connections. Each capability can collect via a new connection, reuse a previously configured connection, or be left unconfigured. Pass warehouseUuid to update an existing integration.

FieldTypeDescription
resultCreateOrUpdateCustomIntegrationResult!The created or updated integration warehouse and connections.
CreateOrUpdateCustomIntegrationResult

Object type. Result of creating or updating a custom integration.

FieldTypeDescription
warehouseUuidUUID!UUID of the created or updated warehouse.
connections[CustomIntegrationConnection!]!Connections created or updated, with their capability assignments.
CustomIntegrationConnection

Object type. A connection created as part of a custom integration.

FieldTypeDescription
capabilityString!Which capability this connection serves (metadata, query_logs, lineage, monitors).
connectionConnection!The connection object.
ReusableCapability

Enum type. Which previously configured capability to reuse a connection from.

ValueDescription
METADATA
QUERY_LOGS
LINEAGE

Related types

Connection, UUID

testCustomConnector (mutation)

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

Status: Experimental

Test or save self-hosted credentials for a custom connector type.

Arguments

ArgumentTypeDescription
connectionDetailsSelfHostedCredentialsConnectionDetails!Self-hosted credential parameters.
validationNameString!Name of the validation test to run. Use 'save_credentials' to persist and receive a key.

Returns

TestCustomConnector

Example

mutation TestCustomConnector($connectionDetails: SelfHostedCredentialsConnectionDetails!, $validationName: String!) {
  testCustomConnector(connectionDetails: $connectionDetails, validationName: $validationName) {
    key
  }
}

Types used only by testCustomConnector

TestCustomConnector

Object type. Test or save self-hosted credentials for a custom connector type. Uses the agent's data collector for validation. Pass validationName='save_credentials' to persist credentials and receive a key for use with addCustomConnector.

FieldTypeDescription
keyStringCredentials key returned when validationName is 'save_credentials'. Pass this to addCustomConnector.
validationResultTestCredentialsV2ResponseResult of the validation.

Related types

SelfHostedCredentialsConnectionDetails, TestCredentialsV2Response

triggerConnectionManifestJob (mutation)

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

Status: Experimental

Trigger a connection-manifest job for an agent.

Arguments

ArgumentTypeDescription
agentUuidUUID!UUID of the agent to request manifests from.

Returns

TriggerConnectionManifestJob

Example

mutation TriggerConnectionManifestJob($agentUuid: UUID!) {
  triggerConnectionManifestJob(agentUuid: $agentUuid) {
    success
  }
}

Types used only by triggerConnectionManifestJob

TriggerConnectionManifestJob

Object type. Trigger a connection-manifest job for an agent. The agent reports its supported custom connector types and their capabilities, which are persisted for use during onboarding.

FieldTypeDescription
successBoolean!Whether the job was triggered successfully.

Related types

UUID

updateCustomConnector (mutation)

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

Status: Experimental

Update credentials for an existing custom connector connection.

Arguments

ArgumentTypeDescription
changesSelfHostedCredentialsConnectionDetails!Updated self-hosted credential parameters.
connectionIdUUID!UUID of the connection to update.
replaceBooleanSet true to replace credentials. Otherwise merges. Default: false.

Returns

UpdateCustomConnector

Example

mutation UpdateCustomConnector($changes: SelfHostedCredentialsConnectionDetails!, $connectionId: UUID!) {
  updateCustomConnector(changes: $changes, connectionId: $connectionId) {
    success
    key
  }
}

Types used only by updateCustomConnector

UpdateCustomConnector

Object type. Update self-hosted credentials for an existing custom connector connection. Merges or replaces credentials on the connection.

FieldTypeDescription
successBooleanWhether the update succeeded.
keyStringNew credentials key after update.

Related types

SelfHostedCredentialsConnectionDetails, UUID

Source: The GraphQL API reference

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