`GET /api/workflows/email-unrouted` -- list messages in Unrouted/ that belong to the caller's workspace. Workspace-admin only.
const url = 'https://example.com/api/workflows/email-unrouted?workspace_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
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://example.com/api/workflows/email-unrouted?workspace_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'GET /api/workflows/email-unrouted – list messages in Unrouted/ that
belong to the caller’s workspace. Workspace-admin only.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
Wrapper item used by list_unrouted_messages: the summary + whether this
message looks like it belongs to the given workspace.
object
true only when current or retained exact issued-recipient evidence names this workspace.
A summary of one message in Unrouted/ – the row the admin UI renders.
object
From: value, verbatim.
Opaque original account identity accompanying an actual live SELECT.
Best-effort received-at (the Date: header verbatim, since the IMAP
INTERNALDATE differs across providers); empty when absent.
The full set of recipient header values (To, Delivered-To,
X-Original-To) so an admin can see which alias was attempted.
Subject: value – empty when absent.
IMAP UID inside the Unrouted/ folder.
Original SELECT generation accompanying this exact UID. Pure unscoped summary helpers omit it; live admin list items always provide it.
Example generated
[ { "matches_workspace": true, "summary": { "from": "example", "mailbox_key": "example", "received_at": "example", "recipients": [ "example" ], "subject": "example", "uid": 1, "uid_validity": 1 } }]