Skip to content

`GET /api/workflows/email-unrouted` -- list messages in Unrouted/ that belong to the caller's workspace. Workspace-admin only.

GET
/api/workflows/email-unrouted
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.

workspace_id
required
string format: uuid

OK

Media typeapplication/json
Array<object>

Wrapper item used by list_unrouted_messages: the summary + whether this message looks like it belongs to the given workspace.

object
matches_workspace
required

true only when current or retained exact issued-recipient evidence names this workspace.

boolean
summary
required

A summary of one message in Unrouted/ – the row the admin UI renders.

object
from
required

From: value, verbatim.

string
mailbox_key

Opaque original account identity accompanying an actual live SELECT.

string | null
received_at
required

Best-effort received-at (the Date: header verbatim, since the IMAP INTERNALDATE differs across providers); empty when absent.

string
recipients
required

The full set of recipient header values (To, Delivered-To, X-Original-To) so an admin can see which alias was attempted.

Array<string>
subject
required

Subject: value – empty when absent.

string
uid
required

IMAP UID inside the Unrouted/ folder.

integer format: int32
uid_validity

Original SELECT generation accompanying this exact UID. Pure unscoped summary helpers omit it; live admin list items always provide it.

integer | null format: int32

Example generated

[
{
"matches_workspace": true,
"summary": {
"from": "example",
"mailbox_key": "example",
"received_at": "example",
"recipients": [
"example"
],
"subject": "example",
"uid": 1,
"uid_validity": 1
}
}
]