AlmondTill/G3N API

agentChannelCatalogSearch

query · in the family Reading your records

What it does

What AI shopping agents can see and buy from this channel right now — the listed products searched by words and filters, priced at the selling location, with in-stock words.

The agent catalog — search: what the AgentChannel lists (the listing rule — the active listed Collections' active products, active variants minus the veto list, ranged + priced at the selling location NOW, the PriceList plane when set), matched by query words (title · description · code · variant titles · codes · SKUs; all words, case/diacritic-folded) and/or filters (category captions OR-matched; price bounds in the listing currency's minor units), paged (limit default 10, max 50; an opaque cursor bound to the criteria). At least one of query/categories/price is required. The agent_platform principal reads only its own channel (any other id → AUTHZ/FORBIDDEN); staff planes read any channel of the group (a missing/foreign channel → NOT_FOUND). This is exactly what an agent platform sees on the shop's host — the merchant's preview.

Before you call

A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.

Capability area: Reading your records — Looking up and listing the records of your organization.

Roles that may call it:

What happens

Reads only. Exactly what a trusted platform gets on the shop’s own host — the merchant’s preview.

Arguments

NameTypeRequiredNotes
agentChannelIdID ID!yes
queryStringno
categoriesString [String!]no
priceMinMinorIntno
priceMaxMinorIntno
limitIntnoHow many records to answer at most; a page may hold fewer.
cursorStringno

Returns

AgentChannelCatalogPage AgentChannelCatalogPage! — One page of agentChannelCatalogSearch — the listing order (collection order · the evaluator's order within a collection); nextCursor present iff a page follows; truncated when the listing was cut at its ceiling.

Example request

graphql
query ExampleAgentChannelCatalogSearch($agentChannelId: ID!, $query: String) {
  agentChannelCatalogSearch(agentChannelId: $agentChannelId, query: $query) {
    nextCursor
    totalCount
    truncated
  }
}

Variables:

json
{
  "agentChannelId": "01900000-0000-7000-8000-57592a610000",
  "query": "<query>"
}

Example response

json
{
  "data": {
    "agentChannelCatalogSearch": {
      "nextCursor": "<next cursor>",
      "totalCount": 1,
      "truncated": true
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer