TanqoryDocs

tanqoryExtAiUsage

  • Query
  • Other operations

The store's AI usage between since and until (default: the current credit period up to now; at most 366 days). The store owner or an admin see everyone's; another staff member sees their own.

Arguments

ArgumentTypeRequiredDefault
sinceDateTimeOptional
untilDateTimeOptional

Returns

TanqoryExtAiUsage! The store's AI usage over a time range (PLATFORM §6.9): totals, breakdowns and the activity, newest first.

FieldTypeDescription
activityTanqoryExtAiUsageConnection!

Every model call, newest first.

byCaller[TanqoryExtAiUsageGroup!]!
byDay[TanqoryExtAiUsageGroup!]!
byFeature[TanqoryExtAiUsageGroup!]!
byModel[TanqoryExtAiUsageGroup!]!
byStaff[TanqoryExtAiUsageGroup!]!
creditsFloat!
operationsInt!

Model calls.

sinceDateTime!
untilDateTime!
useActivityTanqoryExtAiUseConnection!

Every use, newest first: what the usage page lists (an assistant reply once, with its steps).

usesInt!

What was asked for (an assistant reply is one use however many steps it took).

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 TanqoryExtAiUsage {\n  tanqoryExtAiUsage {\n    credits\n    operations\n    since\n    until\n    uses\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10