Skip to content
gist.link ↗

Mail types

Type definitions referenced by Mail queries and mutations.

Object. A device credential for local IMAP/SMTP clients. Secrets are never returned.

Field Type Description
uuid String! —
name String! —
secret_prefix String! First characters of the secret, for recognition.
created_at String! —
last_used_at String —
revoked_at String —

Object. Returned once at creation time; the secret is not retrievable afterwards.

Field Type Description
app_password AppPassword! —
secret String! Plaintext app password — shown exactly once.

Object. Attachment metadata; the blob downloads via download_path with a bearer token.

Field Type Description
uuid String! —
filename String! —
content_type String! —
size_bytes Int! —
download_path String! API-relative download path (GET, Authorization: Bearer).

Object. Per-message authentication verdicts recorded at delivery.

Field Type Description
spf String PASS / FAIL / GRAY / PROCESSING_FAILED (SES verdicts).
dkim String —
dmarc String —
spam String —
virus String —

Input object. One mail action executed on behalf of an automate workflow run.

Field Type Description
type String! move_to_folder | add_label | star | mark_read | delete | never_spam | always_spam | forward_copy | block_sender
email_uuid String! —
mailbox_uuid String —
destination String forward_copy: destination address.
keep_mode String forward_copy: INBOX | ARCHIVE | TRASH (informational).
folder String move_to_folder: target folder.
label_uuid String add_label: label uuid.
pattern String block_sender: address or bare domain (defaults to the email’s sender).

Scalar. The Boolean scalar type represents true or false.

Object. Routes mail for unknown addresses on a domain to a mailbox.

Field Type Description
uuid String! —
domain String! —
mailbox_uuid String! —
created_at String! —

Input object.

Field Type Description
mailbox_uuid String! —
address String! Full address on a domain verified in settings.
display_name String Defaults to the mailbox display name.

Input object.

Field Type Description
mailbox_uuid String! —
destination String! —
keep_mode String INBOX (default), ARCHIVE, or TRASH.

Input object.

Field Type Description
mailbox_uuid String! —
name String! —
color String Hex color; defaults to a palette color.

Input object.

Field Type Description
address String! Full address, e.g. jane@yourdomain.com; the domain must be verified in settings.
user_ids [String!] Auth user ids to assign the mailbox to (at least one for kind=mailbox; ignored for kind=support).
display_name String! —
kind String mailbox (default) or support — support addresses create tickets in the support app instead of a mailbox.

Object. One email message.

Field Type Description
uuid String! —
thread_uuid String Null for org-level outbound log rows created by machine sends.
folder Folder! —
status EmailStatus! —
from EmailParty! —
to [EmailParty!]! —
cc [EmailParty!]! —
bcc [EmailParty!]! —
subject String! —
body_text String —
body_html String —
snippet String! —
is_read Boolean! —
is_starred Boolean! —
error_message String Populated when status is FAILED.
labels [Label!]! —
attachments [Attachment!]! —
spam_score Float Spam score assigned at delivery (higher = more spammy); null for outbound mail.
auth_results AuthResults Authentication verdicts recorded at delivery (SPF, DKIM, DMARC…).
list_unsubscribe String Raw List-Unsubscribe header, when the sender provided one.
list_unsubscribe_one_click Boolean! True when the message supports RFC 8058 one-click unsubscribe.
scheduled_at String Set on send-later messages until they are released.
sent_at String —
received_at String —
created_at String! —

Object. A sender or recipient.

Field Type Description
address String! —
name String —

Input object.

Field Type Description
address String! —
name String —

Enum. Delivery lifecycle of a message.

Value Description
DRAFT Being composed; lives in the DRAFTS folder.
QUEUED Accepted for delivery; a Messenger worker is sending it.
SENT Handed to the provider (SES; Mailpit locally).
FAILED Delivery failed after retries; see error_message.
RECEIVED Inbound message delivered to this mailbox.

Object.

Field Type Description
type String! move_folder | add_label | star | mark_read | forward | delete | never_spam | always_spam
value String move_folder: a Folder name; add_label: a label uuid; forward: a destination address.

Input object.

Field Type Description
type String! —
value String —

Object.

Field Type Description
field String! from | to | cc | subject | body | list_id | has_attachment | size_gt_kb
op String! contains | not_contains | equals | starts_with | ends_with
value String! —

Input object.

Field Type Description
field String! —
op String! —
value String! —

Scalar. The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Enum. System folders. Custom labels are the Label type, not folders.

Value Description
INBOX —
SENT —
DRAFTS —
ARCHIVE —
SPAM —
TRASH —

Object. Unread count for one system folder.

Field Type Description
folder Folder! —
unread_count Int! —

Object. Auto-forwarding of inbound mail to another address. External destinations must confirm via emailed link before forwarding starts.

Field Type Description
uuid String! —
mailbox_uuid String! —
destination String! —
keep_mode String! What happens to the local copy: INBOX (keep), ARCHIVE, or TRASH.
active Boolean! —
verified Boolean! False until the destination confirms the emailed verification link.
automation_workflow_uuid String Uuid of the mirrored workflow in the automate app, when synced.
created_at String! —

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Scalar. Arbitrary JSON payload (workflow definitions exchanged with automate).

Object. A custom label within one mailbox.

Field Type Description
uuid String! —
name String! —
color String! Hex color, e.g. “#7c3aed”.
created_at String! —

Object. An email address assigned to one or more auth users; the domain is verified in settings.

Field Type Description
uuid String! —
address String! Full lowercase address, globally unique.
display_name String! —
kind String! mailbox (regular inbox) or support (inbound mail becomes support tickets; no inbox).
signature_html String HTML appended to messages composed in the client.
user_ids [String!]! Assigned auth-service user ids (several = shared mailbox).
delegate_user_ids [String!]! Subset of user_ids granted delegate (secretary-style) access rather than ownership.
created_at String! —
updated_at String! —

Object. An extra address on a mailbox: mail to it delivers to the mailbox, and messages can be sent as it. Plus-addressing (user+tag@) needs no alias.

Field Type Description
uuid String! —
mailbox_uuid String! —
address String! —
display_name String! —
created_at String! —

Object. Per-mailbox preferences: vacation responder and undo-send window.

Field Type Description
mailbox_uuid String! —
vacation_enabled Boolean! —
vacation_subject String —
vacation_body String —
vacation_starts_at String Optional schedule window; the responder only runs between these times.
vacation_ends_at String —
vacation_interval_days Int! Days between repeat auto-replies to the same sender.
vacation_contacts_only Boolean! Only auto-reply to people the mailbox has previously written to.
undo_send_seconds Int! Seconds a sent message stays cancellable (0–120).
updated_at String! —

Object. Connection settings for local email clients (Apple Mail, Thunderbird, Outlook…).

Field Type Description
imap_host String! —
imap_port Int! —
imap_security String! Connection security, e.g. “SSL/TLS”.
smtp_host String! —
smtp_port Int! —
smtp_security String! —
username_hint String! What to use as the username (the mailbox address).
password_hint String! What to use as the password (an app password).

Object. A filter (rule) run against inbound mail. Org-level filters (mailbox_uuid null) run before per-mailbox filters, both in position order. All conditions must match (AND) for the actions to run.

Field Type Description
uuid String! —
mailbox_uuid String Null for organization-level filters.
name String! —
conditions [FilterCondition!]! —
actions [FilterAction!]! —
active Boolean! —
position Int! Run order (ascending).
stop_processing Boolean! Stop evaluating later filters when this one matches.
automation_workflow_uuid String Uuid of the mirrored workflow in the automate app, when synced.
created_at String! —
updated_at String! —

Input object.

Field Type Description
mailbox_uuid String Omit for an organization-level filter (ROLE_ADMIN).
name String —
conditions [FilterConditionInput!] —
actions [FilterActionInput!] —
active Boolean —
position Int —
stop_processing Boolean —

Object. A reusable message template (canned response).

Field Type Description
uuid String! —
mailbox_uuid String! —
name String! —
subject String —
body_text String —
body_html String —
created_at String! —
updated_at String! —

Input object.

Field Type Description
mailbox_uuid String Required on create; ignored on update.
name String —
subject String —
body_text String —
body_html String —

Object. Organization-wide mail policy, managed by admins through the settings app.

Field Type Description
external_forwarding_enabled Boolean! Whether members may auto-forward to addresses outside the organization.
spam_level String! lenient | standard | aggressive — how eagerly mail is classified as spam.
dmarc_fail_action String! none | spam | reject — what happens to mail that fails DMARC.
spam_purge_days Int! Days spam is kept before permanent deletion.
trash_purge_days Int! Days trash is kept before permanent deletion.
retention_days Int! Delete ALL mail older than this many days; 0 disables retention-based deletion.
updated_at String! —

Input object.

Field Type Description
external_forwarding_enabled Boolean —
spam_level String —
dmarc_fail_action String —
spam_purge_days Int —
trash_purge_days Int —
retention_days Int —

Object.

Field Type Description
hasNextPage Boolean! —
endCursor String —

Input object.

Field Type Description
draft_uuid String Present when updating an existing draft.
mailbox_uuid String! —
to [EmailPartyInput!] —
cc [EmailPartyInput!] —
bcc [EmailPartyInput!] —
subject String —
body_text String —
body_html String —
thread_uuid String Set when drafting a reply inside an existing thread.

Input object.

Field Type Description
mailbox_uuid String Mailbox to send from (humans). Defaults to the caller’s only mailbox.
from EmailPartyInput Sender for machine callers (must be on a verified org domain). Humans must use mailbox_uuid.
to [EmailPartyInput!]! —
cc [EmailPartyInput!] —
bcc [EmailPartyInput!] —
subject String! —
body_text String —
body_html String —
thread_uuid String Reply threading: the thread this message answers.
draft_uuid String Send an existing draft (its content is replaced by this input).
alias_uuid String Send as one of the mailbox’s aliases instead of its primary address.
scheduled_at String Send later: ISO 8601 time in the future (at most one year out).

Object. An allow/block list entry. Blocked senders deliver straight to Trash; allowed senders bypass spam filtering. Pattern is a full address or a bare domain (subdomains included).

Field Type Description
uuid String! —
mailbox_uuid String Null for organization-level rules.
type String! allow or block.
pattern String! —
automation_workflow_uuid String Uuid of the mirrored workflow in the automate app, when synced.
created_at String! —

Input object.

Field Type Description
mailbox_uuid String Omit for an organization-level rule (ROLE_ADMIN).
type String! allow or block.
pattern String! Full address (user@example.com) or bare domain (example.com).

Object.

Field Type Description
status String! —
service String! —
timestamp String! —

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Object. A Gmail-style conversation within one mailbox.

Field Type Description
uuid String! —
mailbox_uuid String! The mailbox this thread belongs to.
subject String! —
snippet String! Plain-text preview of the most recent message (Trash/Spam excluded).
last_message_at String! —
message_count Int! Messages not in Trash/Spam.
unread_count Int! Unread messages not in Trash/Spam.
is_starred Boolean! True when any message in the thread is starred.
snoozed_until String Set while the thread is snoozed; cleared automatically when a new message arrives.
emails [Email!]! Messages, oldest first (includes Trash/Spam so the client can render context).
created_at String! —

Object.

Field Type Description
edges [ThreadEdge!]! —
pageInfo PageInfo! —

Object.

Field Type Description
cursor String! —
node Thread! —

Input object.

Field Type Description
folder Folder Only threads with at least one message in this folder.
label_uuid String Only threads carrying this custom label.
search String Matches subject, preview, sender and body text.
is_unread Boolean Only threads with unread messages.
is_starred Boolean Only threads with starred messages.
is_snoozed Boolean true: only currently snoozed threads. Otherwise snoozed threads are hidden.

Object. Outcome of an unsubscribe attempt.

Field Type Description
status String! unsubscribed (done server-side) or manual (open url / send mailto).
url String Unsubscribe web link, when manual completion is needed.
mailto String Unsubscribe mailto target, when manual completion is needed.

Input object.

Field Type Description
active Boolean —
keep_mode String —

Input object.

Field Type Description
name String —
color String —

Input object.

Field Type Description
display_name String —
signature_html String —

Input object.

Field Type Description
vacation_enabled Boolean —
vacation_subject String —
vacation_body String —
vacation_starts_at String ISO 8601, or null/empty to clear.
vacation_ends_at String —
vacation_interval_days Int —
vacation_contacts_only Boolean —
undo_send_seconds Int —