Flito docs

Email

Send one email, use templates and merge fields, and run broadcasts and campaigns, within the workspace's sending rules.

Two ways email leaves Flito

  • One-to-one and transactional email goes out through the workspace's email provider, from its verified sending domain.
  • Cold email (outreach to people who have not written to you) goes out through the workspace's connected mailboxes, spread across them, each with a daily cap.

email.send picks the way from sendType: one_to_one (the default), transactional or cold. Naming a mailboxId always sends from that mailbox.

Send one email

curl -s "$FLITO_URL/api/cap/email.send" \
  -H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
  -d '{"input": {
        "contactId": "con_…",
        "subject": "Your order, {{contact.firstName}}",
        "body": "<p>Hi {{ contact.first_name | \"there\" }},</p><p>Your order is on its way.</p>",
        "sendType": "one_to_one"
      }}'
  • Address it with contactId, or toAddress for someone not in the CRM. Add cc, bcc and toMore for more people.
  • Write it with subject and body (HTML, with text for a plain version), or use a saved template with templateId.
  • scheduledAt sends it later; email.cancel_scheduled stops it.
  • objectType and recordId file it on a record and let merge fields read that record.

The answer says what happened to it:

{
  "result": {
    "status": "sent",
    "messageId": "…",
    "emailSendId": "…",
    "activityId": "…",
    "plane": "ses",
    "mailboxId": null
  }
}

status is sent, scheduled, suppressed, blocked, failed, or simulated when the workspace has no provider set up yet.

What stops an email

These come back as status: "suppressed" or "blocked" with a reason, not as an error:

  • The address bounced, complained, or was added to the suppression list.
  • The contact unsubscribed or opted out. Transactional email still reaches them; marketing and outreach never do.
  • The contact has left their company.
  • For cold email with enforce address on, the workspace has no mailing address yet.

Cold email that no mailbox can take today answers 422, naming the reason (every mailbox at its cap, or none connected).

Merge fields

Subjects and bodies take fields from the contact, their company, and the record named by objectType and recordId:

  • {{contact.firstName}} or {{ contact.first_name }}
  • {{company.name}}
  • A fallback for empty values: {{ contact.first_name | "there" }}

A missing value with no fallback renders blank. Values are escaped, so a name cannot inject HTML. email_template.render_preview shows a template as one real recipient will get it.

Tracking and unsubscribe

  • Links are tracked and each email carries an open pixel. email.tracking_status and email.get_send_stats read the results.
  • Every email except transactional and conversational ones gets an unsubscribe link and one-click unsubscribe headers.
  • Once the workspace sets its mailing address, it is added to the footer of every email that is not transactional.

Suppression and preferences

  • suppression.add, suppression.remove, suppression.list and suppression.import (up to 5,000 at once) manage the list.
  • Complaints and hard bounces are suppressed at once; soft bounces after 3 in 14 days.
  • email.unsubscribe opts a contact out. Removing a suppression does not undo an opt-out.
  • Subscription topics (subscription.create_topic, subscription.list_topics) let people choose what they get; an email sent with a topicId respects their choice.

Setup for admins

Before email can go out, an admin sets up:

The email provider key. A person saves it in Settings, Email, Sending domains, under Email provider. An API key cannot set it.

A sending domain. email_domain.add with {"domain": "yourcompany.com"} returns the DNS records to publish: SPF, DKIM and DMARC. Then email_domain.verify checks them; the domain is verified when SPF and DKIM both pass.

Mailboxes for cold email. People connect Gmail, Outlook or SMTP mailboxes in Settings, Email, Mailboxes. mailbox.list shows each one's health, cap and sends today; mailbox.set_limits changes the cap and the warm-up ramp.

A mailing address. compliance.update_config sets the address added to email footers. With enforceAddress on, cold email and broadcasts are blocked until it is set.

Broadcasts

A broadcast is one email to an audience: a saved segment, or up to 5,000 contacts plus 500 typed addresses.

  1. broadcast.save with a name, audience, subject and body (or a templateId).
  2. broadcast.preview shows it for a real recipient and flags merge fields that would come out blank.
  3. broadcast.checklist says whether it is ready, how many it reaches and who is left out.
  4. broadcast.test_send sends one copy to you.
  5. broadcast.send_now or broadcast.schedule sends it. Both need "approved": true.

broadcast.stop stops one that is sending; broadcast.cancel cancels one that is scheduled.

Campaigns

A campaign writes one personal email per person, for someone to approve before anything sends:

  1. campaign.create with a name, a motion (cold, marketing or sales) and an audience.
  2. campaign.plan picks the people (up to 500).
  3. campaign.generate_drafts writes a draft for each. Nothing is sent.
  4. campaign.approve_drafts approves all, or the draftIds you pass.
  5. campaign.launch sends the approved drafts. Drafts over today's caps wait for the next run.

campaign.stats returns the funnel: sent, opened, clicked and replied.

Capabilities

CapabilityWhat it doesKind
broadcast.cancelCancel schedulewrite
broadcast.checklistPre-send checklistread
broadcast.deleteDelete broadcastwrite
broadcast.getBroadcastread
broadcast.listBroadcastsread
broadcast.previewPreview broadcastread
broadcast.recipientsBroadcast recipientsread
broadcast.saveSave broadcastwrite
broadcast.scheduleSchedulewrite, needs approval
broadcast.send_nowSend nowwrite, needs approval
broadcast.stopStop sendingwrite
broadcast.test_sendSend a testwrite
campaign.approve_draftsApprove draftswrite
campaign.createCreate campaignwrite
campaign.generate_draftsGenerate draftswrite
campaign.getCampaignread
campaign.launchLaunch campaignwrite
campaign.listCampaignsread
campaign.list_draftsCampaign draftsread
campaign.list_for_recordCampaigns for a recordread
campaign.planPlan (select audience)write
campaign.statsCampaign statsread
campaign.updateUpdate campaignwrite
compliance.get_configGet compliance configread
compliance.update_configUpdate compliance configwrite
email_domain.addAdd sending domainwrite
email_domain.listList sending domainsread
email_domain.removeRemove sending domainwrite
email_domain.set_tracking_domainSet tracking domainwrite
email_domain.verifyVerify sending domainwrite
email_template.createCreate email templatewrite
email_template.deleteDelete email templatewrite
email_template.getGet email templateread
email_template.listList email templatesread
email_template.render_previewRender email previewread
email_template.statsTemplate statsread
email_template.updateUpdate email templatewrite
email_template.usageTemplate usageread
email_template.variant_statsVariant statsread
email.cancel_scheduledCancel scheduled sendwrite
email.default_signatureDefault signatureread
email.get_send_statsSend statsread
email.listList sendsread
email.log_externalLog externalwrite
email.my_engagementMy engagementread
email.my_signatureMy signatureread
email.note_self_viewNote self viewwrite
email.scheduleSchedule emailwrite
email.sendSend emailwrite
email.send_bulkSend bulk emailwrite, needs approval
email.sender_nameSender nameread
email.set_default_signatureSet default signaturewrite
email.set_my_signatureSet my signaturewrite
email.set_sender_nameSet sender namewrite
email.tracking_statusTracking statusread
email.unsubscribeUnsubscribewrite
mailbox.evaluate_healthEvaluate healthwrite
mailbox.listList mailboxesread
mailbox.set_defaultSet my default mailboxwrite
mailbox.set_limitsSet sending limitswrite
mailbox.update_settingsMailbox settingswrite
preference.contact_summaryContact email permissionsread
preference.listEmail preferencesread
subscription.create_topicCreate subscription topicwrite
subscription.get_centerGet centerread
subscription.list_topicsList subscription topicsread
subscription.update_preferencesUpdate preferenceswrite
subscription.update_topicUpdate topicwrite
suppression.addSuppress addresswrite
suppression.importImportwrite
suppression.listList suppressionsread
suppression.removeUn-suppress addresswrite

Was this page useful?

On this page