Skip to the documentation
Go

client.Tracking

Every method in this namespace: its signature, its parameters, what it returns and an example.

Methods

Opens and clicks on tracked messages, one message at a time or rolled up.

Tracking.List

List one page of tracked messages in a time window

Scopesemails:readPages through results
Signature
List(ctx context.Context, opts ...openemail.RequestOption) (*openemail.Page, error)

Returns one page of the messages the workspace tracked and sent in the window, newest first, each as a full engagement report with its recipients and links. It covers the whole mailbox, not only mail sent through this API: messages from the composer, the MCP tools and the assistant appear too, with sendId null where no send record exists. A report built off Emails.List would describe the API rather than the mailbox.

Messages that carried no pixel and no rewritten link are absent entirely and never appear as a zero. opened: false therefore means tracked and not opened, and clicked narrows the same way. Both filters work on counted opens and clicks, so a message fetched only by Apple Mail Privacy Protection or a link scanner still counts as unopened.

The window defaults to 30 days. minutes wins over days when both are set, and the start of the window is floored to the grain in UTC, so days: 7 covers today plus the six whole days before it. Paging is keyset: NextCursor is the tmsg_ id of the last report on the page, and passing it back as cursor with the same filters continues strictly after it, so every tracked message in the window is reachable. ListAll and Iterate do that walk for you.

Parameters

openemail.WithOpenedbool

Omit for both. true keeps opened messages and false keeps tracked messages nobody opened.

openemail.WithClickedbool

Omit for both. true keeps messages with a counted click and false keeps those without.

openemail.WithDaysint

Window length in days, a whole number from 1 to 365, defaulting to 30.

openemail.WithMinutesint

Window length in minutes, from 1 to 527040. Takes precedence over days.

openemail.WithGrainstring

minute, hour or day, defaulting to day. It only floors the window start so this list matches GetStats read at the same grain, and shapes nothing in the response.

openemail.WithAddressstring

Keeps only the messages sent from this address, the address filter of the tracking page. One the key does not reach returns nothing rather than failing.

openemail.WithLimitint

Reports per page, from 1 to 200, defaulting to 50.

openemail.WithCursorstring

The NextCursor from the previous page, a tmsg_ id. One that names no tracked message in the workspace is a 400 invalid_cursor.

openemail.WithAPIKeystring

Lists with this key instead of the client's.

Returns

A *openemail.Page with Items, HasMore and NextCursor. Each item has id, sendId, subject, from, source, sentAt, opens, clicks, opened, clicked, attributable, the counted and raw open and click counts, recipients and links.

Example

page, err := client.Tracking.List(ctx, openemail.WithOpened(false), openemail.WithDays(7), openemail.WithLimit(200))if err != nil {	return err} for _, tracking := range page.Items {	fmt.Println(tracking.String("sentAt"), tracking.String("subject"))} fmt.Println(page.HasMore, page.NextCursor)

Notes

  • A window shorter than a day needs a finer grain. minutes: 60 at the default day grain is rounded to one bucket and starts at midnight UTC.

  • A key with an address allowlist sees only messages sent from those addresses.

  • Only messages that were actually sent are listed, so a scheduled message that has not gone yet is absent even if tracking was requested.

Also available in

API
GET /tracking
TypeScript
tracking.list()
Python
tracking.list()
Ruby
tracking.list
PHP
tracking->list
Java
tracking().list
C#
Tracking.ListAsync
CLI
openemail tracking list

Tracking.ListAll

Collect every tracked message in a window into one slice

Scopesemails:readPages through results
Signature
ListAll(ctx context.Context, opts ...openemail.RequestOption) ([]openemail.Object, error)

Follows NextCursor from page to page and returns once the last page has been read, with every tracked message in the window in one slice, newest first. It takes the same filters as List and returns the same full engagement reports.

Everything is held in memory before the call returns. Narrow the window or the filters, or switch to Iterate when you want to stop early. limit sets the page size of each underlying request, not the total.

Parameters

openemail.WithOpenedbool

Omit for both. true keeps opened messages and false keeps tracked messages nobody opened.

openemail.WithClickedbool

Omit for both. true keeps messages with a counted click and false keeps those without.

openemail.WithDaysint

Window length in days, a whole number from 1 to 365, defaulting to 30.

openemail.WithMinutesint

Window length in minutes, from 1 to 527040. Takes precedence over days.

openemail.WithGrainstring

minute, hour or day, defaulting to day. It only floors the window start.

openemail.WithAddressstring

Keeps only the messages sent from this address, the address filter of the tracking page. One the key does not reach returns nothing rather than failing.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

A tmsg_ id to start after, skipping everything newer.

openemail.WithAPIKeystring

Lists with this key instead of the client's.

Returns

A []openemail.Object holding every report across all pages.

Example

unopened, err := client.Tracking.ListAll(ctx, openemail.WithOpened(false), openemail.WithDays(30), openemail.WithLimit(200))if err != nil {	return err} for _, tracking := range unopened {	fmt.Println(tracking.String("subject"))}

Notes

  • A failure on any page fails the whole call, and the reports already fetched are discarded.

  • A key with an address allowlist sees only messages sent from those addresses, on every page.

Also available in

API
GET /tracking
TypeScript
tracking.listAll()
Python
tracking.list_all()
Ruby
tracking.list_all
PHP
tracking->listAll
Java
tracking().listAll
C#
Tracking.ListAllAsync

Tracking.Iterate

Stream tracked messages one at a time across pages

Scopesemails:readPages through results
Signature
Iterate(ctx context.Context, opts ...openemail.RequestOption) *openemail.Iterator

Returns an iterator that yields tracked messages individually, newest first, and requests the next page only once the current one is drained. Nothing is fetched until you start consuming it, and breaking out of the loop stops the requests.

The walk is keyset based, following NextCursor from page to page, so a message tracked while you iterate lands ahead of where you started and is never yielded, and nothing already yielded comes round again.

Parameters

openemail.WithOpenedbool

Omit for both. true keeps opened messages and false keeps tracked messages nobody opened.

openemail.WithClickedbool

Omit for both. true keeps messages with a counted click and false keeps those without.

openemail.WithDaysint

Window length in days, a whole number from 1 to 365, defaulting to 30.

openemail.WithMinutesint

Window length in minutes, from 1 to 527040. Takes precedence over days.

openemail.WithGrainstring

minute, hour or day, defaulting to day. It only floors the window start.

openemail.WithAddressstring

Keeps only the messages sent from this address, the address filter of the tracking page. One the key does not reach returns nothing rather than failing.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

A tmsg_ id to start after, skipping everything newer.

openemail.WithAPIKeystring

Lists with this key instead of the client's.

Returns

An *openemail.Iterator yielding one report per step.

Example

for tracking, err := range client.Tracking.Iterate(ctx, openemail.WithClicked(true), openemail.WithDays(90)).All() {	if err != nil {		return err	} 	fmt.Println(tracking.String("id"), tracking.String("subject"))}

Notes

  • The iterator is lazy, so an abandoned loop costs only the pages you consumed.

Also available in

API
GET /tracking
TypeScript
tracking.iterate()
Python
tracking.iterate()
Ruby
tracking.iterate
PHP
tracking->iterate
Java
tracking().iterate
C#
Tracking.IterateAsync

Tracking.GetStats

Summarise engagement across a time window

Scopesemails:read
Signature
GetStats(ctx context.Context, opts ...openemail.RequestOption) (openemail.Object, error)

Returns the numbers behind an engagement panel in one request: how many messages were tracked, opened and clicked, the open and click rates, hit totals, a time series, the top links, mail clients and countries. It covers every tracked message sent from the mailbox in the window, whichever surface sent it.

Rates and totals count different things, and mixing them is how open rates above 100% get published. opened and clicked count distinct messages. totalOpens and totalClicks count hits. openRate is a percentage of trackedForOpens, the messages that actually carried a pixel, and clickRate is a percentage of trackedForClicks, the messages that had a link to rewrite, which is usually far fewer than tracked because most replies contain no links.

byDay is sparse: a bucket in which nothing was sent has no entry, so a chart must fill the gaps. grain sets the bucket width and the key shape, YYYY-MM-DD, YYYY-MM-DDTHH or YYYY-MM-DDTHH:MM, and offsetMinutes shifts bucket boundaries so days break where the reader's day does. The window starts at the beginning of the oldest bucket, so that bucket is whole, and ends now, so the newest is partial.

Parameters

openemail.WithDaysint

Window length in days, from 1 to 365, defaulting to 30.

openemail.WithMinutesint

Window length in minutes, from 1 to 527040. Takes precedence over days, and only useful below a day with a finer grain.

openemail.WithGrainstring

Bucket width for byDay: minute, hour or day, defaulting to day.

openemail.WithOffsetMinutesint

Minutes east of UTC to bucket in, from -840 to 840, defaulting to 0. For the local zone, pass the offset time.Now().Zone() reports, divided by 60.

openemail.WithAddressstring

Counts only the messages sent from this address, the address filter of the tracking page. One the key does not reach counts nothing rather than failing.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

An openemail.Object with tracked, trackedForOpens, trackedForClicks, opened, clicked, openRate, clickRate, totalOpens, totalClicks, machineOpens, medianTimeToOpenSeconds (null when nothing was opened), byDay, topLinks, clients and countries.

Example

_, offset := time.Now().Zone() stats, err := client.Tracking.GetStats(ctx, openemail.WithDays(7), openemail.WithGrain("day"), openemail.WithOffsetMinutes(offset/60))if err != nil {	return err} fmt.Println(stats.Int("openRate"), "percent of", stats.Int("trackedForOpens"), "messages opened") for _, day := range stats.Objects("byDay") {	fmt.Println(day.String("date"), day.Int("opens"), day.Int("clicks"))}

Notes

  • openRate and clickRate are percentages rounded to one decimal place, such as 42.5, not fractions between 0 and 1.

  • machineOpens, clients and countries are counted from individual hit records rather than from the counters on the per-message report.

  • A key with an address allowlist gets figures for mail sent from those addresses only, not the whole workspace.

  • topLinks holds at most 10 links that were clicked at least once, while clients and countries hold at most 8 each.

Also available in

API
GET /tracking/stats
TypeScript
tracking.getStats()
Python
tracking.get_stats()
Ruby
tracking.get_stats
PHP
tracking->getStats
Java
tracking().getStats
C#
Tracking.GetStatsAsync
CLI
openemail tracking get-stats

Tracking.Get

Read one message's engagement report

Scopesemails:read
Signature
Get(ctx context.Context, id string, opts ...openemail.RequestOption) (openemail.Object, error)

Returns the whole report for one tracked message: totals, one entry per tracked copy under recipients, and every rewritten link with its clicks under links. It accepts either identifier a caller may hold. A msg_ id is looked up as the send it went out as, and anything else is treated as a tmsg_ tracking id, which is what Tracking.List and webhook payloads carry for mail sent outside this API.

openCount and clickCount are counted readings: opens that looked like a person, with repeat fetches within thirty seconds collapsed. openCountRaw and clickCountRaw include every hit, machine fetches such as Apple Mail Privacy Protection and corporate scanners among them. Gmail's image proxy is a real person displaying the message and is counted, but only once, because later views are served from its cache.

recipients is one entry per tracked copy, which is not always one entry per person. When one body went to the whole list, or the bytes could not vary per recipient, the shared copy has email null and attributed false. Branch on attributed and on the message-level attributable before saying that a named person has or has not read anything.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

An openemail.Object with id, sendId, threadId, subject, from, source, sentAt, opens, clicks, opened, clicked, attributable, counted and raw open and click counts, first and last open and click times, recipients and links.

Example

report, err := client.Tracking.Get(ctx, "tmsg_8b2e4d71c09f3a65e1d7b402")if err != nil {	return err} fmt.Println(report.Bool("opened"), report.Int("openCount"), report.Int("openCountRaw"))

Notes

  • A 404 means nothing was tracked for that message, which is not the same as nobody having opened it.

  • opens and clicks record what was applied when the message was sent. Turning tracking on later does not make earlier mail start reporting.

  • Only links in the new part of a body are rewritten, so quoted history under a reply never appears in links.

Also available in

API
GET /tracking/{id}
TypeScript
tracking.get()
Python
tracking.get()
Ruby
tracking.get
PHP
tracking->get
Java
tracking().get
C#
Tracking.GetAsync
CLI
openemail tracking get

Tracking.ListOpens

List the individual opens behind a message's open count

Scopesemails:readPages through results
Signature
ListOpens(ctx context.Context, id string, opts ...openemail.RequestOption) (*openemail.Page, error)

Returns one page of the raw open hits for one tracked message, newest first. NextCursor is the opn_ id of the last hit on the page, and passing it back as cursor continues strictly after it, so every stored hit is reachable; ListAllOpens and IterateOpens do that walk for you. Each hit says which copy was fetched, how it was classified, whether it moved the numbers, and what the User-Agent and the edge could tell about the client, device and location.

kind is human for something that looked like a person reading, proxy for an image proxy such as Gmail's, which is a genuine reading by a reader the tracker cannot see, and machine for a scanner or Apple Mail Privacy Protection, which fetches on delivery and only proves the message arrived. By default only counted hits come back. includeMachine: true adds the hits that did not count, which is every machine hit plus repeat fetches within thirty seconds of a counted one on the same copy, so it filters on counted rather than on kind.

A msg_ send id is resolved first, and one that names no tracked message is a 404 rather than an empty list, since an empty list reads as nobody having opened it. A tmsg_ id is taken as given without a lookup, so one that never existed or belongs to another workspace comes back as an empty list. Only read an empty result as an answer about readers when the id came from this API.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false, machine fetches and collapsed repeats alike.

openemail.WithLimitint

Hits per page, from 1 to 200, defaulting to 50.

openemail.WithCursorstring

The NextCursor from the previous page, an opn_ id. Anything else, or one from another message's log, is a 400 invalid_cursor.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

A *openemail.Page with Items, HasMore and NextCursor. Each item has object set to open, id, trackedMessageId, recipient, kind, counted, userAgent, client, device, os, country, region, city and createdAt.

Example

page, err := client.Tracking.ListOpens(ctx, "msg_3f9a1c07d2b84e6a9c5b1f20", openemail.WithIncludeMachine(true), openemail.WithLimit(200))if err != nil {	return err} for _, open := range page.Items {	fmt.Println(open.String("kind"))} fmt.Println(page.HasMore, page.NextCursor)

Notes

  • An open row carries no IP address, and country, region and city are what the edge already knew, so on a proxied hit they describe the proxy rather than the reader. The address the request came from is still kept: it goes into the event log for the message, which GET /emails/{id}/events returns, and into the email.opened webhook payload.

  • recipient is null on a shared copy, for the same reason recipients[].email is null on the report.

Also available in

API
GET /tracking/{id}/opens
TypeScript
tracking.listOpens()
Python
tracking.list_opens()
Ruby
tracking.list_opens
PHP
tracking->listOpens
Java
tracking().listOpens
C#
Tracking.ListOpensAsync
CLI
openemail tracking list-opens

Tracking.ListAllOpens

Collect every open hit on one message into one slice

Scopesemails:readPages through results
Signature
ListAllOpens(ctx context.Context, id string, opts ...openemail.RequestOption) ([]openemail.Object, error)

Walks every page of one tracked message's open log and returns with all of its hits, newest first. It takes the same options as ListOpens, so by default only counted hits come back and includeMachine: true adds the rest.

A message opened by a mailing list of thousands can hold a great many rows. Prefer IterateOpens when you can stop early. limit sets the page size of each request, not the total.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

An opn_ id to start after, skipping every newer open.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

A []openemail.Object holding every hit across all pages, newest first.

Example

opens, err := client.Tracking.ListAllOpens(ctx, "msg_3f9a1c07d2b84e6a9c5b1f20", openemail.WithIncludeMachine(true), openemail.WithLimit(200))if err != nil {	return err} for _, open := range opens {	fmt.Println(open.String("country"))}

Notes

  • A failure on any page fails the whole call, and the hits already fetched are discarded.

  • The same id rules as ListOpens apply: a msg_ id that names no tracked message is a 404, and an unknown tmsg_ id collects an empty array.

Also available in

API
GET /tracking/{id}/opens
TypeScript
tracking.listAllOpens()
Python
tracking.list_all_opens()
Ruby
tracking.list_all_opens
PHP
tracking->listAllOpens
Java
tracking().listAllOpens
C#
Tracking.ListAllOpensAsync

Tracking.IterateOpens

Stream the open hits on one message one at a time

Scopesemails:readPages through results
Signature
IterateOpens(ctx context.Context, id string, opts ...openemail.RequestOption) *openemail.Iterator

Returns an iterator over one tracked message's open log that yields hits individually, newest first, and fetches the next page only when the current one is drained. Nothing is requested until you consume it, and breaking out of the loop stops further requests.

The walk ends when HasMore is false. Hits recorded after the walk starts are newer than its cursor and are not yielded.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

An opn_ id to start after, skipping every newer open.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

An *openemail.Iterator yielding one hit per step.

Example

for open, err := range client.Tracking.IterateOpens(ctx, "tmsg_8b2e4d71c09f3a65e1d7b402").All() {	if err != nil {		return err	} 	fmt.Println(open.String("kind"), open.String("createdAt"))}

Notes

  • The iterator is lazy, so an abandoned loop costs only the pages you consumed.

Also available in

API
GET /tracking/{id}/opens
TypeScript
tracking.iterateOpens()
Python
tracking.iterate_opens()
Ruby
tracking.iterate_opens
PHP
tracking->iterateOpens
Java
tracking().iterateOpens
C#
Tracking.IterateOpensAsync

Tracking.ListClicks

List the individual link clicks on a message

Scopesemails:readPages through results
Signature
ListClicks(ctx context.Context, id string, opts ...openemail.RequestOption) (*openemail.Page, error)

Returns one page of the raw click hits for one tracked message, newest first. NextCursor is the clk_ id of the last hit on the page, and passing it back as cursor continues strictly after it, so every stored hit is reachable; ListAllClicks and IterateClicks do that walk for you. Each hit has the same classification and client detail as an open, plus linkId and url naming the link that was followed, where url is the original destination rather than the redirect.

A click is stronger evidence of reading than an open. Mail clients block images far more often than readers leave links unfollowed, so a message with clicks and no opens was certainly read. Link scanners that follow every URL on delivery are classified as machine and excluded from the default result, and includeMachine: true brings them back along with repeat hits collapsed by the thirty second window.

Only links in the new part of the body were rewritten, so nothing here can be a click on quoted history under a reply. The id rules match ListOpens: a msg_ id that names no tracked message is a 404, while a tmsg_ id is used without a lookup and an unknown one returns an empty list.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false, scanner clicks and collapsed repeats alike.

openemail.WithLimitint

Hits per page, from 1 to 200, defaulting to 50.

openemail.WithCursorstring

The NextCursor from the previous page, a clk_ id. Anything else, or one from another message's log, is a 400 invalid_cursor.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

A *openemail.Page with Items, HasMore and NextCursor. Each item has object set to click, id, trackedMessageId, linkId, url, recipient, kind, counted, userAgent, client, device, os, country, region, city and createdAt.

Example

page, err := client.Tracking.ListClicks(ctx, "tmsg_8b2e4d71c09f3a65e1d7b402", openemail.WithLimit(200))if err != nil {	return err} for _, click := range page.Items {	fmt.Println(click.String("url"))} fmt.Println(page.HasMore, page.NextCursor)

Notes

  • Repeated destinations share one linkId on the report, so a page linked from a header image, a button and a footer is one link. Group by linkId to match links on Tracking.Get.

  • A key with an address allowlist gets a 404 for a msg_ id sent from an address outside it, and a tmsg_ id is then looked up rather than taken as given.

Also available in

API
GET /tracking/{id}/clicks
TypeScript
tracking.listClicks()
Python
tracking.list_clicks()
Ruby
tracking.list_clicks
PHP
tracking->listClicks
Java
tracking().listClicks
C#
Tracking.ListClicksAsync
CLI
openemail tracking list-clicks

Tracking.ListAllClicks

Collect every click hit on one message into one slice

Scopesemails:readPages through results
Signature
ListAllClicks(ctx context.Context, id string, opts ...openemail.RequestOption) ([]openemail.Object, error)

Walks every page of one tracked message's click log and returns with all of its hits, newest first. It takes the same options as ListClicks, so by default only counted hits come back and includeMachine: true adds the rest.

A message opened by a mailing list of thousands can hold a great many rows. Prefer IterateClicks when you can stop early. limit sets the page size of each request, not the total.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

A clk_ id to start after, skipping every newer click.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

A []openemail.Object holding every hit across all pages, newest first.

Example

clicks, err := client.Tracking.ListAllClicks(ctx, "tmsg_8b2e4d71c09f3a65e1d7b402")if err != nil {	return err} for _, click := range clicks {	fmt.Println(click.String("recipient"))}

Notes

  • A failure on any page fails the whole call, and the hits already fetched are discarded.

  • The same id rules as ListClicks apply: a msg_ id that names no tracked message is a 404, and an unknown tmsg_ id collects an empty array.

Also available in

API
GET /tracking/{id}/clicks
TypeScript
tracking.listAllClicks()
Python
tracking.list_all_clicks()
Ruby
tracking.list_all_clicks
PHP
tracking->listAllClicks
Java
tracking().listAllClicks
C#
Tracking.ListAllClicksAsync

Tracking.IterateClicks

Stream the click hits on one message one at a time

Scopesemails:readPages through results
Signature
IterateClicks(ctx context.Context, id string, opts ...openemail.RequestOption) *openemail.Iterator

Returns an iterator over one tracked message's click log that yields hits individually, newest first, and fetches the next page only when the current one is drained. Nothing is requested until you consume it, and breaking out of the loop stops further requests.

The walk ends when HasMore is false. Hits recorded after the walk starts are newer than its cursor and are not yielded.

Parameters

idstringRequired

A tmsg_ tracking id or the msg_ send id the message went out as.

openemail.WithIncludeMachinebool

Defaults to false. True also returns hits with counted false.

openemail.WithLimitint

Page size per request, from 1 to 200, defaulting to 50 on the server.

openemail.WithCursorstring

A clk_ id to start after, skipping every newer click.

openemail.WithAPIKeystring

Reads with this key instead of the client's.

Returns

An *openemail.Iterator yielding one hit per step.

Example

for click, err := range client.Tracking.IterateClicks(ctx, "tmsg_8b2e4d71c09f3a65e1d7b402").All() {	if err != nil {		return err	} 	fmt.Println(click.String("url"), click.String("recipient"), click.String("createdAt"))}

Notes

  • The iterator is lazy, so an abandoned loop costs only the pages you consumed.

Also available in

API
GET /tracking/{id}/clicks
TypeScript
tracking.iterateClicks()
Python
tracking.iterate_clicks()
Ruby
tracking.iterate_clicks
PHP
tracking->iterateClicks
Java
tracking().iterateClicks
C#
Tracking.IterateClicksAsync