List the last 50 inbound mailbox messages (environment-scoped)
const url = 'https://api.emite.cr/v1/tenants/me/inbox/messages';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://api.emite.cr/v1/tenants/me/inbox/messages \ --header 'Authorization: Bearer <token>'Metadata only (the email body is never persisted): from, subject, receivedAt, status (received|processed|rejected|ignored), rejectReason and the linked import batch when one was created. Newest first, in the environment of the request. An email to an address no company has is dropped without a log entry.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
Id of the log entry.
The email's Message-ID header — what tells a redelivery apart from a new email.
Sender, as the email states it (From); null when unknown.
Subject of the email; null when it had none.
When the email was logged.
received: logged, its import is queued or running. processed: an import batch was created with its XML (documentImportId). rejected: dropped, see rejectReason. ignored: nothing to import.
Why it was not imported, a short code: inbox_disabled, rate_limited (over 100 emails in an hour to the company's addresses) or processing_failed for rejected; no_candidate_attachments (no .xml or .zip attached) for ignored. null otherwise.
Attachments taken for import: the .xml and .zip files, at most 10.
The import batch created from it (GET /v1/documents/imports/{id}); null when none was.
Example
[ { "status": "received", "rejectReason": "inbox_disabled" }]Missing or invalid JWT / API key.