Meet Toki Operator

Docs/Manage API

Portal tools

Design embeds and integration lookups.

query

moduleSettingEmbedTags#

Returns HTML embed tags for a design owned by the current merchant and the current shop.

Arguments

  • moduleTypeString!Required

    Module type to embed.

  • settingIdString!Required

    ID of a module setting owned by the current merchant.

Returns

[String!]!
query ModuleSettingEmbedTags($moduleType: String!, $settingId: String!) {
  moduleSettingEmbedTags(moduleType: $moduleType, settingId: $settingId)
}
Variables
{
  "moduleType": "Module type",
  "settingId": "735c9a28-745c-4bbb-a55c-9d4e765c9ee1"
}
Response
{
  "data": {
    "moduleSettingEmbedTags": [
      "Module setting embed tags"
    ]
  }
}
query

moduleSettingUsage#

Lists up to 365 usage records for a design owned by the current merchant, excluding checkout pages.

Arguments

  • idString!Required

    ID of a module setting owned by the current merchant.

Returns

[TokiModuleSettingUsagePayload!]!

Usage count for a design, module, page and date.

  • dateString!

    Recorded usage date.

  • design_idString!

    ID of the module design.

  • module_typeString!

    Type of the displayed module.

  • pageString!

    Page where the module was displayed.

  • countFloat!

    Number of recorded displays for this entry.

query ModuleSettingUsage($id: String!) {
  moduleSettingUsage(id: $id) {
    date
    design_id
    module_type
    page
    count
  }
}
Variables
{
  "id": "ed8d12ab-ec8d-4118-af8d-15d1ee8d143e"
}
Response
{
  "data": {
    "moduleSettingUsage": [
      {
        "date": "2026-10-14T09:30:00.000Z",
        "design_id": "Design_id",
        "module_type": "Module_type",
        "page": "Page",
        "count": 1.5
      }
    ]
  }
}

shopifyMarkets#

Lists active cached markets across merchant shops, ordered by shop, name and ID.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • ids[String!]

    Only these market IDs; an empty list returns none.

  • searchString

    Case-insensitive market name search.

  • domainString

    Only items whose domain equals this value.

Returns

TokiShopifyMarketConnection!

A page of TokiShopifyMarket in nodes, with pageInfo for the next page. Each item:

An active Shopify market cached for one of the merchant's shops.

  • idID!
  • nameString!

    Market name.

  • handleString!

    Market handle.

  • shopIdID!

    Owning Toki shop ID.

  • domainString!

    Owning shop domain.

  • regions[TokiShopifyMarketRegions!]!

    Countries and currencies served by this market.

query ShopifyMarkets($first: Int) {
  shopifyMarkets(first: $first) {
    nodes {
      id
      name
      handle
      shopId
      regions {
        id
        code
        currencyCode
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "shopifyMarkets": {
      "nodes": [
        {
          "id": "c20ed096-c30e-4229-a00e-cd70c10ecf03",
          "name": "Gold",
          "handle": "Handle",
          "shopId": "5a49b48a-5b49-461d-a849-b1645949b2f7",
          "regions": [
            {
              "id": "bcfa104d-bbfa-4eba-aafa-0d27b9fa0b94",
              "code": "TOKI-7Q2M-4KXD",
              "currencyCode": "TOKI-7Q2M-4KXD"
            }
          ]
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

shopifyStoreCreditCurrencies#

Returns the small ISO currency-code reference list supported by Shopify store credit in the current shop.

Returns

[String!]!
query ShopifyStoreCreditCurrencies {
  shopifyStoreCreditCurrencies
}
Response
{
  "data": {
    "shopifyStoreCreditCurrencies": [
      "Shopify store credit currencies"
    ]
  }
}

klaviyoSegments#

Lists Klaviyo segments and lists across connected merchant shops. Searches names across source pages; each cursor retains the shop and list/segment position.

Arguments

  • searchString

    Case-insensitive text to match against the record label.

  • ids[String!]

    Restrict results to these source IDs. An empty list returns none. Load selected records separately from search results.

Returns

TokiKlaviyoSegmentConnection!

A page of TokiKlaviyoSegmentEdgeNode in nodes, with pageInfo for the next page. Each item:

A list or segment from a shop's Klaviyo integration.

  • idString!

    Klaviyo list or segment ID.

  • nameString!

    List or segment name.

  • domainString!

    Source shop domain.

  • shopIdString!

    Source Toki shop ID.

  • typeTokiKlaviyoSegmentEdgeNodeType!

    Whether the record is a Klaviyo list or segment.

    listssegments
query KlaviyoSegments($first: Int) {
  klaviyoSegments(first: $first) {
    nodes {
      id
      name
      domain
      type
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "klaviyoSegments": {
      "nodes": [
        {
          "id": "52230c2a-5323-4dbd-a023-090451230a97",
          "name": "Gold",
          "domain": "your-store.myshopify.com",
          "type": "lists"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}

posLocations#

Lists active Shopify locations across connected merchant shops, searching names across all source pages.

Arguments

  • searchString

    Case-insensitive text to match against the record label.

  • ids[String!]

    Restrict results to these source IDs. An empty list returns none. Load selected records separately from search results.

Returns

TokiPosLocationConnection!

A page of TokiPosLocationEdgeNode in nodes, with pageInfo for the next page. Each item:

An active Shopify POS location.

  • idString!

    Numeric Shopify location ID.

  • nameString!

    Location name.

  • domainString!

    Source shop domain.

  • shopIdString!

    Source Toki shop ID.

  • shopifyIdString!

    Shopify location GID.

query PosLocations($first: Int) {
  posLocations(first: $first) {
    nodes {
      id
      name
      domain
      shopId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "posLocations": {
      "nodes": [
        {
          "id": "62932577-6193-43e4-a493-289d6393270a",
          "name": "Gold",
          "domain": "your-store.myshopify.com",
          "shopId": "8fc5c7eb-8ec5-4658-a1c5-cb1190c5c97e"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

productCollections#

Lists Shopify collections and WooCommerce categories across the current merchant shops, including selected IDs.

Arguments

  • searchString

    Collection search text forwarded to each shop integration.

  • ids[String!]

    Selected collection or category IDs to include even when absent from the search results.

Returns

[TokiProductCollectionsPayload!]!

A Shopify collection or WooCommerce category.

  • idString!

    Collection or category ID in the source platform.

  • titleString

    Collection or category title, or null when unavailable.

  • handleString

    Collection handle or category slug, or null when unavailable.

  • domainString!

    Domain of the shop containing the collection.

  • shop_idString!

    Toki shop ID containing the collection.

query ProductCollections {
  productCollections {
    id
    title
    handle
    domain
    shop_id
  }
}
Response
{
  "data": {
    "productCollections": [
      {
        "id": "c1f14106-c2f1-4299-aff1-3de0c0f13f73",
        "title": "Summer double points",
        "handle": "Handle",
        "domain": "your-store.myshopify.com",
        "shop_id": "Shop_id"
      }
    ]
  }
}
query

orderImportStatus#

Returns the current shop order import progress and the remaining lock time in seconds.

Returns

TokiOrderImportStatusPayload!

Order import progress and the current shop import lock.

  • processedFloat

    Number of processed orders while an import lock exists; null when no import is running.

  • disabledBoolean!

    Whether another import is currently blocked by the import lock.

  • disabledTimeFloat

    Remaining import lock duration in seconds, when an import is running.

query OrderImportStatus {
  orderImportStatus {
    processed
    disabled
    disabledTime
  }
}
Response
{
  "data": {
    "orderImportStatus": {
      "processed": 1.5,
      "disabled": false,
      "disabledTime": 1.5
    }
  }
}
query

greensparkProjects#

Lists Greenspark projects available through the current shop integration.

Returns

TokiGreensparkProjectsPayload!

Projects returned by the shop Greenspark integration.

  • projects[TokiGreensparkProjectsProjects!]!

    Projects available from Greenspark.

query GreensparkProjects {
  greensparkProjects {
    projects {
      projectId
      name
      type
      status
    }
  }
}
Response
{
  "data": {
    "greensparkProjects": {
      "projects": [
        {
          "projectId": "8657d989-8557-47f6-a457-d6638357d4d0",
          "name": "Gold",
          "type": "default",
          "status": "active"
        }
      ]
    }
  }
}