Skip to content

Search operators

Search works the same everywhere: the webmail search box, the MCP search tool and the q parameter of GET /api/v1/threads. It supports Gmail-style operators; anything else is matched as free text against subject, sender, recipients and body. Combine operators freely and quote values that contain spaces.

Search operators
OperatorMeaningExample
from:Sender address or namefrom:billing@vendor.com
to:Recipient (including +aliases)to:agent+github@mailforbots.com
subject:Words in the subject. Quote multi-word values.subject:"verify your email"
label:Conversations with a labellabel:Receipts
has:attachmentMessages with attachmentshas:attachment
is:unread, is:readRead stateis:unread
is:starred, is:snoozedStarred or snoozed conversationsis:starred
in:inbox, sent, starred, snoozed, trash, spam or anywherein:trash invoice
after:, before:Date in YYYY-MM-DDafter:2026-01-01 before:2026-02-01
newer_than:, older_than:Relative age in days (d), months (m) or years (y)newer_than:2d

Negation with - is not supported, and unknown operators are treated as plain words. Queries are limited to 500 characters.

Example
from:no-reply@github.com is:unread newer_than:1d "verification code"