Get a scheduled delivery
const url = 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/scheduled/44';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/scheduled/44 \ --header 'Authorization: Bearer <token>'One scheduled delivery together with the draft it will send.
Requires scheduled sending 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.
Id of the scheduled delivery.
Responses
Section titled “ Responses ”The scheduled delivery, with its draft expanded.
object
When the message will be sent.
The time zone the user chose the moment in.
Where a scheduled delivery stands.
How many delivery attempts have been made.
Why the last attempt failed, when one did.
A message being composed.
object
How an outgoing message came to be.
Where a draft stands. not_sent is still being written, sending has been
handed to the queue, sent has left, and failed could not be delivered.
The message this draft answers, when it answers one.
One participant of a message.
object
Display name, when one is known.
The role the address plays: f sender, t recipient, c carbon copy,
b blind copy, r reply-to.
One participant of a message.
object
Display name, when one is known.
The role the address plays: f sender, t recipient, c carbon copy,
b blind copy, r reply-to.
One participant of a message.
object
Display name, when one is known.
The role the address plays: f sender, t recipient, c carbon copy,
b blind copy, r reply-to.
One participant of a message.
object
Display name, when one is known.
The role the address plays: f sender, t recipient, c carbon copy,
b blind copy, r reply-to.
The files uploaded to the draft.
object
Example
{ "id": 44, "timezone": "America/Sao_Paulo", "status": "pending", "draft": { "id": 918, "type": "new", "status": "not_sent", "from": [ { "name": "Jane Doe", "email": "jane.doe@acme.example", "type": "f" } ], "to": [ { "name": "Jane Doe", "email": "jane.doe@acme.example", "type": "f" } ], "cc": [ { "name": "Jane Doe", "email": "jane.doe@acme.example", "type": "f" } ], "bcc": [ { "name": "Jane Doe", "email": "jane.doe@acme.example", "type": "f" } ] }}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"}Scheduled sending 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"}No such resource, or it does not belong to the caller.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "No query results for model."}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."}