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, ortoAddressfor someone not in the CRM. Addcc,bccandtoMorefor more people. - Write it with
subjectandbody(HTML, withtextfor a plain version), or use a saved template withtemplateId. scheduledAtsends it later;email.cancel_scheduledstops it.objectTypeandrecordIdfile 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_statusandemail.get_send_statsread 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.listandsuppression.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.unsubscribeopts 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 atopicIdrespects 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.
broadcast.savewith aname,audience,subjectand body (or atemplateId).broadcast.previewshows it for a real recipient and flags merge fields that would come out blank.broadcast.checklistsays whether it is ready, how many it reaches and who is left out.broadcast.test_sendsends one copy to you.broadcast.send_noworbroadcast.schedulesends 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:
campaign.createwith aname, amotion(cold,marketingorsales) and an audience.campaign.planpicks the people (up to 500).campaign.generate_draftswrites a draft for each. Nothing is sent.campaign.approve_draftsapproves all, or thedraftIdsyou pass.campaign.launchsends the approved drafts. Drafts over today's caps wait for the next run.
campaign.stats returns the funnel: sent, opened, clicked and replied.
Capabilities
| Capability | What it does | Kind |
|---|---|---|
| broadcast.cancel | Cancel schedule | write |
| broadcast.checklist | Pre-send checklist | read |
| broadcast.delete | Delete broadcast | write |
| broadcast.get | Broadcast | read |
| broadcast.list | Broadcasts | read |
| broadcast.preview | Preview broadcast | read |
| broadcast.recipients | Broadcast recipients | read |
| broadcast.save | Save broadcast | write |
| broadcast.schedule | Schedule | write, needs approval |
| broadcast.send_now | Send now | write, needs approval |
| broadcast.stop | Stop sending | write |
| broadcast.test_send | Send a test | write |
| campaign.approve_drafts | Approve drafts | write |
| campaign.create | Create campaign | write |
| campaign.generate_drafts | Generate drafts | write |
| campaign.get | Campaign | read |
| campaign.launch | Launch campaign | write |
| campaign.list | Campaigns | read |
| campaign.list_drafts | Campaign drafts | read |
| campaign.list_for_record | Campaigns for a record | read |
| campaign.plan | Plan (select audience) | write |
| campaign.stats | Campaign stats | read |
| campaign.update | Update campaign | write |
| compliance.get_config | Get compliance config | read |
| compliance.update_config | Update compliance config | write |
| email_domain.add | Add sending domain | write |
| email_domain.list | List sending domains | read |
| email_domain.remove | Remove sending domain | write |
| email_domain.set_tracking_domain | Set tracking domain | write |
| email_domain.verify | Verify sending domain | write |
| email_template.create | Create email template | write |
| email_template.delete | Delete email template | write |
| email_template.get | Get email template | read |
| email_template.list | List email templates | read |
| email_template.render_preview | Render email preview | read |
| email_template.stats | Template stats | read |
| email_template.update | Update email template | write |
| email_template.usage | Template usage | read |
| email_template.variant_stats | Variant stats | read |
| email.cancel_scheduled | Cancel scheduled send | write |
| email.default_signature | Default signature | read |
| email.get_send_stats | Send stats | read |
| email.list | List sends | read |
| email.log_external | Log external | write |
| email.my_engagement | My engagement | read |
| email.my_signature | My signature | read |
| email.note_self_view | Note self view | write |
| email.schedule | Schedule email | write |
| email.send | Send email | write |
| email.send_bulk | Send bulk email | write, needs approval |
| email.sender_name | Sender name | read |
| email.set_default_signature | Set default signature | write |
| email.set_my_signature | Set my signature | write |
| email.set_sender_name | Set sender name | write |
| email.tracking_status | Tracking status | read |
| email.unsubscribe | Unsubscribe | write |
| mailbox.evaluate_health | Evaluate health | write |
| mailbox.list | List mailboxes | read |
| mailbox.set_default | Set my default mailbox | write |
| mailbox.set_limits | Set sending limits | write |
| mailbox.update_settings | Mailbox settings | write |
| preference.contact_summary | Contact email permissions | read |
| preference.list | Email preferences | read |
| subscription.create_topic | Create subscription topic | write |
| subscription.get_center | Get center | read |
| subscription.list_topics | List subscription topics | read |
| subscription.update_preferences | Update preferences | write |
| subscription.update_topic | Update topic | write |
| suppression.add | Suppress address | write |
| suppression.import | Import | write |
| suppression.list | List suppressions | read |
| suppression.remove | Un-suppress address | write |
Was this page useful?