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.
AssetsLink copied!
viewerLink copied!
Retrieve the current user or API client
See also: Concepts: viewer, media hubs and repositories
Returns: User
nodeLink copied!
Returns: Node
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
assetLink copied!
Returns: Asset
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
assetsLink copied!
Retrieve multiple assets by their ID
See also: Examples: getting an asset by ID
Returns: AssetSearchConnection!
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | [ID!] | ID of the assets | |
assetId | [String!] | UUID of the assets |
assetSearchLink copied!
Asset Search Query
See also: Asset search conventions
Returns: AssetSearchConnection!
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
keyword | String | "*" | 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 | |
filters | FilterFields | Filter results based on the field values | |
sort | SortableFields | Fields 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. | |
before | String | Cursor to start from when paginating backwards | |
after | String | Cursor to start from when paginating forwards | |
first | Int | Specifies 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. | |
last | Int | Specifies the number of results to return when paginating backwards. Must be used with before cursor. |
assetFolderLink copied!
Returns: AssetFolder
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
assetRepositoryLink copied!
Returns: AssetRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
assetUpdatedResponseLink copied!
Returns: AssetUpdatedResponse
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
createFolderResponseLink copied!
Returns: CreateFolderResponse
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
updateAssetMetadataResponseLink copied!
Returns: UpdateAssetMetadataResponse
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
Media hubLink copied!
mediaHubLink copied!
Returns: MediaHub
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
videoTranscodingProfileLink copied!
See also: Examples: listing transcoding profiles
Returns: VideoTranscodingProfile
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
virtualStagingEnvironmentLink copied!
Returns: VirtualStagingEnvironment
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
Organization & usersLink copied!
organizationLink copied!
Returns: Organization
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
userLink copied!
Returns: User
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
teamLink copied!
Returns: Team
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
invitationLink copied!
Returns: Invitation
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
personalAccessTokenLink copied!
See also: Examples: personal access tokens
Returns: PersonalAccessToken
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
CMSLink copied!
cmsHubLink copied!
Returns: CMSHub
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
cmsRepositoryLink copied!
Returns: CMSRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
CommerceLink copied!
bigCommerceCommerceProductLink copied!
Returns: BigCommerceCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
bigCommerceCommerceCategoryLink copied!
Returns: BigCommerceCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
bigCommerceCommerceRepositoryLink copied!
Returns: BigCommerceCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
shopifyCommerceProductLink copied!
Returns: ShopifyCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
shopifyCommerceCategoryLink copied!
Returns: ShopifyCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
shopifyCommerceRepositoryLink copied!
Returns: ShopifyCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
salesforceCommerceProductLink copied!
Returns: SalesforceCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
salesforceCommerceCategoryLink copied!
Returns: SalesforceCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
salesforceCommerceRepositoryLink copied!
Returns: SalesforceCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
commercetoolsCommerceProductLink copied!
Returns: CommercetoolsCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
commercetoolsCommerceCategoryLink copied!
Returns: CommercetoolsCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
commercetoolsCommerceRepositoryLink copied!
Returns: CommercetoolsCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
scayleCommerceProductLink copied!
Returns: ScayleCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
scayleCommerceCategoryLink copied!
Returns: ScayleCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
scayleCommerceRepositoryLink copied!
Returns: ScayleCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
jsonFileFeedCommerceProductLink copied!
Returns: JsonFileFeedCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
jsonFileFeedCommerceCategoryLink copied!
Returns: JsonFileFeedCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
jsonFileFeedCommerceRepositoryLink copied!
Returns: JsonFileFeedCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
xmlFileFeedCommerceProductLink copied!
Returns: XmlFileFeedCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
xmlFileFeedCommerceCategoryLink copied!
Returns: XmlFileFeedCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
xmlFileFeedCommerceRepositoryLink copied!
Returns: XmlFileFeedCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
csvFileFeedCommerceProductLink copied!
Returns: CsvFileFeedCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
csvFileFeedCommerceCategoryLink copied!
Returns: CsvFileFeedCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
csvFileFeedCommerceRepositoryLink copied!
Returns: CsvFileFeedCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
googleProductFeedCommerceProductLink copied!
Returns: GoogleProductFeedCommerceProduct
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
googleProductFeedCommerceCategoryLink copied!
Returns: GoogleProductFeedCommerceCategory
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
googleProductFeedCommerceRepositoryLink copied!
Returns: GoogleProductFeedCommerceRepository
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
Content generationLink copied!
contentGenerationModelLink copied!
Returns: ContentGenerationModel
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationAudienceLink copied!
Returns: ContentGenerationAudience
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationBrandVoiceLink copied!
Returns: ContentGenerationBrandVoice
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationToneLink copied!
Returns: ContentGenerationTone
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationJobLink copied!
Returns: ContentGenerationJob
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentFlowLink copied!
Returns: ContentFlow
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentFlowRunLink copied!
Returns: ContentFlowRun
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationSessionMessageLink copied!
Returns: ContentGenerationSessionMessage
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationSessionLink copied!
Returns: ContentGenerationSession
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationBriefTemplateLink copied!
Returns: ContentGenerationBriefTemplate
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationExampleLink copied!
Returns: ContentGenerationExample
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentGenerationExampleFolderLink copied!
Returns: ContentGenerationExampleFolder
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
Content reviewLink copied!
contentReviewLink copied!
Returns: ContentReview
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
contentReviewTaskLink copied!
Returns: ContentReviewTask
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
ExtensionsLink copied!
extensionLink copied!
Returns: Extension
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
extensionReleaseLink copied!
Returns: ExtensionRelease
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
extensionInstanceLink copied!
Returns: ExtensionInstance
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
AI & media toolsLink copied!
transformationTemplateLink copied!
Returns: TransformationTemplate
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
previewKeyLink copied!
Returns: PreviewKey
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
webhookListenerLink copied!
Returns: WebhookListener
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |
magicEraseImageJobLink copied!
Returns: MagicEraseImageJob
Arguments:
| Argument | Type | Default | Description |
|---|---|---|---|
id | ID! |