ドキュメント本文へスキップ
API

アナリティクス

このグループのすべてのオペレーションの、受け付ける内容、返す内容、返しうるエラー。

オペレーション

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

スコープthreads:read読み取り

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.

クエリパラメーター

fromstring

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

形式date-time
tostring

The end of the window. Defaults to now.

形式date-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.

-840以上840以下既定値0
grainstring

How wide one bucket of days and series is.

次のいずれか"minute""hour""day"既定値"day"
addressstring

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

3〜320文字

戻り値

The numbers for the window.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

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

GET/analytics/sending

Read what became of sent mail

スコープemails:read読み取り

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.

クエリパラメーター

daysinteger

Window length in days.

1以上365以下既定値30
minutesinteger

Window length in minutes, which wins over days.

1以上525600以下
grainstring

How wide one bucket of days is.

次のいずれか"minute""hour""day"既定値"day"
offsetMinutesinteger

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

-840以上840以下既定値0
addressstring

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

3〜320文字

戻り値

The numbers for the window.

エラー

どのオペレーションも返しうるエラー400401403404422500エラー一覧

ほかの提供先

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

オブジェクト

MailboxInsightsobject

objectstring必須
次のいずれか"mailbox_insights"
fromstring必須
形式date-time
tostring必須
形式date-time
grainstring必須
次のいずれか"minute""hour""day"既定値"day"
offsetMinutesinteger必須
scannedinteger必須

Conversations that arrived inside the window.

daysobject[]必須
daystring必須

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

countinteger必須
hoursobject[]必須
hourinteger必須

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

countinteger必須
addressesobject[]必須
addressstring必須

The address the mail arrived at.

countinteger必須
sendersobject[]必須

The senders who wrote most, most first.

emailstring
namestring
null も可
countinteger
lastAtstring
形式date-time
senderCountinteger必須

Everyone who wrote inside the window.

waitingobject[]必須

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

bandinteger必須

At least this many days.

countinteger必須
unattributedinteger必須

Mail that recorded no address it arrived at.

foldersobject[]必須
labelstring
countinteger
unreadinteger
seriesobject[]必須

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

kindstring
keystring
daystring
countinteger

SendingAnalyticsobject

objectstring必須
次のいずれか"sending_analytics"
sincestring必須
形式date-time
untilstring必須
形式date-time
grainstring必須
次のいずれか"minute""hour""day"既定値"day"
offsetMinutesinteger必須
totalsobject必須
sendsinteger
testSendsinteger
recipientsinteger
deliveredinteger
failedinteger
bouncedinteger
complainedinteger
uncertaininteger
pendinginteger
daysobject[]必須
daystring
sentinteger
deliveredinteger
failedinteger
bouncedinteger
complainedinteger
statusesobject[]必須

Sends by status.

labelstring必須

What is counted.

countinteger必須
sourcesobject[]必須

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

labelstring必須

What is counted.

countinteger必須
sendersobject[]必須

Sends by the address they went out as.

labelstring必須

What is counted.

countinteger必須
suppressedobject[]必須

Addresses that were suppressed, by reason.

labelstring必須

What is counted.

countinteger必須