Magidoc

Query
Object

Fields

#

activeTutorial

Returns the single published tutorial the acting user is eligible for and has not yet seen, or null. This is the source of truth for the in-app tutorial runner.

aiModels

[ AiModel !]!
Non-null

aiUsageReport

Non-null

aiWorkflow

Non-null

aiWorkflowStepVersionDiffSummary

Non-null

allBuyersGuidesAdmin

Non-null

allIngestionStats

Non-null

availableCatalogMetadataCandidates

Non-null

Returns available metadata fields that are not already in catalog metadata.

availableDashboardCharts

Non-null

A paginated, text-searchable list of the charts available to add to dashboards. This is the source of truth for the dashboard chart picker (only charts made visible by Cloudshelf staff appear).

availablePDPBlocks

Non-null

Returns an array of PDP Blocks that are available to add to the PDP

buyersGuide

cachePurgeStats

Non-null

Returns current stats about the Cloudflare cache purge system (admin only)

canRegisterDevice

Non-null

Returns a boolean value which indicates if the organisation can register a new device

catalogAttributeStats

Non-null

Returns organisation-level counts for catalog products, product types, attributes, and attribute values.

catalogMetadataFields

Non-null

Returns catalog metadata fields with implicit raw and user-defined view/split transforms.

catalogOrganisationCategoryPaths

[ String !]!
Non-null

Returns the distinct list of product classification category paths for the current organisation.

catalogProductTypeOptions

[ String !]!
Non-null

Returns distinct product type names for the current organisation, sorted ascending.

catalogProductTypes

Non-null

Returns paginated catalog product types for the current organisation with AI key attributes when available.

catalogProducts

Non-null

Returns paginated catalog products for the current organisation using the current product type assignment.

catalogVendorOptions

[ String !]!
Non-null

Returns distinct vendor names for the current organisation, sorted ascending.

chartAverageSaleValueRecords

Non-null

chartEngagementRecords

Non-null

chartSalesValueRecords

Non-null

checkoutFlow

Returns a checkout flow entity

checkoutFlows

Non-null

Returns a paginated array of checkout flows

cloudshelf

Returns a Cloudshelf entity

cloudshelfEnginePayload

Non-null

cloudshelfList

Non-null

Returns a paginated array of Cloudshelves

cloudshelfStaffRoles

[ Role !]!
Non-null

Returns all Cloudshelf internal staff roles. Requires Cloudshelf staff permissions.

cloudshelfStaffUsers

Non-null

Returns a paginated list of Cloudshelf staff users. Requires Cloudshelf staff permissions.

cloudshelves

Non-null

Returns a paginated array of Cloudshelves

createPaymentAttempt

Non-null

customToken

An internal function for getting a Cloudshelf Authentication Token.

dashboard

Returns a dashboard entity

dashboardChartParamKeys

Non-null

Returns the keys a Metabase parameter can be mapped to: the session_activity columns plus the fixed dashboard dimensions. Requires Cloudshelf staff.

dashboardChartParamOptions

Returns the option values configured on a single Metabase question parameter, or null when Metabase provides no complete list (or is unreachable). Requires Cloudshelf staff.

dashboardChartParams

Non-null

Returns the params each given chart maps, with resolved defaults. Lets the manager build a chart's per-chart override form before the chart is saved onto a dashboard (unlike the dashboard-level requiredParams , which only reflects saved cells).

dashboardChartsAdmin

Non-null

Returns a paginated dashboard chart registry synced from Metabase, including param mappings and visibility. Supports text search, filtering, and sorting. Requires Cloudshelf staff.

dashboardSalesSummary

Non-null

dashboardSessionSummary

Non-null

dashboardSubscriptionSummary

Non-null

dashboards

Non-null

Returns the organisation's dashboards. Creates the default dashboard if the organisation has none.

device

Returns a Device entity

deviceLocationConstraints

Non-null

Returns device location constraints and availability. Pass deviceId to show availability for moving a specific device.

devices

Non-null

Returns a paginated array of Devices.

eCommercePlatformDisplayNames

[ String !]!
Non-null

Returns the distinct e-commerce platform display names currently in use, excluding built-in platform values (Shopify, SALESFORCE_B2C, Custom).

effectiveTaskConfig

Returns the effective task configuration (defaults + org overrides) for a given task

engineProductsBlock

Non-null

exchangeRates

Non-null

Returns the exchange rates for a given currency code in GBP, USD, and EUR

filter

Returns a Filter entity

generateBuyersGuideInsightsForProducts

Non-null

generateMetabaseQuestion40Embed

Non-null

getDevices

Non-null

Returns a paginated array of Devices with advanced filtering and sorting.

getFractionalPaymentEligibility

Non-null

getHandoffPayload

Non-null

getLocations

Non-null

Returns a paginated array of locations

getMobileHandoff

getPaymentRequest

Non-null

getPaymentToken

Non-null

getPresignedCustomisationUrl

Non-null

getPresignedImageUploadUrls

Non-null

getVersionByType

Non-null

googleFonts

Non-null

ibvEnrichmentStats

Non-null

Returns organisation-level IBV enrichment workflow status, per-phase progress, and counts of classified products, enriched products, and complement recommendations.

includeableFilters

Non-null

Returns all filters that can possibly be included for this organisation

ingestionStats

Non-null

isInMaintenanceMode

Non-null

isTrackedURLScanned

Non-null

location

Returns a location entity

locations

Non-null

Returns a paginated array of locations

me

Non-null

Returns the currently authenticated user.

metabaseEmbedUrl

Non-null

Returns a signed Metabase iframe URL for the given question, with the caller's organisationId locked into the embed token. The question must be published for embedding in Metabase. Supplied dashboard param values are resolved through the chart's param mappings and signed into the token. URL is short-lived (~10 minutes).

metabaseEmbeddableQuestions

Non-null

Lists Metabase questions published for static embedding. Sourced live from Metabase.

metadataKeyEntries

Non-null

Returns all metadata key + namespace pairs available to the organisation.

metadataKeyEntriesForOrganisationAdmin

Non-null

Returns all metadata key + namespace pairs for a specific organisation (admin only).

metadataKeyStatuses

Non-null

Returns metadata keys available for selection, plus whether they need another sync.

metadataKeys

[ String !]!
Non-null

metadataKeysForOrganisationAdmin

[ String !]!
Non-null

Returns all metadata keys for a specific organisation (admin only).

metadataPreviewSamples

[ String !]!
Non-null

Recent metadata values for a metadata key, for view and split previews in manager.

myMfaPolicy

Non-null

Returns the authenticated Firebase user's staff MFA policy state.

mySwitchableOrganisationAccessRights

Non-null

Returns genuine organisation memberships the authenticated user may switch to.

mySyncErrors

Non-null

Errors recorded during the most recent sync for the authenticated organisation.

onboardingCallAvailability

Non-null

Upcoming slots and team members for the free onboarding call, from the HubSpot round-robin scheduling page. Returns available=false when the scheduler is not configured or unreachable.

onlineFilterSearchBlockFast

Non-null

onlineIbvProductSearchBlock

Non-null

onlineIbvProductSearchDiagnostics

Non-null

order

Returns an Order entity.

orders

Non-null

Returns a paginated array of Order entities

organisation

Returns an Organisation entity

organisationAdminListOptimized

Non-null

Returns a paginated optimized admin list of organisations with derived table values.

organisationApiKeys

Non-null

organisationFonts

Non-null

organisationInstallComplete

Returns if the install has been completed for an organisation

organisationList

Non-null

Returns a paginated list of organisations

organisationRequiresStockSync

Non-null

Returns true if any CloudShelf uses device or named location stock relevance

organisationSyncErrorsByDomain

Non-null

Errors recorded during the most recent sync for the organisation with the given domain name.

organisationSyncErrorsById

Non-null

Errors recorded during the most recent sync for the organisation with the given id.

organisationSyncStatusByDomain

Non-null

organisationSyncStatusById

Non-null

organisationUsers

Non-null

Returns a paginated array of user access rights for the current organisation

organisations

Non-null

Returns a paginated array of organisations

plugins

Non-null

Returns a paginated array of plugins

product

Returns a Product entity.

productGroup

Returns a Product Group

productGroups

Non-null

Returns a paginated array of product groups

productTypesForOrganisationAdmin

Non-null

Returns distinct product types for a selected organisation for staff admin tools

productVariant

Returns a ProductVariant entity.

productVariants

Non-null

Returns a paginated array of ProductVariant entities.

products

Non-null

Returns a paginated array of Product entities.

publicDevice

Returns public information about a device

publishedConfig

Returns the last published config for a given entity, or generates a new one with pending changes if requested

role

Returns a role by its ID

roles

Non-null

Returns a paginated list of roles for the current organisation

salesAssistant

Returns a sales assistant entity

salesAssistants

Non-null

Returns a paginated array of Sales Assistants

sessions

[ Session !]!
Non-null

staffApiKeys

Non-null

subscription

Returns a subscription entity

subscriptionCurrentOrg

This is an internal function. This function is not intended to be included in the final release. Only exists due to CS-1273

subscriptionPlans

Returns a list of currently available subscription plans

syncStats

Non-null

syncStatsToConnector

Non-null

syncedCatalogMetadataFields

Non-null

Returns catalog metadata fields that have synced metadata values available for cloudshelf use.

tagsInBuyersGuide

[ String !]!
Non-null

testAI2

Non-null

Test AI functionality with optional chat ID and message

testOtelError

Non-null

Internal test query that throws an error to verify OTel error tracing

theme

Returns a theme entity

themes

Non-null

Returns a paginated array of Themes

triggerJobs

Non-null

Returns pending/running Trigger.dev jobs and average runtimes for an organisation

tutorial

Returns a single tutorial by id, or null. Requires Cloudshelf staff.

tutorials

[ Tutorial !]!
Non-null

Returns every authored tutorial, most-recently-updated first. Requires Cloudshelf staff.

uptimeRecords

Non-null

usageStatsSessions

Non-null

user

Non-null

Returns a User entity

variantOptionNameOptions

Non-null

Returns paginated distinct product variant option names used by the current organisation.

variantOptionNames

[ String !]!
Non-null

Returns distinct product variant option names used by the current organisation.

version

Non-null

Returns the current version and environment type of the API

webhook

Query a webhook by ID

webhooks

Non-null

Query the list of registered webhooks