TanqoryDocs

tanqoryqlQuery

  • Query
  • Apps and platform

Requires read_reports access scope. About access scopes

Runs a TanqoryQL query on the store's records and returns the result as a table. A query with syntax errors returns parseErrors instead of tableData.

Arguments

ArgumentTypeRequiredDefault
queryString!Required

Returns

TanqoryqlQueryResponse The result of a TanqoryQL query: the tableData columns and rows, or parseErrors and warnings when the query could not run.

FieldTypeDescription
analyticsTargets[AnalyticsTarget!]!
parseErrors[String!]!
parseWarnings[String!]!
tableDataTanqoryqlTableData

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 TanqoryqlQuery($query: String!) {\n  tanqoryqlQuery(query: $query) {\n    analyticsTargets { id }\n    parseErrors\n    parseWarnings\n  }\n}","variables":{"query":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10