Ir a la documentación
API

Analíticas

Cada operación de este grupo: lo que acepta, lo que devuelve y los errores con los que puede responder.

Operaciones

The numbers behind the Analytics page of the app: how mail arrives in the mailbox, and what became of the mail the workspace sent.

GET/analytics/mailbox

Read how mail arrives

Alcancesthreads:readLee

How mail arrives, as the Analytics page of the app shows it, for a window of 30 days up to now unless from and to say otherwise: conversations per day or per grain bucket and per hour of the day, the addresses they arrived at, the senders who wrote most, how many wait on a reply for 1, 3, 7 days or more, and the folders. A key or an app limited to particular addresses counts only the mail that arrived at them, and address narrows everything to one address.

Requires the threads:read scope.

Parámetros de consulta

fromstring

The start of the window, ISO 8601 with a zone. Defaults to 30 days before to.

Formatodate-time
tostring

The end of the window. Defaults to now.

Formatodate-time
offsetMinutesinteger

Minutes east of UTC to cut days and hours in, from -840 to 840. Pass the reader’s offset so a day breaks where theirs does.

Al menos -840Como máximo 840Predeterminado0
grainstring

How wide one bucket of days and series is.

Uno de"minute""hour""day"Predeterminado"day"
addressstring

Count only the mail delivered to this address. One the key does not reach counts nothing.

De 3 a 320 caracteres

Devuelve

The numbers for the window.

Errores

Los errores que puede devolver cualquier operación400401403404422500Catálogo de errores

También disponible en

SDK
analytics.mailbox()
CLI
openemail analytics mailbox
MCP
getMailboxInsights

GET/analytics/sending

Read what became of sent mail

Alcancesemails:readLee

What the workspace sent inside a window and what became of it, as the Analytics page of the app shows it: delivered, failed, bounced and complained, per day or per grain bucket, with the statuses, the sources, the senders and the addresses suppressed. The window is days, 30 by default and at most 365, or minutes, which wins, and it starts at the beginning of its oldest bucket. A key or an app limited to particular addresses counts only the mail sent from them.

Requires the emails:read scope.

Parámetros de consulta

daysinteger

Window length in days.

Al menos 1Como máximo 365Predeterminado30
minutesinteger

Window length in minutes, which wins over days.

Al menos 1Como máximo 525600
grainstring

How wide one bucket of days is.

Uno de"minute""hour""day"Predeterminado"day"
offsetMinutesinteger

Minutes east of UTC to cut the buckets in, from -840 to 840.

Al menos -840Como máximo 840Predeterminado0
addressstring

Count only the mail sent from this address. One the key does not reach counts nothing.

De 3 a 320 caracteres

Devuelve

The numbers for the window.

Errores

Los errores que puede devolver cualquier operación400401403404422500Catálogo de errores

También disponible en

SDK
analytics.sending()
CLI
openemail analytics sending
MCP
getSendingAnalytics

Objetos

MailboxInsightsobject

objectstringObligatorio
Uno de"mailbox_insights"
fromstringObligatorio
Formatodate-time
tostringObligatorio
Formatodate-time
grainstringObligatorio
Uno de"minute""hour""day"Predeterminado"day"
offsetMinutesintegerObligatorio
scannedintegerObligatorio

Conversations that arrived inside the window.

daysobject[]Obligatorio
daystringObligatorio

The bucket: YYYY-MM-DD, YYYY-MM-DDTHH or YYYY-MM-DDTHH:MM by grain.

countintegerObligatorio
hoursobject[]Obligatorio
hourintegerObligatorio

The hour of the day, 0 to 23, in offsetMinutes.

countintegerObligatorio
addressesobject[]Obligatorio
addressstringObligatorio

The address the mail arrived at.

countintegerObligatorio
sendersobject[]Obligatorio

The senders who wrote most, most first.

emailstring
namestring
Puede ser null
countinteger
lastAtstring
Formatodate-time
senderCountintegerObligatorio

Everyone who wrote inside the window.

waitingobject[]Obligatorio

Conversations whose last message came from somebody else, by how many days it has waited.

bandintegerObligatorio

At least this many days.

countintegerObligatorio
unattributedintegerObligatorio

Mail that recorded no address it arrived at.

foldersobject[]Obligatorio
labelstring
countinteger
unreadinteger
seriesobject[]Obligatorio

Per bucket counts for the top addresses and senders, so each can be charted.

kindstring
keystring
daystring
countinteger

SendingAnalyticsobject

objectstringObligatorio
Uno de"sending_analytics"
sincestringObligatorio
Formatodate-time
untilstringObligatorio
Formatodate-time
grainstringObligatorio
Uno de"minute""hour""day"Predeterminado"day"
offsetMinutesintegerObligatorio
totalsobjectObligatorio
sendsinteger
testSendsinteger
recipientsinteger
deliveredinteger
failedinteger
bouncedinteger
complainedinteger
uncertaininteger
pendinginteger
daysobject[]Obligatorio
daystring
sentinteger
deliveredinteger
failedinteger
bouncedinteger
complainedinteger
statusesobject[]Obligatorio

Sends by status.

labelstringObligatorio

What is counted.

countintegerObligatorio
sourcesobject[]Obligatorio

Sends by where they came from: the app, the API, a broadcast and the rest.

labelstringObligatorio

What is counted.

countintegerObligatorio
sendersobject[]Obligatorio

Sends by the address they went out as.

labelstringObligatorio

What is counted.

countintegerObligatorio
suppressedobject[]Obligatorio

Addresses that were suppressed, by reason.

labelstringObligatorio

What is counted.

countintegerObligatorio