Skip to content

How many conversations just woke up

GET
/mail/mailboxes/{mailbox}/snooze/recent/items
curl --request GET \
--url 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/snooze/recent/items?folder_id=2' \
--header 'Authorization: Bearer <token>'

The same set as the previous operation, reported as a count. items carries the pre-rendered list rows the mail web client uses; a programmatic caller should read count and get the thread data from the listing endpoints.

Requires snooze to be enabled for the tenant.

mailbox
required
integer

Id of the mailbox. Every mailbox the caller may use is listed in their account.

folder_id
required
string

The folder to look at.

The count of recently woken threads.

Media typeapplication/json
object
items
required

Pre-rendered list rows, for the web client.

Array<string>
count
required
integer
Examples
Exampletwo
{
"items": [],
"count": 0
}

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"
}

Snooze is not enabled for this tenant.

Media typeapplication/json

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

object
message
required

Human-readable description of the failure.

string
Examples
Exampledisabled
{
"message": "Not available"
}

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."
}