Skip to main content

Queries

Use a GraphQL query when you need to retrieve data from the server. GraphQL queries are comparable to GET requests in REST APIs. When forming a query, as well as the query name you must specify the output object in the correct format by using nested subfields until you return only scalars. GraphQL queries return only the data you specify. The available fields for each query are defined in the query's Type section and are detailed under Objects. Some queries also require arguments to be specified.

Assets
Link copied!

viewer
Link copied!

Retrieve the current user or API client

See also: Concepts: viewer, media hubs and repositories

viewer: User

Returns: User

node
Link copied!

node(
id: ID!
): Node

Returns: Node

Arguments:

ArgumentTypeDefaultDescription
idID!

asset
Link copied!

asset(
id: ID!
): Asset

Returns: Asset

Arguments:

ArgumentTypeDefaultDescription
idID!

assets
Link copied!

Retrieve multiple assets by their ID

See also: Examples: getting an asset by ID

assets(
id: [ID!]
assetId: [String!]
): AssetSearchConnection!

Returns: AssetSearchConnection!

Arguments:

ArgumentTypeDefaultDescription
id[ID!]ID of the assets
assetId[String!]UUID of the assets

assetSearch
Link copied!

Asset Search Query

See also: Asset search conventions

assetSearch(
keyword: String = "*"
fields: [SearchableFields!]
filters: FilterFields
sort: SortableFields
before: String
after: String
first: Int
last: Int
): AssetSearchConnection!

Returns: AssetSearchConnection!

Arguments:

ArgumentTypeDefaultDescription
keywordString"*"Terms or phrases to search for. A term is a single word. A phrase is a group of words enclosed in double quotes. Quotes must be escaped in the GraphQL query using a backslash e.g. "\"Darth Vader\"". The wildcard character * can be used e.g. "Darth " to return "Darth Vader, Darth Sidious, Darth Maul". "" cannot be used at the start of a term or phrase, as this has a negative performance impact. The following boolean operators are supported: AND OR NOT + -. Parentheses can be used to form sub-queries e.g. "(red* OR green*) AND XS_*". MaxLength of keyword: 1000
fields[SearchableFields!]Fields to search against - restricts the fields the keyword search applies to. Defaults to search against all SearchableFields if not supplied
filtersFilterFieldsFilter results based on the field values
sortSortableFieldsFields to sort asset search results by. When a sort is supplied in case of a tie break the default sort is applied after the specified sort.If a sort is not supplied the default will be applied. The default sort is score desc, ID desc.
beforeStringCursor to start from when paginating backwards
afterStringCursor to start from when paginating forwards
firstIntSpecifies the number of results to return. Required when after cursor is used. Cannot be used with before cursor. Defaults to 20 results if not supplied.
lastIntSpecifies the number of results to return when paginating backwards. Must be used with before cursor.

assetFolder
Link copied!

assetFolder(
id: ID!
): AssetFolder

Returns: AssetFolder

Arguments:

ArgumentTypeDefaultDescription
idID!

assetRepository
Link copied!

assetRepository(
id: ID!
): AssetRepository

Returns: AssetRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

assetUpdatedResponse
Link copied!

assetUpdatedResponse(
id: ID!
): AssetUpdatedResponse

Returns: AssetUpdatedResponse

Arguments:

ArgumentTypeDefaultDescription
idID!

createFolderResponse
Link copied!

createFolderResponse(
id: ID!
): CreateFolderResponse

Returns: CreateFolderResponse

Arguments:

ArgumentTypeDefaultDescription
idID!

updateAssetMetadataResponse
Link copied!

updateAssetMetadataResponse(
id: ID!
): UpdateAssetMetadataResponse

Returns: UpdateAssetMetadataResponse

Arguments:

ArgumentTypeDefaultDescription
idID!

Media hub
Link copied!

mediaHub
Link copied!

mediaHub(
id: ID!
): MediaHub

Returns: MediaHub

Arguments:

ArgumentTypeDefaultDescription
idID!

videoTranscodingProfile
Link copied!

See also: Examples: listing transcoding profiles

videoTranscodingProfile(
id: ID!
): VideoTranscodingProfile

Returns: VideoTranscodingProfile

Arguments:

ArgumentTypeDefaultDescription
idID!

virtualStagingEnvironment
Link copied!

virtualStagingEnvironment(
id: ID!
): VirtualStagingEnvironment

Returns: VirtualStagingEnvironment

Arguments:

ArgumentTypeDefaultDescription
idID!

Organization & users
Link copied!

organization
Link copied!

organization(
id: ID!
): Organization

Returns: Organization

Arguments:

ArgumentTypeDefaultDescription
idID!

user
Link copied!

user(
id: ID!
): User

Returns: User

Arguments:

ArgumentTypeDefaultDescription
idID!

team
Link copied!

team(
id: ID!
): Team

Returns: Team

Arguments:

ArgumentTypeDefaultDescription
idID!

invitation
Link copied!

invitation(
id: ID!
): Invitation

Returns: Invitation

Arguments:

ArgumentTypeDefaultDescription
idID!

personalAccessToken
Link copied!

See also: Examples: personal access tokens

personalAccessToken(
id: ID!
): PersonalAccessToken

Returns: PersonalAccessToken

Arguments:

ArgumentTypeDefaultDescription
idID!

CMS
Link copied!

cmsHub
Link copied!

cmsHub(
id: ID!
): CMSHub

Returns: CMSHub

Arguments:

ArgumentTypeDefaultDescription
idID!

cmsRepository
Link copied!

cmsRepository(
id: ID!
): CMSRepository

Returns: CMSRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

Commerce
Link copied!

bigCommerceCommerceProduct
Link copied!

bigCommerceCommerceProduct(
id: ID!
): BigCommerceCommerceProduct

Returns: BigCommerceCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

bigCommerceCommerceCategory
Link copied!

bigCommerceCommerceCategory(
id: ID!
): BigCommerceCommerceCategory

Returns: BigCommerceCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

bigCommerceCommerceRepository
Link copied!

bigCommerceCommerceRepository(
id: ID!
): BigCommerceCommerceRepository

Returns: BigCommerceCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

shopifyCommerceProduct
Link copied!

shopifyCommerceProduct(
id: ID!
): ShopifyCommerceProduct

Returns: ShopifyCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

shopifyCommerceCategory
Link copied!

shopifyCommerceCategory(
id: ID!
): ShopifyCommerceCategory

Returns: ShopifyCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

shopifyCommerceRepository
Link copied!

shopifyCommerceRepository(
id: ID!
): ShopifyCommerceRepository

Returns: ShopifyCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

salesforceCommerceProduct
Link copied!

salesforceCommerceProduct(
id: ID!
): SalesforceCommerceProduct

Returns: SalesforceCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

salesforceCommerceCategory
Link copied!

salesforceCommerceCategory(
id: ID!
): SalesforceCommerceCategory

Returns: SalesforceCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

salesforceCommerceRepository
Link copied!

salesforceCommerceRepository(
id: ID!
): SalesforceCommerceRepository

Returns: SalesforceCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

commercetoolsCommerceProduct
Link copied!

commercetoolsCommerceProduct(
id: ID!
): CommercetoolsCommerceProduct

Returns: CommercetoolsCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

commercetoolsCommerceCategory
Link copied!

commercetoolsCommerceCategory(
id: ID!
): CommercetoolsCommerceCategory

Returns: CommercetoolsCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

commercetoolsCommerceRepository
Link copied!

commercetoolsCommerceRepository(
id: ID!
): CommercetoolsCommerceRepository

Returns: CommercetoolsCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

scayleCommerceProduct
Link copied!

scayleCommerceProduct(
id: ID!
): ScayleCommerceProduct

Returns: ScayleCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

scayleCommerceCategory
Link copied!

scayleCommerceCategory(
id: ID!
): ScayleCommerceCategory

Returns: ScayleCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

scayleCommerceRepository
Link copied!

scayleCommerceRepository(
id: ID!
): ScayleCommerceRepository

Returns: ScayleCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

jsonFileFeedCommerceProduct
Link copied!

jsonFileFeedCommerceProduct(
id: ID!
): JsonFileFeedCommerceProduct

Returns: JsonFileFeedCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

jsonFileFeedCommerceCategory
Link copied!

jsonFileFeedCommerceCategory(
id: ID!
): JsonFileFeedCommerceCategory

Returns: JsonFileFeedCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

jsonFileFeedCommerceRepository
Link copied!

jsonFileFeedCommerceRepository(
id: ID!
): JsonFileFeedCommerceRepository

Returns: JsonFileFeedCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

xmlFileFeedCommerceProduct
Link copied!

xmlFileFeedCommerceProduct(
id: ID!
): XmlFileFeedCommerceProduct

Returns: XmlFileFeedCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

xmlFileFeedCommerceCategory
Link copied!

xmlFileFeedCommerceCategory(
id: ID!
): XmlFileFeedCommerceCategory

Returns: XmlFileFeedCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

xmlFileFeedCommerceRepository
Link copied!

xmlFileFeedCommerceRepository(
id: ID!
): XmlFileFeedCommerceRepository

Returns: XmlFileFeedCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

csvFileFeedCommerceProduct
Link copied!

csvFileFeedCommerceProduct(
id: ID!
): CsvFileFeedCommerceProduct

Returns: CsvFileFeedCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

csvFileFeedCommerceCategory
Link copied!

csvFileFeedCommerceCategory(
id: ID!
): CsvFileFeedCommerceCategory

Returns: CsvFileFeedCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

csvFileFeedCommerceRepository
Link copied!

csvFileFeedCommerceRepository(
id: ID!
): CsvFileFeedCommerceRepository

Returns: CsvFileFeedCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

googleProductFeedCommerceProduct
Link copied!

googleProductFeedCommerceProduct(
id: ID!
): GoogleProductFeedCommerceProduct

Returns: GoogleProductFeedCommerceProduct

Arguments:

ArgumentTypeDefaultDescription
idID!

googleProductFeedCommerceCategory
Link copied!

googleProductFeedCommerceCategory(
id: ID!
): GoogleProductFeedCommerceCategory

Returns: GoogleProductFeedCommerceCategory

Arguments:

ArgumentTypeDefaultDescription
idID!

googleProductFeedCommerceRepository
Link copied!

googleProductFeedCommerceRepository(
id: ID!
): GoogleProductFeedCommerceRepository

Returns: GoogleProductFeedCommerceRepository

Arguments:

ArgumentTypeDefaultDescription
idID!

Content generation
Link copied!

contentGenerationModel
Link copied!

contentGenerationModel(
id: ID!
): ContentGenerationModel

Returns: ContentGenerationModel

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationAudience
Link copied!

contentGenerationAudience(
id: ID!
): ContentGenerationAudience

Returns: ContentGenerationAudience

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationBrandVoice
Link copied!

contentGenerationBrandVoice(
id: ID!
): ContentGenerationBrandVoice

Returns: ContentGenerationBrandVoice

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationTone
Link copied!

contentGenerationTone(
id: ID!
): ContentGenerationTone

Returns: ContentGenerationTone

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationJob
Link copied!

contentGenerationJob(
id: ID!
): ContentGenerationJob

Returns: ContentGenerationJob

Arguments:

ArgumentTypeDefaultDescription
idID!

contentFlow
Link copied!

contentFlow(
id: ID!
): ContentFlow

Returns: ContentFlow

Arguments:

ArgumentTypeDefaultDescription
idID!

contentFlowRun
Link copied!

contentFlowRun(
id: ID!
): ContentFlowRun

Returns: ContentFlowRun

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationSessionMessage
Link copied!

contentGenerationSessionMessage(
id: ID!
): ContentGenerationSessionMessage

Returns: ContentGenerationSessionMessage

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationSession
Link copied!

contentGenerationSession(
id: ID!
): ContentGenerationSession

Returns: ContentGenerationSession

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationBriefTemplate
Link copied!

contentGenerationBriefTemplate(
id: ID!
): ContentGenerationBriefTemplate

Returns: ContentGenerationBriefTemplate

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationExample
Link copied!

contentGenerationExample(
id: ID!
): ContentGenerationExample

Returns: ContentGenerationExample

Arguments:

ArgumentTypeDefaultDescription
idID!

contentGenerationExampleFolder
Link copied!

contentGenerationExampleFolder(
id: ID!
): ContentGenerationExampleFolder

Returns: ContentGenerationExampleFolder

Arguments:

ArgumentTypeDefaultDescription
idID!

Content review
Link copied!

contentReview
Link copied!

contentReview(
id: ID!
): ContentReview

Returns: ContentReview

Arguments:

ArgumentTypeDefaultDescription
idID!

contentReviewTask
Link copied!

contentReviewTask(
id: ID!
): ContentReviewTask

Returns: ContentReviewTask

Arguments:

ArgumentTypeDefaultDescription
idID!

Extensions
Link copied!

extension
Link copied!

extension(
id: ID!
): Extension

Returns: Extension

Arguments:

ArgumentTypeDefaultDescription
idID!

extensionRelease
Link copied!

extensionRelease(
id: ID!
): ExtensionRelease

Returns: ExtensionRelease

Arguments:

ArgumentTypeDefaultDescription
idID!

extensionInstance
Link copied!

extensionInstance(
id: ID!
): ExtensionInstance

Returns: ExtensionInstance

Arguments:

ArgumentTypeDefaultDescription
idID!

AI & media tools
Link copied!

transformationTemplate
Link copied!

transformationTemplate(
id: ID!
): TransformationTemplate

Returns: TransformationTemplate

Arguments:

ArgumentTypeDefaultDescription
idID!

previewKey
Link copied!

previewKey(
id: ID!
): PreviewKey

Returns: PreviewKey

Arguments:

ArgumentTypeDefaultDescription
idID!

webhookListener
Link copied!

webhookListener(
id: ID!
): WebhookListener

Returns: WebhookListener

Arguments:

ArgumentTypeDefaultDescription
idID!

magicEraseImageJob
Link copied!

magicEraseImageJob(
id: ID!
): MagicEraseImageJob

Returns: MagicEraseImageJob

Arguments:

ArgumentTypeDefaultDescription
idID!