Lists the workspace's emails, optionally filtered by view (draft / past). Paginated; returns recipient-stripped summaries so list payloads stay small. Sorted by updatedAt descending.
AuthorizationRequiredBearer <token>API key as Bearer token
In: header
pageNumberinteger0Minimum: 0Maximum: 9007199254740991pageSizeinteger20Minimum: 0Maximum: 100viewstringFilter by view; omit to include drafts + sent + scheduled.
"past" | "sent" | "scheduled" | "draft"filtersstringJSON-encoded FilterGroup[] for custom filtering. Conditions referencing fields outside the persisted email schema are ignored. ANDed with the 'view' filter when both are supplied.
sortFieldstringField to sort results by. Omit for default (updatedAt descending).
"_id" | "subject" | "sent" | "date_sent" | "recipient_count" | "automatic" | "sync_event_recipients" | "data_version" | "status" | "open_rate" | "click_rate" | "revenue_generated" | "createdAt" | "updatedAt"sortDirectionstringSort direction. Defaults to desc when sortField is provided.
"asc" | "desc"searchstringCase-insensitive subject substring to search for.
fieldsstringComma-separated list of fields to return. Omit for all fields. Valid fields: id, hostId, subject, sent, date_sent, reply_to_email, automatic, display_name, page_id, data_version, sync_event_recipients, attachments, sparkpost_metrics, activity_synced_at, createdAt, updatedAt, recipient_count
Move Page Section
Reorder a section to a new 0-based index within the page's existing sections. Sections are stacked vertically in array order. Call get_page first to learn the page's current structure and the IDs to target.
Create Email
Creates a new email (draft by default). A new email renders a Page: set `page_id` to the id of the page it should render. Recipient emails with typo-looking domains (e.g. gmial.com) are stripped before persistence.