Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail

The activity log

View as .md

The activity log says who did what, and when, in your space: your agent, you from your assistant, or the service itself. In the app, every object carries its own, and you ask the agent at the foot of that log.

Who did what

Each line has an author, the actor:

kindWhoWhat the app shows
agentAn API key: an agent working with its own key.The key’s name.
humanAn assistant’s connection (Claude, ChatGPT…): a human and their assistant.“Vous” (you) when it is the reading connection (you = true), otherwise its name.
serviceEscouade Mail itself: receiving, sending, circuit breaker, administration.“Subagent”.

An assistant’s connection acts on behalf of its human: what the assistant does through it, and what the human does in the view, carry the same author.

Each line also has a sentence in French (“Brouillon validé”, “Réponse reçue de …”, “Campagne mise en pause”). It never repeats what a third party wrote: neither the subject nor the body of an e-mail received, only an address.

By day, or by object

list_events without an object returns the requested day (today by default, Paris time). With an object (an inbox, a thread, a message, a campaign, an audience, a contact or a domain), it returns everything that touches it, newest first. A key limited to some inboxes only sees the lines of its inboxes.

A message’s author, and the previous version

Every outgoing message carries created_by: the author who wrote it, in the same format. A draft that someone corrects keeps the version it replaces, in previous: its subject, its text, its HTML, the time and the author of the correction. Correcting the draft with those values means going back, and you can go back from going back. A campaign and a template likewise keep their previous version (see Campaigns). A message that has been approved or cancelled no longer has a previous version.

The tools

workspace_snapshot serves the app itself: it prepares in one go the first pages of the sections a connection can read, so that navigating the view does not read everything again. An agent does not need to call it.

list_events

Reads the space’s activity log: who did what, and when (your agent, you from your assistant, or the service). Access: read.

ParameterTypeRequiredDescription
daytextnoA Paris day, YYYY-MM-DD. Absent: today, unless an object is given (then its whole history).
inbox_idinb_… identifiernoAn inbox (inb_…).
thread_idthr_… identifiernoA thread (thr_…).
message_idmsg_… identifiernoA message (msg_…).
campaign_idcmp_… identifiernoA campaign (cmp_…).
audience_idaud_… identifiernoAn audience (aud_…).
contacttextnoAn address: its threads, its record, its blocks.
domaintextnoA domain: its checks and its inboxes.
cursortextnoCursor of the next page: the next_cursor value from the previous call.
limitintegernoThe number of lines returned, from 1 to 200. 50 by default.

Full reference

workspace_snapshot

Preloads the first pages of the sections allowed for this connection. Access: any key.

ParameterTypeRequiredDescription
known_revisiontextnoOpaque revision received earlier, optional.

Full reference

This page in Markdown: /en/mail/docs/main-courante.md All the docs for an agent: /en/mail/docs/llms.txt Legal notice · Terms · Privacy · Service status