MailMoo
EndpointsCampaigns

Change how a campaign picks leads

Changes the sequence's lead-picking settings: preferNewLeads starts the newest leads first, and company relay tries a colleague at the same company when someone does not answer, up to maxPersonsPerCompany people and optionally only at the given seniority levels. Only what you pass changes. Pass dryRun to see the settings before and after without changing anything.

POST/campaigns.updateSettings

Authorization

bearerAuth
AuthorizationBearer <token>

Enter your MailMoo API key (format: sk_live_...)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/campaigns.updateSettings" \  -H "Content-Type: application/json" \  -d '{    "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf"  }'
{  "dryRun": true,  "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf",  "campaignName": "string",  "running": true,  "before": {    "preferNewLeads": true,    "companyRelay": {      "enabled": true,      "maxPersonsPerCompany": 0,      "seniorities": [        "string"      ]    }  },  "after": {    "preferNewLeads": true,    "companyRelay": {      "enabled": true,      "maxPersonsPerCompany": 0,      "seniorities": [        "string"      ]    }  }}