How many conversations just woke up
const url = 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/snooze/recent/items?folder_id=2';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Id of the mailbox. Every mailbox the caller may use is listed in their account.
Query Parameters
Section titled “Query Parameters”The folder to look at.
Responses
Section titled “ Responses ”The count of recently woken threads.
object
Pre-rendered list rows, for the web client.
Examples
{ "items": [], "count": 0}Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}Snooze is not enabled for this tenant.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Not available"}The request body or query string failed validation.
object
The first validation message.
Validation messages keyed by field name.
object
Examples
{ "message": "The conversations field is required.", "errors": { "conversation_ids": [ "The conversations field is required." ] }}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}