TooliSign in

API reference

Version 1 of the API reads your organisation's records and, with a key that may, changes some of them. This page is made from the list of routes the server itself decides with, and a test holds every route, filter and field on it to the running API, so a change to the API fails the test until this page changes too.

Base address

https://app.tooli.dev/api/v1

The same, as an OpenAPI 3.1 file for your tools: /docs/api/openapi.json. Times are UTC, in ISO 8601.

Keys

Every request carries a key in the Authorization header. Owners and admins make keys in Organisation → API and MCP, each with what it may do area by area (read, or read and change); a key is shown once. A sign-in to the app never works on /api/v1, and a key works nowhere else.

Authorization: Bearer tk_live_…

A key is tk_live_ and 32 hexadecimal characters. On Tooli's test sites keys start tk_test_. A key is refused anywhere it wasn't given: reading an area it may not read, or changing one it may only read.

Areas

A key is given areas. Reading an area lets it use that area's GET routes; read and change lets it use the rest of them too. A key reads as an admin of your organisation does, so what it reads depends on whether admins see every member's records (Organisation settings).

The MCP server calls these same routes for an assistant (see MCP tools). An assistant a person connected reads what that person may see: each route also says what their role must allow.

Limits

Each key may make 120 requests a minute. Past that, the answer is 429 with Retry-After: 60.

A route answers only while its part of Tooli is switched on for everyone; otherwise it answers 403 with feature_off.

Pages

A list that comes in pages answers with next. Pass it back as cursor, with the same filters, for the page after; on the last page next is null.

Sending a change twice

Every POST carries an Idempotency-Key header: 16 to 64 letters, digits, - or _, new for each change (a UUID is fine). The first answer to a key is kept for 24 hours: the same request sent again with it is answered the same, with Idempotent-Replayed: true, and changes nothing twice. The same key with a different request is refused (422, idempotency_key_reused); one sent while the first is still being answered is refused for the moment (409, idempotency_key_in_use). A refused or failed request keeps nothing, so you can send it again. PUT and DELETE are the same each time anyway.

The organisation

The organisation

GET /api/v1/organization

Your organisation's name, its plan, and what it has used of each limit this month.

  • Every key may use it.
  • An app a person connected: anyone in the organisation.

What it answers

200, with Organisation.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/organization"

Tracked emails

Tracked emails

GET /api/v1/emails

Tracked emails, newest first unless sorted otherwise, with the Tracked emails page's own filters.

  • A key needs the area Tracked emails and views: read.
  • An app a person connected: anyone in the organisation.

Filters

NameValuesAbout
qAny wordsPart of a subject, a recipient's address or a tag's name.
statusviewed none automated repliedviewed, none (not viewed), automated (only automated views so far) or replied.
sinceA day or a time, such as 2026-11-01Only those sent at or after this time.
providerAny wordsOnly those sent through this mail service, as an email's provider names it.
ownerAn id another answer givesOnly those of this member, by their id from /api/v1/members.
mailboxAn id another answer givesOnly those of this shared mailbox, by its id from /api/v1/mailboxes.
tagAny wordsOnly those with this tag, by its name or its id.
folderAny wordsOnly those in this folder, by its name or its id; none for those in no folder; archived for the archived emails instead.
sortsent subject views clicks lastClickedWhat to sort by: when it was sent, its subject, views, clicks, or its latest click.
dirasc descWhich way: asc or desc.
limit1 to 100; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of EmailThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/emails?limit=10"

One tracked email

GET /api/v1/emails/{id}

One tracked email, with each recipient's views.

  • A key needs the area Tracked emails and views: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

200, with:

NameTypeAbout
emailEmailThe email.
recipientslist of RecipientEach address it went to, in order, with its views where it went to that address alone.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/emails/em_…"

An email's views

GET /api/v1/emails/{id}/views

Every counted view of one tracked email, newest first. A view names its recipient only where the email went to one address: a message carries one image, the same for everyone it went to.

  • A key needs the area Tracked emails and views: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

200, with:

NameTypeAbout
rowslist of EventThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/emails/em_…/views"

Tag an email

PUT /api/v1/emails/{id}/tags

Sets a tracked email's tags: the list given replaces the ones it had. A tag goes on an email when it is the sender's own or their team's.

  • A key needs the area Tracked emails and views: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it takes

NameTypeNeededAbout
tagslist of textYesTag names (any case) or ids. The list replaces the email's tags; an empty list takes them all off.

What it answers

200, with Email.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"tags":["…"]}' \
  "https://app.tooli.dev/api/v1/emails/em_…/tags"

File an email

PUT /api/v1/emails/{id}/folder

Puts a tracked email in a folder, or takes it out of its folder with null.

  • A key needs the area Tracked emails and views: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it takes

NameTypeNeededAbout
foldertext or nullYesA folder's name or id, or null for no folder.

What it answers

200, with Email.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"folder":"…"}' \
  "https://app.tooli.dev/api/v1/emails/em_…/folder"

Archive an email

PUT /api/v1/emails/{id}/archived

Archives a tracked email, or brings it back. It keeps all its views.

  • A key needs the area Tracked emails and views: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it takes

NameTypeNeededAbout
archivedtrue or falseYestrue to archive, false to bring back.

What it answers

200, with Email.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"archived":true}' \
  "https://app.tooli.dev/api/v1/emails/em_…/archived"

Never-track list

GET /api/v1/never-track

The addresses and domains never tracked: the organisation's list, and for an app a person connected, their own as well.

  • A key needs the area Tracked emails and views: read.
  • An app a person connected: anyone in the organisation.

What it answers

200, with:

NameTypeAbout
rowslist of Never-track entryThe page's records.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/never-track"

Never track an address

POST /api/v1/never-track

Adds an address or a domain to a never-track list. What a key adds goes on the organisation's list.

  • A key needs the area Tracked emails and views: read and change.
  • An app a person connected: members, admins and the owner.
  • Send an Idempotency-Key header (see Sending a change twice).

What it takes

NameTypeNeededAbout
valuetextYesAn email address, or a domain such as example.com.
listtext One of: own organisationNoown: the person's own list (not for a key); organisation: everyone's (admins and the owner). A key's go on the organisation's.

What it answers

201, with Never-track entry.

Example

curl -X POST -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" -d '{"value":"…"}' \
  "https://app.tooli.dev/api/v1/never-track"

Track an address again

DELETE /api/v1/never-track/{id}

Takes an entry off a never-track list.

  • A key needs the area Tracked emails and views: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

204, with nothing in the answer.

Example

curl -X DELETE -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/never-track/em_…"

GET /api/v1/links

Short links, newest first, with the Links page's own filters.

  • A key needs the area Links and clicks: read.
  • An app a person connected: anyone in the organisation.

Filters

NameValuesAbout
qAny wordsPart of a slug or a destination; a whole short link finds that link.
sentByanywhere whatsapp sms emailOnly links made to be sent this way.
ownerAn id another answer givesOnly those of this member, by their id from /api/v1/members.
mailboxAn id another answer givesOnly those of this shared mailbox, by its id from /api/v1/mailboxes.
statearchivedarchived: the archived links instead of the working ones.
clickedyes noyes: only links that have been clicked; no: only those never clicked.
limit1 to 200; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of LinkThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.
clicksnumberThe clicks of every link that matches, added up.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/links?limit=10"

Make a short link

POST /api/v1/links

Makes a short link to a destination, with a slug of your own if you want one. A link a key makes is named as the key's.

  • A key needs the area Links and clicks: read and change.
  • An app a person connected: members, admins and the owner.
  • Send an Idempotency-Key header (see Sending a change twice).

What it takes

NameTypeNeededAbout
destinationtextYesThe https address clicks are sent to.
slugtext or nullNoThe part after the short-link address, if you want your own; a random one if left out.
sentBytext One of: anywhere whatsapp smsNoWhere it will be sent: anywhere unless said, whatsapp or sms.
mailboxtext or nullNoThe shared mailbox it is made for, by its id; a person must be one of its senders. Not for a key.

What it answers

201, with Link.

Example

curl -X POST -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" -d '{"destination":"https://example.com/offer"}' \
  "https://app.tooli.dev/api/v1/links"

GET /api/v1/links/{code}

One short link, with every destination it has had.

  • A key needs the area Links and clicks: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

What it answers

200, with:

NameTypeAbout
linkLinkThe link.
destinationslistEvery destination it has had, newest first.
destinations[].destinationtextWhere its clicks were sent.
destinations[].setAttextWhen it was set.
destinations[].setBytext or nullWho set it: a person's name, or a key's.
destinations[].clicksnumberThe clicks sent there while it was set.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/links/spring-offer"

A link's clicks

GET /api/v1/links/{code}/clicks

Every click on one short link, newest first, a machine's too, each with its class.

  • A key needs the area Links and clicks: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

Filters

NameValuesAbout
qAny wordsPart of an IP address, a network's name, a city or a country code.
whopeople automatedpeople: leave out what a machine most likely made; automated: only that.
limit1 to 200; 25 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of EventThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/links/spring-offer/clicks?limit=10"

Change a link's destination

PUT /api/v1/links/{code}/destination

Sends a short link's clicks to another destination from now on. Clicks so far keep the destination they had.

  • A key needs the area Links and clicks: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

What it takes

NameTypeNeededAbout
destinationtextYesThe https address clicks are sent to.

What it answers

200, with Link.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"destination":"https://example.com/offer"}' \
  "https://app.tooli.dev/api/v1/links/spring-offer/destination"

Archive a link

PUT /api/v1/links/{code}/archived

Archives a short link, or brings it back. An archived link still sends people on, and keeps its clicks.

  • A key needs the area Links and clicks: read and change.
  • An app a person connected: members, admins and the owner.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

What it takes

NameTypeNeededAbout
archivedtrue or falseYestrue to archive, false to bring back.

What it answers

200, with Link.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"archived":true}' \
  "https://app.tooli.dev/api/v1/links/spring-offer/archived"

Documents

Documents

GET /api/v1/documents

Hosted documents, newest first, with the figures the Documents page shows and its own filters (less the one that takes a person).

  • A key needs the area Documents: read.
  • An app a person connected: anyone in the organisation.
  • Needs documents switched on as well.

Filters

NameValuesAbout
qAny wordsPart of a document's name.
viewedyes noyes: only documents viewed; no: only those never viewed.
statearchivedarchived: the archived documents instead of the working ones.
limit1 to 200; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of DocumentThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.
viewsnumberThe views of every document that matches, added up.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/documents?limit=10"

Upload a document

POST /api/v1/documents

Adds a PDF as a hosted document: the file is the request's body (Content-Type: application/pdf), its name in name.

  • A key needs the area Documents: read and change.
  • An app a person connected: members, admins and the owner.
  • Needs documents switched on as well.
  • Send an Idempotency-Key header (see Sending a change twice).

Filters

NameValuesAbout
nameAny wordsThe document's name, as readers will see it.
downloadyes nono stops readers downloading it; yes unless said.

What it takes

NameTypeNeededAbout
filethe file itself, as the bodyYesA PDF, at most 25 MB.

What it answers

201, with Document.

Example

curl -X POST -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/pdf" --data-binary @price-list.pdf \
  "https://app.tooli.dev/api/v1/documents?name=Price%20list.pdf"

One document

GET /api/v1/documents/{code}

One hosted document, with the time spent on each page of the file readers get now.

  • A key needs the area Documents: read.
  • An app a person connected: anyone in the organisation.
  • Needs documents switched on as well.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

What it answers

200, with:

NameTypeAbout
documentDocumentThe document.
pageTimeslistTime on each page of the file readers get now, every counted view together. Pages nobody stayed on are left out.
pageTimes[].pagenumberThe page.
pageTimes[].secondsnumberSeconds on it.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/documents/spring-offer"

A document's views

GET /api/v1/documents/{code}/views

Every view of one hosted document, newest first, a machine's too.

  • A key needs the area Documents: read.
  • An app a person connected: anyone in the organisation.
  • Needs documents switched on as well.

In the address

NameAbout
codeThe link's or document's code, as its list gives it.

Filters

NameValuesAbout
qAny wordsPart of an IP address, a network's name, a city or a country code.
whopeople automatedpeople: leave out what a machine most likely made; automated: only that.
limit1 to 200; 25 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of EventThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/documents/spring-offer/views?limit=10"

Websites and visitors

Websites

GET /api/v1/websites

Tracked websites, busiest in the last 24 hours first. A handful for each organisation: no pages.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.
  • Needs websites switched on as well.

Filters

NameValuesAbout
qAny wordsPart of a name or an origin.
statereceiving none pausedOnly websites receiving page views now, with none yet, or paused.

What it answers

200, with:

NameTypeAbout
rowslist of WebsiteThe page's records.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/websites"

Add a website

POST /api/v1/websites

Adds a website to track, by its name and the origins it is served from. Its snippet is on its page in the app.

  • A key needs the area Websites and visitors: read and change.
  • An app a person connected: admins and the owner.
  • Needs websites switched on as well.
  • Send an Idempotency-Key header (see Sending a change twice).

What it takes

NameTypeNeededAbout
nametextYesIts name, as the app shows it.
originslist of textYesThe addresses it is served from, such as https://www.example.com, the first one first.

What it answers

201, with Website.

Example

curl -X POST -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" -d '{"name":"…","origins":["…"]}' \
  "https://app.tooli.dev/api/v1/websites"

One website

GET /api/v1/websites/{key}

One website's figures for a period, as its page shows them: visitors, visits, page views, time, its top pages and where visits came from.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.
  • Needs websites switched on as well.

In the address

NameAbout
keyThe website's key, as the Websites list gives it.

Filters

NameValuesAbout
rangetoday 7d 30dtoday, 7d (unless said) or 30d, in the caller's days.

What it answers

200, with:

NameTypeAbout
websiteWebsiteThe website.
rangetextThe period. One of: today 7d 30d
fromtextWhen the period began.
totextWhen it ends.
figuresobjectThe period's figures.
figures.visitorsnumberDifferent visitors among the visits a person most likely made.
figures.newVisitorsnumberOf those, the ones never seen on this website before the period.
figures.visitsnumberVisits a person most likely made.
figures.onePagenumberOf those, the ones with one page view.
figures.visitPagesnumberPage views in those visits.
figures.pageViewsnumberEvery page view in the period, a machine's too.
figures.automatedViewsnumberThe page views a machine most likely made. They are in pageViews too.
figures.secondsnumberTime looked at, over the page views that were timed.
figures.timednumberHow many page views were timed.
topPageslistThe pages viewed most in the period.
topPages[].pathtextThe page's path.
topPages[].titletextThe title it had most recently.
topPages[].viewsnumberIts page views.
topPages[].visitorsnumberDifferent visitors among the page views a person most likely made.
sourceslistWhere visits came from most in the period.
sources[].referrertextThe host of the page that led there; empty when typed or unknown.
sources[].visitsnumberVisits that came from there.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/websites/ws_live_…"

A website's visits

GET /api/v1/websites/{key}/visits

A website's visits in a period, newest first, each with its visitor where the key or person may see who it is.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.
  • Needs websites switched on as well.

In the address

NameAbout
keyThe website's key, as the Websites list gives it.

Filters

NameValuesAbout
rangetoday 7d 30dtoday, 7d (unless said) or 30d, in the caller's days.
qAny wordsPart of a page's path or title, a network's name or a city.
whopeople automatedpeople: leave out what a machine most likely made; automated: only that.
limit1 to 100; 25 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of VisitThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/websites/ws_live_…/visits?limit=10"

Visitors

GET /api/v1/visitors

Visitors, newest seen first, with the Visitors page's own filters. A visitor is named only as the app names it for the caller.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.

Filters

NameValuesAbout
qAny wordsPart of a name, a place, a network, a browser or an IP address.
namedyes noyes: only visitors Tooli names for the caller; no: only those it doesn't.
activityclicks pages documentsOnly visitors who did this.
siteA website's site keyOnly visitors who viewed a page of this website, by its key.
seentoday 7d 30dOnly visitors seen today, in the last 7 or the last 30 days.
whopeople automatedpeople: leave out what a machine most likely made; automated: only that.
limit1 to 100; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of VisitorThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.
totalnumberHow many match, across every page.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/visitors?limit=10"

One visitor

GET /api/v1/visitors/{id}

One visitor: who Tooli takes it to be and why, as the caller may see it, and what it has done.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

200, with:

NameTypeAbout
visitorVisitorThe visitor.
whytext or nullWhy it isn't named, when it isn't: nothing ties it to anyone (none), it is tied to several people (several), or someone said it isn't who Tooli thought (refused). One of: none several refused
evidencelistThe tracked emails that tie it to a person, as the caller may see them.
evidence[].addresstextThe person's address.
evidence[].howtextHow sure: certain or probable. One of: certain probable
evidence[].kindtextThis device viewed it (same_device), another device on this network just before (other_device), this device through a VPN (vpn), or a visitor tied to this one (tied). One of: same_device other_device vpn tied
evidence[].emailtextThe email's id.
evidence[].subjecttextThe email's subject.
evidence[].viewedAttextWhen it was viewed.
factsobjectWhat it has done, of what the caller may see.
facts.emailsViewednumber or nullEmails sent to the named person alone that were viewed; null when it isn't named.
facts.emailsAlonenumber or nullEmails sent to the named person alone; null when it isn't named.
facts.linksnumberDifferent links it clicked.
facts.visitsnumberIts visits to the organisation's websites.
facts.documentSecondsnumberSeconds it spent on documents.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/visitors/em_…"

A visitor's activity

GET /api/v1/visitors/{id}/activity

What one visitor did, newest first: views, clicks, document views and page views.

  • A key needs the area Websites and visitors: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
idThe record's id, as its list gives it.

Filters

NameValuesAbout
kindclick doc_view web_hit openOnly this kind of activity: clicks, document views, page views or email views.
limit1 to 100; 25 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of EventThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/visitors/em_…/activity?limit=10"

Shared mailboxes

Shared mailboxes

GET /api/v1/mailboxes

The shared mailboxes: every one for a key, which reads as an admin who sees every record; for an app a person connected, the ones they see.

  • A key needs the area Mailboxes: read.
  • An app a person connected: anyone in the organisation.

What it answers

200, with:

NameTypeAbout
rowslist of Shared mailboxThe page's records.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/mailboxes"

One shared mailbox

GET /api/v1/mailboxes/{id}

One shared mailbox's figures, of what the caller sees, and who sent from it.

  • A key needs the area Mailboxes: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

200, with:

NameTypeAbout
mailboxShared mailboxThe mailbox.
factsobjectIts figures, of what the caller sees.
facts.emailsnumberTracked emails sent from it.
facts.emailsWeeknumberOf those, the ones sent in the last seven days.
facts.viewednumberOf those, the ones viewed.
facts.viewsnumberTheir views.
facts.humanViewsnumberOf those, the ones a person most likely made.
facts.clicksnumberClicks on its links.
facts.linksnumberLinks made for it.
facts.documentsnumberDocuments sent from it.
facts.repliesnumberReplies to its emails.
facts.lastViewedAttext or nullWhen one of its emails was last viewed.
senderslistWho sent from it, most first.
senders[].nametextTheir name.
senders[].emailsnumberThe tracked emails they sent from it.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/mailboxes/em_…"

Members, teams and Activity

Members

GET /api/v1/members

The organisation's members, with their role and team.

  • A key needs the area Members and teams: read.
  • An app a person connected: admins and the owner.

What it answers

200, with:

NameTypeAbout
rowslist of MemberThe page's records.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/members"

Teams

GET /api/v1/teams

The organisation's teams, with their lead and members.

  • A key needs the area Members and teams: read.
  • An app a person connected: admins and the owner.

What it answers

200, with:

NameTypeAbout
rowslist of TeamThe page's records.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/teams"

Activity

GET /api/v1/activity

Who changed what in the organisation, newest first, as Organisation → Activity lists it.

  • A key needs the area Members and teams: read.
  • An app a person connected: admins and the owner.

Filters

NameValuesAbout
actionAny wordsOnly changes of this kind, such as link.archive or member.role.
actorAn id another answer givesOnly changes made by this member, by their id.
limit1 to 200; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of ActivityThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/activity?limit=10"

The Event log, the Dashboard and addresses

The Event log

GET /api/v1/events

Every view, click, document view, page view and reply, newest first, with the Event log's own search and filters: first the events still in the database, then those kept only in the archive, each marked archived.

  • A key needs the area The Event log: read.
  • An app a person connected: admins and the owner.

Filters

NameValuesAbout
typeopen click doc_view web_hit replyOnly events of this kind.
qAny wordsPart of what an event is about, an IP address, a network or a place.
classdirect gmail_proxy apple_privacy datacenter vpn bot scanner prefetch sender_previewOnly events of this class.
family4 64 or 6: only requests that came over IPv4 or over IPv6.
whopeoplepeople: leave out the classes where a machine most likely asked.
limit1 to 200; 50 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
rowslist of EventThe page's records.
nexttext or nullPass it back as cursor for the page after; null on the last.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/events?limit=10"

One event

GET /api/v1/events/{id}

One event of the Event log, with when it was stored and the rules that decided its class.

  • A key needs the area The Event log: read.
  • An app a person connected: admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

200, with:

NameTypeAbout
eventEventThe event.
storedAttextWhen Tooli stored it.
timeZonetext or nullThe time zone the request said it was in, where it did.
evidencelistThe rules that matched, first the one that decided its class.
evidence[].ruletextThe rule.
evidence[].notetextWhat it found.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/events/em_…"

The Dashboard's figures

GET /api/v1/dashboard

The Dashboard's figures for a period, in the time zone of whoever made the key (or the person's own): emails tracked and viewed, views, clicks, website visitors, where they came from, and the chart's series.

  • A key needs the area The Event log: read.
  • An app a person connected: anyone in the organisation.

Filters

NameValuesAbout
rangetoday 7d 30dtoday, 7d (unless said) or 30d, in the caller's days.
scopemine widewide (unless said): everything the caller may see; mine: a person's own records. A key has no records of its own and is always given wide.

What it answers

200, with:

NameTypeAbout
rangetextThe period. One of: today 7d 30d
fromtextWhen the period began.
totextWhen it ends.
timeZonetextThe time zone its days were cut in.
emailsobjectEmails tracked in the period.
emails.valuenumberHow many.
emails.previousnumberHow many in the period before.
emails.viewednumberOf those, the ones viewed.
viewsobjectViews of emails in the period, the senders' own left out.
views.valuenumberHow many.
views.previousnumberHow many in the period before.
views.automatednumberOf those, the ones a machine most likely made.
clicksobjectClicks on short links in the period.
clicks.valuenumberHow many.
clicks.previousnumberHow many in the period before.
clicks.automatednumberOf those, the ones a machine most likely made.
websitesobject or nullVisitors to the organisation's websites in the period; null while it has none.
websites.valuenumberDifferent visitors among the visits a person most likely made.
websites.previousnumberThe same in the period before.
websites.visitsnumberThose visits.
placeslistWhere views and clicks came from, most first.
places[].countrytextThe country, as a two-letter code.
places[].regiontext or nullThe region.
places[].citytext or nullThe city.
places[].eventsnumberViews and clicks from there.
seriesobjectViews and clicks over the period.
series.bytextBy hour for today, by day otherwise. One of: hour day
series.keyslist of textEach hour (2026-11-19T14) or day (2026-11-19).
series.viewslist of numberViews in each.
series.clickslist of numberClicks in each.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/dashboard"

An IP address

GET /api/v1/network/ip/{ip}

What is known of one IPv4 or IPv6 address in the organisation's events: its network, its place, the classes its requests were given, and those events, newest first. The same answer whether it was never seen or seen only in what the caller may not see.

  • A key needs the area The Event log: read.
  • An app a person connected: anyone in the organisation.

In the address

NameAbout
ipAn IPv4 or IPv6 address, as written anywhere (2001:db8::1 is the same as its longer form).

Filters

NameValuesAbout
limit1 to 100; 25 unless saidHow many a page has.
cursorThe next of the page beforeThe page after the one whose next this is.

What it answers

200, with:

NameTypeAbout
iptextThe address, as Tooli writes it.
familynumber4 or 6. One of: 4 6
knownobject or nullWhat is known of it; null when the caller has no events from it.
known.eventsnumberIts events.
known.firstAttextThe first.
known.lastAttextThe latest.
known.networktext or nullThe network the latest came from.
known.asnnumber or nullThat network's number.
known.placeobject or nullIts place; null where a class hides it or it wasn't known.
known.place.countrytext or nullThe country, as a two-letter code.
known.place.regiontext or nullThe region.
known.place.citytext or nullThe city.
known.classeslistEvery class its events were given, the most frequent first.
known.classes[].classtextThe class. One of: direct gmail_proxy apple_privacy datacenter vpn bot scanner prefetch sender_preview
known.classes[].eventsnumberIts events of that class.
rowslist of EventIts events, newest first.
nexttext or nullPass it back as cursor for the page after; null on the last.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/network/ip/203.0.113.7?limit=10"

Webhooks

Webhooks

GET /api/v1/webhooks

The organisation's webhooks: where each sends, which events, and how its deliveries are going.

  • A key needs the area Webhooks: read.
  • An app a person connected: admins and the owner.

What it answers

200, with:

NameTypeAbout
rowslist of WebhookThe page's records.

Example

curl -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/webhooks"

Add a webhook

POST /api/v1/webhooks

Adds a webhook. Its signing secret is in this answer once and never again: a retry with the same idempotency key is answered with secret: null.

  • A key needs the area Webhooks: read and change.
  • An app a person connected: admins and the owner.
  • Send an Idempotency-Key header (see Sending a change twice).

What it takes

NameTypeNeededAbout
urltextYesThe https address to send each event to.
eventslist of text One of: email.viewed link.clicked document.viewed website.visited reply.receivedYesThe events to send.

What it answers

201, with:

NameTypeAbout
webhookWebhookThe webhook.
secrettext or nullIts signing secret, shown this once; null to a retry with the same idempotency key.

Example

curl -X POST -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" -d '{"url":"…","events":["email.viewed"]}' \
  "https://app.tooli.dev/api/v1/webhooks"

Change a webhook's events

PUT /api/v1/webhooks/{id}

Sets which events a webhook sends.

  • A key needs the area Webhooks: read and change.
  • An app a person connected: admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it takes

NameTypeNeededAbout
eventslist of text One of: email.viewed link.clicked document.viewed website.visited reply.receivedYesThe events to send.

What it answers

200, with Webhook.

Example

curl -X PUT -H "Authorization: Bearer $TOOLI_API_KEY" \
  -H "Content-Type: application/json" -d '{"events":["email.viewed"]}' \
  "https://app.tooli.dev/api/v1/webhooks/em_…"

Remove a webhook

DELETE /api/v1/webhooks/{id}

Removes a webhook: nothing more is sent to it.

  • A key needs the area Webhooks: read and change.
  • An app a person connected: admins and the owner.

In the address

NameAbout
idThe record's id, as its list gives it.

What it answers

204, with nothing in the answer.

Example

curl -X DELETE -H "Authorization: Bearer $TOOLI_API_KEY" \
  "https://app.tooli.dev/api/v1/webhooks/em_…"

Objects

The records the routes answer with. Each field is always there; one that has no value is null.

Organisation

Your organisation as a key reads it.

NameTypeAbout
nametextIts name.
planobjectIts plan.
plan.nametextThe plan's name.
monthtextThe month the counts are for, as YYYY-MM.
usagelistWhat it has used of each of its plan's limits this month.
usage[].keytextThe limit. One of: emails_month members websites domains documents
usage[].usednumberHow much is used.
usage[].limitnumber or nullThe limit; null for none.

Email

A tracked email.

NameTypeAbout
idtextWhat it is known by: the same id its page's address and a webhook carry.
subjecttextIts subject.
sentAttextWhen it was sent.
sendertextWho sent it.
providertextThe mail service it was sent through.
mailboxtext or nullThe address it was sent from, where known.
recipientslist of textEach address it went to, in order.
sharedtrue or falseShared with the organisation.
viewsnumberEvery view, a machine's too.
humanViewsnumberViews a person most likely made.
clicksnumberClicks on links in it.
repliesnumberReplies noticed in the sender's mailbox.
firstViewedAttext or nullIts first view.
lastViewedAttext or nullIts latest view.
lastClickedAttext or nullIts latest click.
repliedAttext or nullIts latest reply.
lastPlaceobjectWhere its latest view came from; nulls where a mail service's proxy hid it.
lastPlace.countrytext or nullThe country, as a two-letter code.
lastPlace.regiontext or nullThe region.
lastPlace.citytext or nullThe city.
viewsByDaylist of numberViews on each of the last seven days, oldest first.
tagslistIts tags, among those the caller may see.
tags[].idtextThe tag's id.
tags[].nametextIts name.
folderobject or nullIts folder, among those the caller may see.
folder.idtextThe folder's id.
folder.nametextIts name.
archivedAttext or nullWhen it was archived; null while it isn't.
pagetextIts page in Tooli.

Recipient

One address a tracked email went to.

NameTypeAbout
addresstextThe address.
kindtextHow it was sent: to, copied, or copied blind. One of: to cc bcc
viewsnumberViews given to this address: only where the email went to it alone.
humanViewsnumberOf those, the ones a person most likely made.
firstViewedAttext or nullThe first.
lastViewedAttext or nullThe latest.

Event

One request Tooli stored, or a reply it noticed: a row of the Event log, and of a record's views or clicks.

NameTypeAbout
idtextWhat it is known by: /api/v1/events/{id} reads it.
attextWhen it happened.
typetextWhat it was. One of: email_view link_click document_view page_view reply
abouttextWhat it happened to, by its own name: the email's subject, the short link, the document's name, the website's name.
ontextThe handle of what it happened to: an email's id, a link's or a document's code, a website's key.
detailtext or nullFor an email's view, its recipient where the email went to one address; for a page view, the page's path; for a click, where the link sent it; for a reply, who sent it.
classtextWhat Tooli took the request to be. One of: direct gmail_proxy apple_privacy datacenter vpn bot scanner prefetch sender_preview
automatedtrue or falseIts class is one a machine most likely makes.
confidencenumberHow sure the class is, from 0 to 100.
placeobjectWhere it came from; nulls where a mail service's proxy hid it.
place.countrytext or nullThe country, as a two-letter code.
place.regiontext or nullThe region.
place.citytext or nullThe city.
networktext or nullThe network it came from.
ipFamilynumber or null4 or 6: whether it came over IPv4 or IPv6. One of: 4 6
clienttext or nullWhat the client said it was (its user agent).
archivedtrue or falseIt is kept only in the archive now: it left the database after it was copied.

A short link.

NameTypeAbout
codetextWhat it is known by: the part after the short-link address.
urltextThe whole short link.
destinationtextWhere it sends people now.
sentBytextWhere it was made to be sent. One of: anywhere whatsapp sms email
sharedtrue or falseShared with the organisation.
archivedAttext or nullWhen it was archived; null while it isn't.
clicksnumberEvery click, a machine's too.
visitorsnumberDifferent visitors among the clicks a person most likely made.
automatedClicksnumberThe clicks a machine most likely made. They are in clicks too.
firstClickedAttext or nullIts first click.
lastClickedAttext or nullIts latest click.
createdAttextWhen it was made.
madeBytext or nullWho made it: a person's name, or a key's.
mailboxtext or nullThe shared mailbox it was made for, by its name; null for a person's own.
pagetextIts page in Tooli.

Document

A hosted document. Nobody who viewed it is named.

NameTypeAbout
codetextWhat it is known by: what follows /d/ in its address, the same value a document.viewed webhook carries.
urltextThe whole address a reader opens.
nametextIts name.
pagesnumber or nullIts pages; null when they couldn't be counted.
sizenumberIts size, in bytes.
versionnumberWhich file readers get: 1 for the first, one more each time the file is replaced.
sharedtrue or falseShared with the organisation.
downloadsAllowedtrue or falseReaders may download it.
addedBytext or nullWho added it: a person's name, or a key's.
createdAttextWhen it was added.
archivedAttext or nullWhen it was archived; null while it isn't.
viewsnumberEvery answered request for its page, a machine's too; a signed-in person's own preview is left out.
automatedViewsnumberThe views a machine most likely made. They are in views too.
peoplenumberDifferent visitors among the views a person most likely made, told apart by device and network.
timedViewsnumberThe views whose time was reported.
averageReadSecondsnumber or nullWhat one of those took on average, in seconds; null while none was.
furthestPagenumber or nullThe furthest page anyone had on screen for a second or more.
readThroughnumber or nullThat as a share of its pages, from 0 to 100.
downloadsnumberIts downloads.
lastViewedAttext or nullIts latest view.
viewsByDaylist of numberViews on each of the last seven days (UTC), oldest first.
pagetextIts page in Tooli.

Website

A tracked website.

NameTypeAbout
keytextWhat it is known by: its site key, the one its snippet carries.
nametextIts name.
originslist of textThe origins that may report for it, the first one first.
statetextReceiving page views now, with none yet, or paused. One of: receiving none paused
pageViewsnumberEvery page view stored for it, a machine's too.
pageViews24hnumberPage views in the last 24 hours.
visitors24hnumberDifferent visitors among those a person most likely made.
lastPageViewAttext or nullIts latest page view.
addedBytext or nullWho added it: a person's name, or a key's.
createdAttextWhen it was added.
pagetextIts page in Tooli.

Visit

A visit to a website: page views close together from one visitor.

NameTypeAbout
idtextIts first page view's id, as an event's.
attextWhen it began.
endedAttextWhen its latest page view was.
pagesnumberIts page views.
secondsnumberTime looked at, over its timed page views.
entryPathtextThe first page's path.
entryTitletextThe first page's title.
referrertextThe host of the page that led to it; empty when typed or unknown.
classtextWhat Tooli took its first request to be. One of: direct gmail_proxy apple_privacy datacenter vpn bot scanner prefetch sender_preview
automatedtrue or falseThat class is one a machine most likely makes.
placeobjectWhere it came from.
place.countrytext or nullThe country, as a two-letter code.
place.regiontext or nullThe region.
place.citytext or nullThe city.
networktext or nullThe network it came from.
clienttext or nullWhat the browser said it was.
visitorobject or nullIts visitor.
visitor.idtextThe visitor's id, for /api/v1/visitors/{id}.
visitor.nametext or nullWho Tooli takes it to be, where the caller may see it.

Visitor

One device on one network, or a browser by its own mark, named only as the app names it for the caller.

NameTypeAbout
idtextWhat its page's address is called by: /api/v1/visitors/{id} reads it. It is random, and tells nothing of the device or network.
nametext or nullWho Tooli takes it to be, where the caller may see why; null when it isn't named for them.
howtext or nullHow sure: certain or probable. One of: certain probable
firstSeenAttextWhen it was first seen, of what the caller may see.
lastSeenAttextWhen it was last seen.
clicksnumberIts clicks.
documentViewsnumberIts document views.
pageViewsnumberIts page views.
automatedtrue or falseIts latest request was most likely a machine's.
placeobjectWhere its latest request came from.
place.countrytext or nullThe country, as a two-letter code.
place.regiontext or nullThe region.
place.citytext or nullThe city.
place.estimatedtrue or falseAlways true, kept for programs that read it.
networktext or nullThe network its latest request came from.
browsertext or nullIts browser.
systemtext or nullIts operating system.
websiteobject or nullThe website of its latest page view.
website.keytextThe website's key.
website.nametextThe website's name.
pagetextIts page in Tooli.

Shared mailbox

A mailbox the organisation owns, shared with people and teams.

NameTypeAbout
idtextWhat it is known by.
nametextIts name.
addresstextIts address.
providertextThe mail service it was last sent from; empty before anyone has.
seenBytextWho sees it: the people and teams chosen (chosen), or everyone (everyone). One of: chosen everyone
pagetextIts page in Tooli.

Member

A person in the organisation.

NameTypeAbout
idtextWhat they are known by: the lists' owner filter takes it.
nametextTheir name.
emailtextTheir email address.
roletextTheir role. One of: owner admin member viewer
teamobject or nullTheir team.
team.idtextThe team's id.
team.nametextIts name.
joinedAttextWhen they joined.
lastActiveAttext or nullWhen they last used Tooli.

Team

A team in the organisation.

NameTypeAbout
idtextWhat it is known by.
nametextIts name.
leadtext or nullIts lead's name.
memberslistIts members.
members[].idtextThe member's id.
members[].nametextTheir name.
members[].emailtextTheir email address.
createdAttextWhen it was made.

Activity

One change, as Organisation → Activity lists it.

NameTypeAbout
attextWhen.
bytext or nullWho: a person's name, or a key's; null for Tooli itself.
actiontextWhat was done, such as link.archive.
targetTypetext or nullWhat kind of thing it was done to.
detailsobjectWhat it was, as Activity shows it.

Never-track entry

An address or a domain that is never tracked.

NameTypeAbout
idtextWhat it is known by: remove it with DELETE /api/v1/never-track/{id}.
kindtextAn address or a domain. One of: address domain
valuetextThe address or domain, in lower case.
listtextWhose list it is on: the person's own, or the organisation's. One of: own organisation
addedBytext or nullWho added it; null for a key.
addedAttextWhen.

Webhook

An address the organisation's events are sent to.

NameTypeAbout
idtextWhat it is known by.
urltextWhere it sends.
eventslist of textThe events it sends.
statetextSending (on), paused, or switched off by Tooli after failing for three days (off). One of: on paused off
lastSentAttext or nullWhen it last sent.
lastOkAttext or nullWhen a delivery last got through.
failsInRownumberFailed attempts since the last one that got through.
secretEndingtextIts signing secret's last four characters.
createdBytext or nullWho added it: a person's name, or a key's.
createdAttextWhen.

Errors

A refusal is JSON: {"error": {"code": …, "message": …, "details": …, "requestId": …}}. The code says what kind of refusal it is; the message says why, in words a program can match.

CodeAbout
unauthenticatedNo key, or a key that isn't known or no longer works. 401.
forbiddenThe key may not do this: an area it wasn't given, a change where it may only read, a role that may not, or an organisation that is suspended or deleted. 403.
not_foundNo such route or record. 404.
invalid_requestA filter's value or a body isn't one it takes; message names which (unknown_limit, validation_failed …). 400 or 422.
conflictThe change clashes with what is there now (a slug that is taken, an idempotency key still in use). 409.
limit_reachedThe plan's limit is reached; details says which and how much is used. 403.
rate_limitedToo many requests this minute: wait as Retry-After says. 429.
feature_offThat part of Tooli is switched off for now; details.feature names it. 403.
not_on_planThe organisation's plan doesn't include this; details.function names it, and details.plan a plan that has it. 403.
unavailableTooli can't answer just now: try again shortly. 503.
internalSomething went wrong on Tooli's side; requestId helps us find it. 500.

Messages the API gives

MessageAbout
api_key_requiredThere is no key in the Authorization header.
api_key_invalidThe key isn't known, was revoked, or has been rolled for more than 24 hours.
not_permittedThe key wasn't given this area, or may only read it; or the person's role may not do this. details names the area and what was asked.
rate_limitedThe key made too many requests this minute.
organisation_suspendedTooli has suspended the organisation.
organisation_deletedThe organisation's owner has deleted it.
idempotency_key_requiredA POST with no Idempotency-Key, or one that isn't 16 to 64 letters, digits, - or _.
idempotency_key_reusedThis idempotency key was sent with a different request in the last 24 hours.
idempotency_key_in_useThe first request with this idempotency key is still being answered: try again in a moment.
validation_failedThe body isn't what the route takes; details lists each field and why.
unknown_limitlimit isn't a whole number the list takes.
unknown_cursorcursor isn't the next of a page of this list.

Webhook events

A webhook sends each event to your https address as a POST of JSON, signed by the Standard Webhooks convention (webhook-id, webhook-timestamp, webhook-signature).

EventAbout
email.viewedA tracked email is viewed.
link.clickedA short link is clicked.
document.viewedA document is viewed.
website.visitedA visit to a website begins.
reply.receivedA reply to a tracked email is noticed in Zoho Mail.

Your server has 10 seconds to answer with a 2xx. A delivery is tried up to 8 times, waiting 1 min, 5 min, 30 min, 2 h, 5 h, 8 h, 8 h 24 min between tries.