Search emails
Search the caller’s connected Gmail or Outlook mailbox.
Results come from the connected account the caller can access in their
current workspace (the default account unless catalog_id names another).
Unsent drafts are included and flagged with is_draft.
Authentication
Headers
Query parameters
Search query. Gmail operators (from:, to:, subject:, has:attachment, newer_than:7d, -term, …) are accepted for both providers; operators with no Outlook equivalent are dropped and reported in ignored_operators. Use in:drafts to search only unsent drafts.
Maximum number of results (1-50).
Response
Account provider as Athena reports it: gmail or outlook for accounts connected through the Integrations page; google or microsoft365 for directly-connected accounts.
Human-readable caveats about the results, when there are any.
