Insights and reports (GraphQL)

Related queries and mutations in Catalog and lineage. Each has its own section.

Queries

getInsight (query)

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

Arguments

ArgumentTypeDescription
insightNameString!Name (id) of insight to fetch

Returns

Insight

Example

query GetInsight($insightName: String!) {
  getInsight(insightName: $insightName) {
    name
    title
    usage
    description
    available
  }
}

Related types

Insight

getInsights (query)

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

List of available insights

Returns

[Insight]

Example

query GetInsights {
  getInsights {
    name
    title
    usage
    description
    available
  }
}

Related types

Insight

getReports (query)

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

Arguments

ArgumentTypeDescription
insightNameString!Name (id) of insight for which to fetch reports

Returns

[Report]

Example

query GetReports($insightName: String!) {
  getReports(insightName: $insightName) {
    name
    description
  }
}

Related types

Report

getReportUrl (query)

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

Status: Deprecated: Insight reports is deprecated on July 1st, 2025.

Name (id) of insight to fetch

Arguments

ArgumentTypeDescription
insightNameString!
reportNameString!Name of report to fetch
createdBeforeDateTimeVersion of the report created before specific date

Returns

ResponseURL

Example

query GetReportUrl($insightName: String!, $reportName: String!) {
  getReportUrl(insightName: $insightName, reportName: $reportName) {
    url
    createdAt
  }
}

Types used only by getReportUrl

ResponseURL

Object type.

FieldTypeDescription
urlStringPre-signed URL for fetching report, expiration time is 1 minute
createdAtDateTimeReport creation time in UTC

Related types

DateTime

Source: The GraphQL API reference

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