MailMoo
ToolsLeads

mailmoo_leads_export

Export leads to a file

Writes the selected leads to a CSV, one file per campaign, and returns a link to each for the user to open in their browser. The link works only for someone signed in to MailMoo as a member of this workspace, so you cannot open it yourself: give it to the user. Files are deleted after a day; export again for a fresh link. The file includes connection (accepted, pending, not accepted, or never requested), whether they replied, and whether a later message was sent after that reply, plus the campaign columns. Rows are not returned in the chat; to read leads here, use leads_search. Use the same filters as a bulk action, including connection (for example pending). An empty selection returns no files.

Effect: Read. See Effects.

Permissions: Read campaigns, Read leads.

Parameters

ParameterTypeRequiredDescription
campaignstringNoLimit the export to this campaign, by name or id.
leadIdsarray of stringNoExactly these leads. Overrides the filters.
querystringNoSearch box text: name, email, company, or profile URL.
companystringNoOnly leads whose company name contains this text.
companiesarray of stringNoLeads at any of these companies, by name (contains). Each name counts toward the filter limit. Use instead of company.
columnEqualsarray of objectNoOnly leads whose campaign column holds this value, e.g. [{ column: 'Interested', value: 'true' }]. Needs campaign. Column names from campaign_get_context.
jobTitlestringNoOnly leads whose job title contains this text.
industrystringNoOnly leads whose industry contains this text.
sequenceStatusIN_PROGRESS, COMPLETED, PAUSED, FAILEDNoOnly leads whose sequence is in this state: IN_PROGRESS, COMPLETED, PAUSED, or FAILED.
pipelineStagestringNoOnly leads in this pipeline stage: a category such as IN_CONVERSATION, or a stage name.
excludePipelineStagestringNoLeave out leads in this pipeline stage, e.g. MEETING_BOOKED to skip anyone who already booked.
connectionAcceptedbooleanNotrue: only leads who accepted the connection request. false: only leads who did not. For pending, not accepted or never requested, use connection.
connectionaccepted, pending, declined, never_requestedNoWhere the connection request stands with the lead's sender. accepted: connected. pending: sent, still waiting. declined: sent, and the wait for acceptance ran out without a connection (ignored requests count too). never_requested: no request sent yet. Use instead of connectionAccepted, not with it.

On this page