TanqoryDocs

tanqoryExtMarketingAutopilot

  • Query
  • Orders and payments

The store's Campaign Autopilot; the first read starts it (INITIALIZED, CATALOG_ANALYZED, SALES_ANALYZED).

Arguments

None.

Returns

TanqoryExtMarketingAutopilot! The store's Campaign Autopilot.

FieldTypeDescription
activities[TanqoryExtMarketingAutopilotActivity!]!

The activity timeline, newest first (default 20, max 100).

  • first: Int = 20
canRunCampaignsBoolean!

Whether campaigns can run: no setup step left and an ad channel connected.

createdAtDateTime!
idID!
languages[String!]!

Languages Autopilot writes ads in. Starts as the store's primary locale.

permissionTanqoryExtMarketingAutopilotPermission!
regions[String!]!

Countries Autopilot targets (ISO 3166-1 alpha-2). Starts as the store's country.

setupSteps[TanqoryExtMarketingAutopilotSetupStep!]!

Setup steps left before Autopilot can run campaigns.

targetCustomerAcquisitionCostMoneyV2

Most to spend to win one new customer, in the store currency. Null when not set.

targetReturnOnAdSpendFloat

Target return on ad spend, as a multiple of spend. Null when not set.

updatedAtDateTime!

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 TanqoryExtMarketingAutopilot {\n  tanqoryExtMarketingAutopilot {\n    activities { id }\n    canRunCampaigns\n    createdAt\n    id\n    languages\n    permission\n    regions\n    setupSteps\n    targetCustomerAcquisitionCost {\n      amount\n      currencyCode\n    }\n    targetReturnOnAdSpend\n  }\n}","variables":{}}'

Built from commit c0b3fb3fdef7 · API version 2026-10