lemlist whoami (signed-in account)
Report which lemlist account this browser is signed in as: the user id, email and name. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other lemlist scripts.
Input
None
Output
evidence requiredloggedIn requiredid optionalemail optionalFAQ
lemlist login (Google SSO)
Log into lemlist with Google sign-in, handling the Google account chooser and consent screen. Returns straight away if already signed in, and reports the lemlist account. Optionally pass which Google account to use. Needs a browser already signed in to Google and a Google account that is already a lemlist user.
Add a lead to a lemlist campaign
Add a lead to one of your lemlist campaigns, given the campaign id (cam_... or its URL) and the lead's email. Optional fields: firstName, lastName, companyName, companyDomain, phone and linkedinUrl. Uses lemlist's own manual-add action, with no enrichment and no credits spent. Practice mode by default: it checks the campaign and tells you its name, its state, how many senders are connected, and whether the email is already a lead, without adding anything. Pass dryRun:false to add for real. The lead is confirmed by re-reading the campaign's leads. If the email is already in the campaign, it reports already_present and changes nothing, because lemlist does not modify existing campaign leads. In a launched campaign with a connected sender, a new lead enters the sequence and can be emailed, so check sendersConnected first.
