Snooze conversations
const url = 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/snooze';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"conversation_ids":["4185"],"until":"2026-08-20 08:00:00","timezone":"America/Sao_Paulo","folder_id":"2"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://mail.work.optidata.cloud/api/mail/mailboxes/78/snooze \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "conversation_ids": [ "4185" ], "until": "2026-08-20 08:00:00", "timezone": "America/Sao_Paulo", "folder_id": "2" }'Hide threads until until, remembering folder_id so they can be put back
where they came from when they wake. The moment is read in the timezone
you send and must be in the future.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Threads to snooze. Up to 100.
When the threads should come back.
IANA time zone the moment is expressed in.
The folder the threads are being taken out of.
Examples
{ "conversation_ids": [ "4185" ], "until": "2026-08-20 08:00:00", "timezone": "America/Sao_Paulo", "folder_id": "2"}Responses
Section titled “ Responses ”The operation succeeded.
object
Examples
{ "success": true}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."}