TanqoryDocs

tanqoryExtAiThread

  • Query
  • Apps and platform

One of the staff member's conversations, or null. Needs ai.use.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtAiThread

FieldTypeDescription
actions[TanqoryExtAiAction!]!

Every write the assistant proposed in this conversation, whatever became of it, oldest first (at most the last 200), so a reopened conversation shows each card with its outcome. A PENDING write past expiresAt is shown EXPIRED (it can no longer be approved), with decidedAt = expiresAt. Empty in tanqoryExtAiThreads and the rename payload.

createdAtString!
idID!

The id the client gave the conversation (the threadId of endpoint 2).

lastRunTanqoryExtAiRun

The latest run, so a client that reopens the conversation can reattach to it on endpoint 2.

messages[TanqoryExtAiMessage!]!

The conversation's messages, oldest first (at most the last 200).

pendingActions[TanqoryExtAiAction!]!

Writes of this conversation still waiting for a decision.

titleString!
updatedAtString!

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 TanqoryExtAiThread($id: ID!) {\n  tanqoryExtAiThread(id: $id) {\n    actions { id }\n    createdAt\n    id\n    lastRun { id }\n    messages { id }\n    pendingActions { id }\n    title\n    updatedAt\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10