Skip to content

Recent mail for a home screen

GET
/users/{userUuid}/dashboard
curl --request GET \
--url 'https://mail.work.optidata.cloud/api/users/9e926fb1-e1ff-4fc9-81a1-5740f10ba57f/dashboard?limit=5' \
--header 'Authorization: Bearer <token>'

The most recent conversations in the user’s inbox, ready to be rendered as a home-screen widget. Only the authenticated user’s own dashboard may be read.

userUuid
required
string format: uuid

UUID of the user. Must be the authenticated user.

limit
required
integer
>= 1 <= 100

How many conversations to return.

The most recent conversations, newest first.

Media typeapplication/json
Array
object
id

Id of the thread. A single-message thread reports the message id with the sign flipped.

string | integer
date
string
subject
string | null
fragment

Preview snippet of the newest message.

string | null
unreadMessages
integer
totalMessages
integer
type

How an outgoing message came to be.

string
Allowed values: new reply forward
replyServerMessageId
string | null
tagIds
Array<string | integer>
flags

The state of a message or thread, as a set of booleans.

object
isUnread
boolean
isFlagged

The user starred it.

boolean
hasAttachment
boolean
isReplied
boolean
isSentByMe
boolean
isForwarded
boolean
isInvite

It carries a calendar invitation.

boolean
isDraft
boolean
isDeleted
boolean
isNotificationSent

A read receipt was requested.

boolean
isUrgent
boolean
isLowPriority
boolean
isPriority
boolean
participants

The addresses of a message, grouped by role.

object
from
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
to
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
cc
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
bcc
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
replyTo
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
sender
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
notification
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
resentFrom
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
messages

The messages of the thread. In a listing they carry ids and flags only; read the bodies with the reader operations.

Array<object>

A message as it appears inside a listing or a thread.

object
id
string | integer
date
string
subject
string | null
fragment
string | null
conversationId
string | integer | null
messageIdHeader

The RFC 5322 Message-ID header.

string | null
sizeBytes
integer | null
folderId
string | integer | null
flags

The state of a message or thread, as a set of booleans.

object
isUnread
boolean
isFlagged

The user starred it.

boolean
hasAttachment
boolean
isReplied
boolean
isSentByMe
boolean
isForwarded
boolean
isInvite

It carries a calendar invitation.

boolean
isDraft
boolean
isDeleted
boolean
isNotificationSent

A read receipt was requested.

boolean
isUrgent
boolean
isLowPriority
boolean
isPriority
boolean
participants

The addresses of a message, grouped by role.

object
from
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
to
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
cc
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
bcc
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
replyTo
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
sender
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
notification
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
resentFrom
Array<object>

One participant of a message.

object
name

Display name, when one is known.

string | null
email
string format: email
type

The role the address plays: f sender, t recipient, c carbon copy, b blind copy, r reply-to.

string | null
body

Left empty in listings; read the body with a reader operation.

Array
attachments
Array<object>

A file carried by a message.

object
part

MIME part number, used to download it.

string | integer
filename
string | null
contentType
string | null
contentId

The cid an inline image is referenced by inside the body.

string | null
disposition

attachment or inline.

string | null
hasExplicitAttachmentDisposition
boolean
fallbackOrdinal

Position used to name a file that arrived without one.

integer | null
sizeBytes
integer | null
icon

Icon hint for a file-type badge.

string | null
url

Signed download link, populated by the reader operations. Use it as-is.

string | null
inlineAttachments
Array<object>

A file carried by a message.

object
part

MIME part number, used to download it.

string | integer
filename
string | null
contentType
string | null
contentId

The cid an inline image is referenced by inside the body.

string | null
disposition

attachment or inline.

string | null
hasExplicitAttachmentDisposition
boolean
fallbackOrdinal

Position used to name a file that arrived without one.

integer | null
sizeBytes
integer | null
icon

Icon hint for a file-type badge.

string | null
url

Signed download link, populated by the reader operations. Use it as-is.

string | null
tagIds
Array<string | integer>
invite

The calendar invitation carried by the message, when there is one.

object | null
share

The folder-sharing offer carried by the message, when there is one.

object | null
link

Deep link that opens this thread in the mail web client.

string format: uri
Examples
Exampledigest
[
{
"id": "-4186",
"link": "https://mail.work.optidata.cloud/urn/acme/v1-10-eyJjb252ZXJzYXRpb25faWQiOi00MDAyfQ==",
"date": "2026-08-19T12:45:28.000000Z",
"subject": "Requested files",
"fragment": "Hi Jane, here are the files you asked for…",
"unreadMessages": 1,
"totalMessages": 1,
"type": "new",
"replyServerMessageId": null,
"tagIds": [],
"flags": {
"isUnread": true,
"isFlagged": false,
"hasAttachment": true,
"isReplied": false,
"isSentByMe": false,
"isForwarded": false,
"isInvite": false,
"isDraft": false,
"isDeleted": false,
"isNotificationSent": false,
"isUrgent": false,
"isLowPriority": false,
"isPriority": false
},
"participants": {
"from": [
{
"name": "John Roe",
"email": "john.roe@example.com",
"type": "f"
}
],
"to": [
{
"name": "Jane Doe",
"email": "jane.doe@acme.example",
"type": "t"
}
],
"cc": [],
"bcc": [],
"replyTo": [],
"sender": [],
"notification": [],
"resentFrom": []
},
"messages": []
}
]

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

The caller may not act on this mailbox, user or resource.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Exampledenied
{
"message": "This action is unauthorized."
}

The request body or query string failed validation.

Media typeapplication/json
object
message
required

The first validation message.

string
errors
required

Validation messages keyed by field name.

object
key
additional properties
Array<string>
Examples
Exampleinvalid
{
"message": "The conversations field is required.",
"errors": {
"conversation_ids": [
"The conversations field is required."
]
}
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}