cromanion_visits
List your human's recent visits — each with its pages, how it ended, what Cromanion's agent showed or held back, the doubts it read, and the start of the visit's story. Filter by page, outcome, doubt, device, channel and more; page through with next. Needs the visits permission, which only your human can give in their console. Everything under reading is Cromanion's interpretation, not something the visitor said — report it that way. A visit is readable in full about 30 minutes after the visitor leaves; for who is on the site right now use cromanion_live. The control group is never read, so a doubt filter contains no control visits. Shares a budget of 60 calls an hour with cromanion_visit; every call is on your human's record before it runs. Identifiers in paths are masked (:id, :token), so products addressed by a number or a code are indistinguishable to a page filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Visits that viewed this path — exact, or a prefix ending in `*` (`/products/*`). Pages your human excluded are refused, not answered with zero. | |
| limit | No | 1 to 50. Default 20. Newest first. | |
| since | No | ISO date. Visits that STARTED at or after it. Default: 24 hours ago. At most 30 days back. | |
| until | No | ISO date. Visits that started before it. Default: now. | |
| cursor | No | The `next` of the previous page. | |
| device | No | The device the visit arrived on. | |
| siteId | No | Which site this call is about. Only needed when your credential covers more than one — cromanion_grants lists them and says whether it is required. Omitting it with several is refused rather than guessed at. | |
| channel | No | How the visit was acquired — a closed label, never a campaign name. | |
| outcome | No | `left` = ended without your human's conversion. Default `any`. | |
| visitor | No | First visit, or a returning visitor (a coarse, cookieless reading). | |
| objection | No | Visits where the model read this doubt at least once. A reading, not a fact. | |
| population | No | People (default), AI shopping agents, or both. Crawlers and scripts are never listed. | |
| agentAction | No | Visits where the agent's intervention was seen, sent, held back, or where the site was still learning. Default `any`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| next | Yes | Pass as `cursor` for older visits. Null when there are none. | |
| site | No | `{ id, domain, mode }`. | |
| readMe | Yes | ||
| visits | Yes | Newest first. Each: visitId, startedAt, closedAt (when Cromanion closed it, ~30 min after the visitor left — not when they left), durationSec, pages, entry, outcome (converted · left · live), conversion, controlGroup, agent `{sent, seen, heldBack, learnMode}`, reading `{objections}` (null = could not have said, [] = read none), summary. | |
| window | No | `{ since, until }` as applied. | |
| scanned | No | Visits examined. A narrow filter may return fewer than `limit` and still have a `next`. | |
| coverage | No | With a `page` filter, when some visits predate stored page lists: no match there means not recorded, not none. |