tanqoryExtThemeAppEmbeds
- Query
- Apps and platform
The app embeds of the apps installed on the store, by app title then embed name, each with whether it is on for the theme. themeId is the theme editor's theme id (sfc-<installation id> or sfc-draft-<16 hex>). Empty for a theme that is not this store's.
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
themeId | String! | Required |
Returns
[TanqoryExtThemeAppEmbed!]! One app embed of an installed app, and whether it is on for the theme asked about.
| Field | Type | Description |
|---|---|---|
app | App! | The app that ships it. |
enabled | Boolean! | Whether the embed is on for this theme. |
handle | String! | The embed's handle, unique in its app. |
name | String! | The embed's name, as the app names it. |
placement | String! | Where the storefront adds the script: |
Example request
A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.
Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
-H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data '{"query":"query TanqoryExtThemeAppEmbeds($themeId: String!) {\n tanqoryExtThemeAppEmbeds(themeId: $themeId) {\n app { id }\n enabled\n handle\n name\n placement\n }\n}","variables":{"themeId":""}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtThemeAppEmbeds(\$themeId: String!) {
tanqoryExtThemeAppEmbeds(themeId: \$themeId) {
app { id }
enabled
handle
name
placement
}
}`;
const variables = {
"themeId": ""
};
const res = await fetch(`https://api.tanqory.com/admin/2026-10/stores/${process.env.STORE_ID}/graphql`, {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.TANQORY_ACCESS_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({ query, variables }),
});
console.log(res.status, JSON.stringify(await res.json(), null, 2));# Python 3, standard library only. Save as request.py and run: python3 request.py
import json, os, urllib.request
query = """query TanqoryExtThemeAppEmbeds($themeId: String!) {
tanqoryExtThemeAppEmbeds(themeId: $themeId) {
app { id }
enabled
handle
name
placement
}
}"""
variables = json.loads("""{
"themeId": ""
}""")
req = urllib.request.Request(
"https://api.tanqory.com/admin/2026-10/stores/" + os.environ["STORE_ID"] + "/graphql",
data=json.dumps({"query": query, "variables": variables}).encode(),
headers={
"Authorization": "Bearer " + os.environ["TANQORY_ACCESS_TOKEN"],
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as res:
print(res.status, json.dumps(json.load(res), indent=2))