TanqoryDocs

tanqoryExtAiAppControls

  • Query
  • Apps and platform

Tanqory AI for each partner app installed on the store that holds the write_ai_generations access scope: its credit limit per period, what it used this period and whether AI is on for it. A staff member with the ai.manage permission (the store owner and admins hold it).

Arguments

None.

Returns

[TanqoryExtAiAppControl!]! Tanqory AI for one partner app installed on the store that holds the write_ai_generations access scope (PLATFORM §6.8): its credit limit per credit period and whether it may use AI at all.

FieldTypeDescription
appApp!
creditsUsedFloat!

Credits the app used in the current credit period, exact to 0.001.

defaultCapBoolean!

True when no limit was set for this app, so the default applies.

enabledBoolean!

False when an owner or admin turned Tanqory AI off for this app: every AI request of the app is refused.

monthlyCapFloat!

Credits the app may spend in a credit period: the limit set for it, else the default.

periodEndsAtDateTime

When the current credit period ends and the limit starts again; null before the store's first period.

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
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 TanqoryExtAiAppControls {\n  tanqoryExtAiAppControls {\n    app { id }\n    creditsUsed\n    defaultCap\n    enabled\n    monthlyCap\n    periodEndsAt\n  }\n}","variables":{}}'

Built from commit 0cac88ece6de · API version 2026-10