tanqoryExtAnalyticsEvents
- Query
- Apps and platform
The events a report chart can mark (the Annotations panel): annotations staff and apps created, and the store's app installs and uninstalls, that overlap [since, until), oldest first.
Arguments
Returns
[TanqoryExtAnalyticsEvent!]! One event on the annotation rail.
| Field | Type | Description |
|---|---|---|
appTitle | String | The app that created the annotation, or that was installed. |
category | String! | product_events, marketing_events, discount_events, inventory_events, online_store_events, operation_events, custom_events or app_events. |
deletable | Boolean! | Whether the caller may delete it (staff annotations). |
description | String | |
endedAt | DateTime | |
id | ID! | An annotation's ID, or a synthetic id for an app install (app-installed:<installation id>). |
kind | String! | ANNOTATION, THEME_PUBLISHED (a change of the live theme; its title is the theme name), APP_INSTALLED or APP_UNINSTALLED. |
source | AnalyticsAnnotationSource! | STAFF, APP or TANQORY (app installs are recorded by Tanqory). |
startedAt | DateTime! | |
title | String! | |
type | String | The annotation's type within its category, e.g. campaign. |
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 TanqoryExtAnalyticsEvents($since: DateTime!, $until: DateTime!) {\n tanqoryExtAnalyticsEvents(since: $since, until: $until) {\n appTitle\n category\n deletable\n description\n endedAt\n id\n kind\n source\n startedAt\n title\n }\n}","variables":{"since":"","until":""}}'// Node.js 18 or later (fetch is built in). Save as request.mjs and run: node request.mjs
const query = `query TanqoryExtAnalyticsEvents(\$since: DateTime!, \$until: DateTime!) {
tanqoryExtAnalyticsEvents(since: \$since, until: \$until) {
appTitle
category
deletable
description
endedAt
id
kind
source
startedAt
title
}
}`;
const variables = {
"since": "",
"until": ""
};
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 TanqoryExtAnalyticsEvents($since: DateTime!, $until: DateTime!) {
tanqoryExtAnalyticsEvents(since: $since, until: $until) {
appTitle
category
deletable
description
endedAt
id
kind
source
startedAt
title
}
}"""
variables = json.loads("""{
"since": "",
"until": ""
}""")
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))