.output.*}}`: what an earlier step returned.
- `{{record.firstName|there}}`: a fallback when the field is empty.
## Make one [#make-one]
```bash
curl -s "$FLITO_URL/api/cap/workflow.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {
"name": "New deal: call within a day",
"objectType": "deal",
"trigger": {"type": "record_created"},
"steps": [{
"id": "task", "type": "action", "capabilityId": "task.create",
"input": {"objectType": "deal", "objectId": "{{record.id}}", "title": "Call about {{record.name}}", "priority": "high"}
}]
}}'
```
A new automation is paused. Before you switch it on, see what it would do:
- `workflow.preview` dry-runs it over every record that matches now: how many match, and for each the steps that would run with their final inputs. It never writes.
- `workflow.run_now` with `{"workflowId": "…", "recordId": "…", "dryRun": true}` tries it on one record.
Then switch it on with `workflow.activate`, which needs `"approved": true`. Making or updating an automation with `"enabled": true` needs it too; pausing never does.
## Runs and retries [#runs-and-retries]
- `workflow.runs` lists runs: `running`, `waiting` (on a delay), `completed` or `failed`, with each step's result.
- A failed step is retried 3 times on its own. `workflow.retry_run` restarts a failed run from the step that failed.
- Triggers that are checked (record changes, criteria, segments, schedules) are looked at every 5 minutes. A schedule fires on the first check after its interval has passed. Webhooks and owner changes fire at once.
## Capabilities [#capabilities]
# CLI (https://flito.ai/docs/cli)
`flito api` finds and calls capabilities from a terminal, and prints results as JSON for scripts. It runs from a checkout of the Flito repository, with Node 22 or later.
## Set up [#set-up]
```bash
export FLITO_URL=https://crm.yourcompany.com
export FLITO_API_KEY=flito_pat_…
```
## Commands [#commands]
```bash
pnpm flito api discover # the workspace and what the key can do
pnpm flito api list quote # capabilities whose id, name or description match
pnpm flito api describe quote.get # one capability: what it does, scopes, input schema
pnpm flito api call quote.list '{"limit":5}' # run it and print the result as JSON
```
- `list` takes any words and shows each match as read or write.
- `describe` says when a capability needs `--approved`.
- `call` takes the input as JSON text, `@file.json`, or `-` to read standard input.
## Changes that need approval [#changes-that-need-approval]
Add `--approved` once you are sure:
```bash
pnpm flito api call company.archive '{"id":"cmp_…"}' --approved
```
## In scripts [#in-scripts]
`call` prints the result as JSON, so it pipes into `jq`:
```bash
pnpm --silent flito api call contact.list '{"search":"acme.com","limit":200}' \
| jq -r '.rows[] | [.firstName, .lastName, .email] | @tsv'
```
```bash title="Inputs from a file"
echo '{"title": "Review the Acme quote", "priority": "high"}' > task.json
pnpm --silent flito api call task.create @task.json
```
A failed call prints the error and exits with a non-zero status, so `set -e` stops a script on the first failure.
# Discover your workspace (https://flito.ai/docs/discover)
These docs describe the core capabilities every Flito has. A workspace can have more: its own capabilities, custom fields, pipelines and settings. These calls read them, for the key's workspace and for what that key may do.
## One call: /api/discover [#one-call-apidiscover]
```bash
curl -s "$FLITO_URL/api/discover" -H "Authorization: Bearer $FLITO_API_KEY"
```
```json title="Answer (shortened)"
{
"workspace": { "id": "ws_…", "name": "Acme", "currency": "USD", "timezone": "America/New_York" },
"you": {
"userId": "…",
"role": "admin",
"signedInWith": "api_key",
"access": "read and write",
"scopes": ["companies:read", "companies:write", "…"]
},
"customFields": [
{ "id": "…", "objectType": "contact", "key": "preferred_channel", "label": "Preferred channel", "kind": "select" }
],
"pipelines": [{ "id": "pipe_…", "name": "Sales", "stages": [{ "stageKey": "qualified", "probability": 0.2 }] }],
"brands": [],
"tags": [],
"capabilities": {
"count": 341,
"ids": ["activity.list", "…"],
"details": "https://crm.yourcompany.com/api/capabilities",
"openapi": "https://crm.yourcompany.com/api/openapi.json",
"call": "POST https://crm.yourcompany.com/api/cap/{id}"
},
"mcp": "https://crm.yourcompany.com/mcp",
"docs": "https://flito.ai/docs"
}
```
- `workspace`: its name, currency and time zone.
- `you`: who the key acts as, their role, whether the key is read only, and its scopes.
- `customFields`, `pipelines` (with stages in order), `brands` and `tags`: each is left out when the key may not read it.
- `capabilities.ids`: every capability this key can run. A read only key sees no writes.
## Every capability the key can run [#every-capability-the-key-can-run]
- `GET $FLITO_URL/api/capabilities` lists each capability with its input JSON Schema, scopes and whether it needs approval, the workspace's own ones included.
- `GET $FLITO_URL/api/openapi.json` is the same as OpenAPI 3.1, for code generators and API tools. Add `?preset=assistant` for the everyday ones, `?group=` for one area, or `?ids=a,b` for a few.
Over MCP, each area's tool (`quote_actions` and the like) lists and runs what the connection can do there, and `list_capabilities` finds an action by words.
## Custom fields [#custom-fields]
A workspace's own fields are set through the `properties` object on create and update, or with `custom_field.set_values`:
```bash
curl -s "$FLITO_URL/api/cap/custom_field.set_values" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"objectType": "contact", "recordId": "con_…", "values": {"preferred_channel": "phone"}}}'
```
`null` or an empty string clears a value. The keys are the `key`s from `customFields` above.
# Email (https://flito.ai/docs/email)
## Two ways email leaves Flito [#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 [#send-one-email]
```bash
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": "Hi {{ contact.first_name | \"there\" }},
Your order is on its way.
",
"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:
```json
{
"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 [#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 [#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 [#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-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 [#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 [#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 [#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 [#capabilities]
# Errors and limits (https://flito.ai/docs/errors)
## The error body [#the-error-body]
Any answer other than `200` (and `201` from the shortcut routes) carries a JSON body:
```json
{
"code": "VALIDATION",
"message": "Invalid input",
"correlationId": "corr_…",
"fieldErrors": [{ "path": ["input", "email"], "message": "Invalid email", "code": "invalid_string" }],
"retryable": false
}
```
## Statuses and codes [#statuses-and-codes]
The `Authorization: Bearer` header is missing, or the key is wrong, revoked or expired. Check the header, then the key's status in **Settings, Integrations, API and AI**. Do not retry with the same key.
The key lacks a scope the capability needs, the key is read only and the capability writes, or the capability needs a person signed in to the app (making keys, saving integration secrets). The message names what is missing. See [Keys and scopes](/keys-and-scopes).
Check the capability id against the [reference](/reference) or `GET /api/capabilities`, and check the record id. A capability a workspace does not have also answers `404`.
Send `"approved": true` beside the input once the person you work for has agreed. See [changes that need approval](/rest#changes-that-need-approval).
The same idempotency key was sent with a different input in the last 24 hours. Use a new key for a new change. See [safe retries](/rest#safe-retries).
The change clashes with what is on file: a contact with that email or a company with that domain already exists (the message names it), a quote already has an invoice, a company still has quotes or invoices. Read the record, then update it instead.
A field is missing or has the wrong type (`fieldErrors` lists each one), or the change breaks a rule you can fix, such as a stage that is not in the deal's pipeline. Fix the input; sending it again unchanged fails again.
`retryable` is `true`. Wait a moment and send the call again with the same idempotency key. If it keeps failing, report the `correlationId`.
## Retrying [#retrying]
- Retry `500`s and network errors after a pause that grows each time: 1 second, then 2, 4 and 8.
- Send writes with an [idempotency key](/rest#safe-retries) so a retry never makes the change twice.
- Do not retry `400`-level answers unchanged. Fix the key, the input or the approval first.
## Limits [#limits]
Flito does not rate-limit API keys today, but each workspace shares one database with its people. Send calls one after another or a few at a time, and do not loop without pause.
### Calls [#calls]
- A call has up to five minutes to finish.
- Lists return up to 200 rows a page (`task.list` up to 500). Page with `offset`.
- An idempotency key is remembered for 24 hours.
- A signed document's download link lasts at most 15 minutes.
### Sending [#sending]
- **Cold email** goes through the workspace's connected mailboxes, each with a daily cap (50 by default, starting lower while a new mailbox warms up). When every mailbox is at its cap, `email.send` answers `422`.
- **Sequences** send from a queue that runs every 10 minutes, at most 50 emails a run, inside the sequence's sending window (09:00 to 17:00 on weekdays in the workspace's time zone, unless set otherwise).
- **Broadcasts** send the first 50 at once and the rest in batches of 200 every 10 minutes.
- **Automations** check their triggers every 5 minutes. Webhook triggers run at once.
### Batch sizes [#batch-sizes]
- `email.schedule`: up to 50 contacts a call.
- `sequence.enroll`, `segment.import_list`, `suppression.import`: up to 5,000 a call.
- `tag.apply`: 1 to 100 tags a call.
- A broadcast's audience: up to 5,000 contacts plus 500 typed addresses.
## Common questions [#common-questions]
`limit` is 50 when you leave it out. Send `"limit": 200` and page with `offset` until you have `rowCount` rows. See [paging](/rest#lists-search-and-paging).
The key is probably read only, or the capability needs a person signed in. Call `/api/discover` and compare `you.scopes` with the scopes on the capability's reference page.
A record with that email (contacts and leads) or that domain (companies) is already on file. The message names it: update that record instead, or look it up with `contact.list` and `search`.
Read `result.status`. A suppressed address, an unsubscribed contact or a former employee come back as `suppressed` or `blocked` with a `reason`, not as an error. See [Email](/email#what-stops-an-email).
# Import contacts from a spreadsheet (https://flito.ai/docs/examples/import-contacts)
The script reads each row, creates the contact, and when Flito answers that the email is already on file, updates that contact instead. Every row is then tagged, so you can find the import later. Running it twice changes nothing new.
```csv title="contacts.csv"
email,firstName,lastName,jobTitle
ada@acme.com,Ada,Lovelace,Head of Operations
grace@example.com,Grace,Hopper,CTO
```
The key needs `contacts:read`, `contacts:write` and `tags:write`: a read and write key made by a member or above has them.
```js title="import.mjs"
// node import.mjs contacts.csv (Node 22 or later, no packages needed)
import { readFileSync } from 'node:fs'
const { FLITO_URL, FLITO_API_KEY } = process.env
const TAG = 'import-2026-11'
async function call(capability, input, { idempotencyKey } = {}) {
const res = await fetch(`${FLITO_URL}/api/cap/${capability}`, {
method: 'POST',
headers: {
Authorization: `Bearer ${FLITO_API_KEY}`,
'Content-Type': 'application/json',
...(idempotencyKey ? { 'Idempotency-Key': idempotencyKey } : {}),
},
body: JSON.stringify({ input }),
})
const body = await res.json()
if (!res.ok) throw Object.assign(new Error(body.message), { status: res.status, code: body.code })
return body.result
}
// A small CSV reader: a header row, commas, and "quoted, values" (one row per line).
function splitLine(line) {
const fields = []
let field = ''
let quoted = false
for (let i = 0; i < line.length; i++) {
const ch = line[i]
if (quoted && ch === '"' && line[i + 1] === '"') {
field += '"'
i++
} else if (ch === '"') {
quoted = !quoted
} else if (ch === ',' && !quoted) {
fields.push(field.trim())
field = ''
} else {
field += ch
}
}
fields.push(field.trim())
return fields
}
function readCsv(path) {
const [header, ...lines] = readFileSync(path, 'utf8').trim().split(/\r?\n/)
const keys = splitLine(header)
return lines.map((line) => Object.fromEntries(splitLine(line).map((v, i) => [keys[i], v])))
}
async function upsert(row) {
const fields = { firstName: row.firstName, lastName: row.lastName, jobTitle: row.jobTitle }
try {
const created = await call(
'contact.create',
{ email: row.email, ...fields },
{ idempotencyKey: `${TAG}:${row.email}` },
)
return { id: created.id, action: 'created' }
} catch (err) {
if (err.code !== 'CONFLICT') throw err
// The email is on file: update that contact instead.
const { rows } = await call('contact.list', { search: row.email, limit: 5 })
const existing = rows.find((c) => c.email?.toLowerCase() === row.email.toLowerCase())
if (!existing) throw err
await call('contact.update', { id: existing.id, ...fields })
return { id: existing.id, action: 'updated' }
}
}
for (const row of readCsv(process.argv[2] ?? 'contacts.csv')) {
try {
const { id, action } = await upsert(row)
await call('tag.apply', { objectType: 'contact', objectId: id, tags: [TAG], source: 'import' })
console.log(`${action} ${row.email} (${id})`)
} catch (err) {
console.error(`failed ${row.email}: ${err.status} ${err.code} ${err.message}`)
}
}
```
```python title="import.py"
# python import.py contacts.csv (pip install requests)
import csv
import os
import sys
import requests
FLITO_URL = os.environ["FLITO_URL"]
FLITO_API_KEY = os.environ["FLITO_API_KEY"]
TAG = "import-2026-11"
class FlitoError(Exception):
def __init__(self, status, body):
super().__init__(body.get("message"))
self.status, self.code = status, body.get("code")
def call(capability, input, idempotency_key=None):
headers = {"Authorization": f"Bearer {FLITO_API_KEY}"}
if idempotency_key:
headers["Idempotency-Key"] = idempotency_key
res = requests.post(f"{FLITO_URL}/api/cap/{capability}", headers=headers, json={"input": input}, timeout=60)
body = res.json()
if not res.ok:
raise FlitoError(res.status_code, body)
return body["result"]
def upsert(row):
fields = {"firstName": row["firstName"], "lastName": row["lastName"], "jobTitle": row["jobTitle"]}
try:
created = call("contact.create", {"email": row["email"], **fields}, f"{TAG}:{row['email']}")
return created["id"], "created"
except FlitoError as err:
if err.code != "CONFLICT":
raise
# The email is on file: update that contact instead.
rows = call("contact.list", {"search": row["email"], "limit": 5})["rows"]
existing = next((c for c in rows if (c.get("email") or "").lower() == row["email"].lower()), None)
if existing is None:
raise
call("contact.update", {"id": existing["id"], **fields})
return existing["id"], "updated"
with open(sys.argv[1] if len(sys.argv) > 1 else "contacts.csv", newline="") as f:
for row in csv.DictReader(f):
try:
contact_id, action = upsert(row)
call("tag.apply", {"objectType": "contact", "objectId": contact_id, "tags": [TAG], "source": "import"})
print(f"{action} {row['email']} ({contact_id})")
except FlitoError as err:
print(f"failed {row['email']}: {err.status} {err.code} {err}", file=sys.stderr)
```
## What it shows [#what-it-shows]
- **Duplicates:** a create whose email is on file answers `409 CONFLICT`, so the script updates the contact on file. See [Records](/records#duplicates).
- **Safe retries:** the idempotency key is the tag and the email, so re-running after a network error never creates a second contact. See [safe retries](/rest#safe-retries).
- **Finding the import:** the tag marks every contact the run touched. In the app, filter contacts by it; over the API, use a [filter](/rest#filters) on interest tags.
For thousands of rows, the app's CSV import (**Settings, Import and export**) maps columns for you and can undo a whole run.
# Examples (https://flito.ai/docs/examples)
Each example is complete: set `FLITO_URL` and `FLITO_API_KEY` (see [Getting started](/getting-started)), copy it and run it.
# Quote to invoice (https://flito.ai/docs/examples/quote-to-invoice)
This walks one order through Flito with curl. Each step uses an id from the step before; set them as you go. The key needs a role that can send quotes and invoices (owner, admin or member), made read and write.
Steps 3 and 6 email the customer. Try it with your own address first.
### Find the company and contact [#find-the-company-and-contact]
```bash
curl -s "$FLITO_URL/api/cap/company.list" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"search": "Acme", "limit": 1}}'
```
Note the company's `id` (`cmp_…`). `contact.list` with `{"companyId": "cmp_…"}` finds the person who will sign.
### Create the quote [#create-the-quote]
```bash
curl -s "$FLITO_URL/api/cap/quote.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: acme-order-1042-quote" \
-d '{"input": {
"companyId": "cmp_…",
"contactId": "con_…",
"name": "Acme order 1042",
"paymentTerms": "Net 30",
"lineItems": [{"name": "Annual service plan", "quantity": 1, "unitPrice": 4800}]
}}'
```
Note `result.id` (`qte_…`) and `result.quoteReviewStatus`. Flito opens a deal for the quote.
### Approve it and send it for signature [#approve-it-and-send-it-for-signature]
If `quoteReviewStatus` is `pending_review`, someone with `quotes:review` approves it first:
```bash
curl -s "$FLITO_URL/api/cap/quote.review" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "status": "approved", "reviewer": "Jane Doe"}, "approved": true}'
```
Then send it:
```bash
curl -s "$FLITO_URL/api/cap/quote.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "recipientEmails": ["ada@acme.com"], "signerName": "Ada Lovelace"}, "approved": true}'
```
The answer's `signingInvites` has the signing link and whether the email went out.
### Wait for the signature [#wait-for-the-signature]
```bash
curl -s "$FLITO_URL/api/cap/esign.list" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…"}}'
```
When the envelope is `completed`, the quote is signed. `esign.document_access` with `{"envelopeId": "…"}` returns links to the signed PDF and its certificate, valid for up to 15 minutes. Check every few minutes, or have an [automation](/automations) call your system when the quote changes.
### Invoice it [#invoice-it]
```bash
curl -s "$FLITO_URL/api/cap/invoice.convert_from_quote" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: acme-order-1042-invoice" \
-d '{"input": {"quoteId": "qte_…", "billingType": "net_terms", "netDays": 30}}'
```
Note the invoice's `id` (`inv_…`).
### Send the invoice [#send-the-invoice]
```bash
curl -s "$FLITO_URL/api/cap/invoice.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"invoiceId": "inv_…", "recipientEmails": ["ap@acme.com"], "message": "Thank you for your order."}, "approved": true}'
```
### Record the payment [#record-the-payment]
```bash
curl -s "$FLITO_URL/api/cap/invoice.record_payment" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: acme-order-1042-payment-1" \
-d '{"input": {"invoiceId": "inv_…", "payment": {"amount": 4800, "date": "2026-12-01", "method": "wire"}}}'
```
The invoice is now `paid`. The deal, the quote and the invoice all show the history of each step.
See [Quotes](/quotes) and [Invoices](/invoices) for every option along the way.
# Website form to the CRM (https://flito.ai/docs/examples/website-form)
A contact form on your website posts to a Flito automation. The automation files a task for the sales team and emails them the request. No API key is involved: the webhook URL is the secret.
```mermaid
sequenceDiagram
participant Visitor
participant Site as Your website
participant Flito
Visitor->>Site: submit the form
Site->>Flito: POST the form as JSON to the webhook URL
Flito->>Flito: file a task, email the sales team
Flito-->>Site: 200 ok
Site-->>Visitor: Thanks, we will be in touch
```
## The automation [#the-automation]
In the app, make an automation with the trigger **Webhook received**, generate its URL (see [Webhooks](/webhooks#get-the-url)), and give it two steps:
```json title="Steps"
[
{
"id": "task",
"type": "action",
"capabilityId": "task.create",
"input": {
"title": "Call {{trigger.body.name}} from {{trigger.body.company|their company}}",
"description": "{{trigger.body.email}}: {{trigger.body.message}}",
"priority": "high"
}
},
{
"id": "tell-sales",
"type": "action",
"capabilityId": "email.send",
"input": {
"toAddress": "sales@yourcompany.com",
"sendType": "transactional",
"subject": "Website request from {{trigger.body.name}}",
"body": "{{trigger.body.name}} ({{trigger.body.email}}) wrote:
{{trigger.body.message}}
"
}
}
]
```
Switch it on.
## The form [#the-form]
Post from your server, so the URL stays private:
```js title="contact-route.mjs"
// Your site's form handler, for example a route in Next.js or Express.
export async function POST(request) {
const form = await request.formData()
const res = await fetch(process.env.FLITO_FORM_WEBHOOK, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
// One key per submission, so a retry never files it twice.
'X-Idempotency-Key': crypto.randomUUID(),
},
body: JSON.stringify({
name: form.get('name'),
email: form.get('email'),
company: form.get('company'),
message: form.get('message'),
}),
})
return Response.json({ ok: res.ok }, { status: res.ok ? 200 : 502 })
}
```
```python title="contact_view.py"
# Your site's form handler, for example a Flask view.
import os
import uuid
import requests
from flask import request
def contact():
res = requests.post(
os.environ["FLITO_FORM_WEBHOOK"],
json={k: request.form.get(k) for k in ("name", "email", "company", "message")},
# One key per submission, so a retry never files it twice.
headers={"X-Idempotency-Key": str(uuid.uuid4())},
timeout=15,
)
return {"ok": res.ok}, 200 if res.ok else 502
```
`FLITO_FORM_WEBHOOK` holds the URL from the automation.
## Check it [#check-it]
Submit the form once, then look at the automation's run history in the app, or call `workflow.runs` with its id: the run shows each step and what it returned.
# Getting started (https://flito.ai/docs/getting-started)
You need a login to your company's Flito, with a role that can make changes. This takes about five minutes.
### Make an API key [#make-an-api-key]
In your Flito, open **Settings, Integrations, API and AI** and choose **Create an API key**.
- **Name** it after the script or tool that will use it.
- **Access:** choose **Read and write** for this guide. Choose **Read only** for anything that only reads.
- **Expires:** 30 days, 90 days, 1 year or no expiry.
Copy the key when it is shown. It starts with `flito_pat_` and is shown only once.
It acts as you, with your role. Keep it in a secret store or an environment variable, never in
code that runs in a browser.
### Set two variables [#set-two-variables]
```bash
export FLITO_URL=https://crm.yourcompany.com
export FLITO_API_KEY=flito_pat_…
```
`FLITO_URL` is the address you open Flito at, with no slash at the end.
### Check the key [#check-the-key]
```bash
curl -s "$FLITO_URL/api/discover" -H "Authorization: Bearer $FLITO_API_KEY"
```
The answer names the workspace, who the key acts as (`you.role`, `you.access`) and the ids of every capability the key can run. A `401` means the key is wrong, expired or revoked. See [Discover your workspace](/discover) for the rest of the answer.
### Read something [#read-something]
Every capability is one `POST` to `$FLITO_URL/api/cap/{id}` with the body `{"input": {...}}`. This finds companies whose name matches "Acme":
```bash
curl -s "$FLITO_URL/api/cap/company.list" \
-H "Authorization: Bearer $FLITO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": {"search": "Acme", "limit": 5}}'
```
```js title="list-companies.mjs"
const res = await fetch(`${process.env.FLITO_URL}/api/cap/company.list`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.FLITO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: { search: 'Acme', limit: 5 } }),
})
if (!res.ok) throw new Error(`${res.status}: ${(await res.json()).message}`)
const { result } = await res.json()
console.log(result.rowCount, result.rows.map((company) => company.name))
```
```python title="list_companies.py"
import os
import requests
res = requests.post(
f"{os.environ['FLITO_URL']}/api/cap/company.list",
headers={"Authorization": f"Bearer {os.environ['FLITO_API_KEY']}"},
json={"input": {"search": "Acme", "limit": 5}},
timeout=60,
)
res.raise_for_status()
result = res.json()["result"]
print(result["rowCount"], [company["name"] for company in result["rows"]])
```
The answer is `{"result": {"rows": [...], "rowCount": 12}}`. `rowCount` counts every match, not just this page.
### Make a change [#make-a-change]
This adds a contact. It runs at once, as you, and is kept in the contact's history.
```bash
curl -s "$FLITO_URL/api/cap/contact.create" \
-H "Authorization: Bearer $FLITO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": {"firstName": "Ada", "lastName": "Lovelace", "email": "ada@example.com", "jobTitle": "Head of Operations"}}'
```
```json title="Answer"
{
"result": { "id": "con_…", "firstName": "Ada", "lastName": "Lovelace" },
"commitId": "…",
"eventId": "…",
"idempotentReplay": false
}
```
Run it again and it answers `409 CONFLICT`, naming the contact that already has that email. Creates never make a second record for the same email or company domain.
## Next [#next]
# Flito developer docs (https://flito.ai/docs)
Flito is a CRM that each company runs at its own address, such as `https://crm.yourcompany.com`. Everything in these docs goes to that address; the examples call it `$FLITO_URL`.
Every action in Flito is a **capability**: `contact.create`, `quote.send`, `invoice.record_payment` and about 360 more. The app, AI apps and your scripts all run the same capabilities, with the same rules and the same history.
## Three ways in [#three-ways-in]
}
title="REST"
href="/rest"
description="Every capability is one POST to $FLITO_URL/api/cap/{id}, with an API key."
/>
}
title="MCP"
href="/mcp"
description="ChatGPT, Claude, Cursor and other AI apps connect to $FLITO_URL/mcp."
/>
}
title="CLI"
href="/cli"
description="flito api: discover, find and call capabilities from a terminal."
/>
## Start here [#start-here]
## What the docs cover [#what-the-docs-cover]
- **These docs are the same for every Flito.** They describe the core capabilities every Flito has.
- **A workspace can have more.** Its own capabilities, custom fields, pipelines and settings are read with its API key: see [Discover your workspace](/discover).
- **The [API reference](/reference)** has one page per core capability, with its input, its answer, code samples and a playground that calls your Flito.
## Use these docs with AI [#use-these-docs-with-ai]
Every page has a Markdown copy (add `.md` to its address), and the whole guide is in [llms.txt](https://flito.ai/docs/llms.txt). AI apps can also search and read these docs over MCP. See [Docs for AI](/ai).
# Invoices (https://flito.ai/docs/invoices)
An invoice is `draft`, `issued`, `sent`, `partially_paid`, `paid`, `overdue` or `void`.
## From a quote [#from-a-quote]
The usual way in. It copies the quote's lines, fees, addresses and terms, and the invoice starts as `issued`:
```bash
curl -s "$FLITO_URL/api/cap/invoice.convert_from_quote" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "billingType": "net_terms", "netDays": 30}}'
```
- A quote has one invoice: converting it again answers `409` while that invoice is not void.
- The deal moves to its invoice stage where the pipeline has one, and the company becomes a customer.
## How it is billed [#how-it-is-billed]
`billingType` sets the schedule:
- `full`: all due at once.
- `net_terms`: due `netDays` after issue.
- `deposit_balance`: `depositPercent` now, the balance on `balanceTerm`.
- `installments`: a list of parts, each with a `label`, a `percent` or `amount`, and `dueInDays`.
`earlyPaymentDiscountPercent` with `earlyPaymentDiscountDays` offers a discount for paying early. Taxes, fees and discounts on the invoice are `adjustments`: `{"kind": "tax" | "fee" | "discount", "name", "amount" | "percent"}`.
## Without a quote [#without-a-quote]
`invoice.create` makes a `draft` from your own lines and adjustments. `invoice.update` changes a draft, or an issued invoice's lines, adjustments and due dates. A `paid` or `void` invoice can no longer change.
## Send it [#send-it]
```bash
curl -s "$FLITO_URL/api/cap/invoice.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"invoiceId": "inv_…", "recipientEmails": ["ap@acme.com"], "message": "Thanks for your order."}, "approved": true}'
```
- It needs `"approved": true`.
- It emails a link to the invoice's own page, with **Download PDF**, to up to 10 people, with up to 10 more in `ccEmails`.
- The first send marks the invoice `sent` and moves the deal to its invoice-sent stage where the pipeline has one.
- A `paid` or `void` invoice cannot be sent.
## Record a payment [#record-a-payment]
```bash
curl -s "$FLITO_URL/api/cap/invoice.record_payment" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"invoiceId": "inv_…", "payment": {"amount": 1500, "date": "2026-11-10", "method": "wire", "reference": "INV-0042"}}}'
```
The invoice becomes `partially_paid`, or `paid` once the payments cover it. Send each payment with an [idempotency key](/rest#safe-retries) so a retry never records it twice.
## Void it [#void-it]
`invoice.void` cancels an invoice and turns off its share links. The quote can then be converted again.
## Capabilities [#capabilities]
# Keys and scopes (https://flito.ai/docs/keys-and-scopes)
Flito has two kinds of credentials:
- **API keys**, for scripts, tools and the CLI. Each one is made by a person in the app.
- **Sign-in for AI apps**, where a person connects ChatGPT, Claude or another app to Flito over OAuth. See [MCP](/mcp).
Both act as the person who made them. Both are read only, or read and write.
## API keys [#api-keys]
Make one in **Settings, Integrations, API and AI** (the API & AI connections page), under **API keys**:
- **Access:** **Read only** gives the key every read scope you hold. **Read and write** gives it everything you hold.
- **Expires:** after 30 days, 90 days, 1 year, or never.
- The key is shown once. It starts with `flito_pat_`.
Send it as a bearer token on every call:
```bash
curl -s "$FLITO_URL/api/discover" -H "Authorization: Bearer $FLITO_API_KEY"
```
The workspace always comes from the key, never from the input. A key from one Flito does nothing at another.
## What a key can do [#what-a-key-can-do]
A key can never do more than the person who made it, now:
- Its scopes are the scopes the key was given **and** the scopes its person still holds. If their role loses a scope, the key loses it on the next call.
- When the person leaves the workspace, every key and connection they made stops working.
- A revoked or expired key answers `401` on every call.
A few things need a person signed in to the app, so a key gets `403` for them:
- making API keys (`api_token.create`)
- saving or clearing an integration's secret keys (`integration.set_secret`, `integration.clear_secret`)
Changes that are hard to undo need one more word from the caller. Deletes, merges, archives, sending quotes for signature, bulk email and broadcasts, sending invoices and switching automations on answer `409 APPROVAL_REQUIRED` unless the body has `"approved": true` beside the input. The reference marks each one. See [REST basics](/rest#changes-that-need-approval).
## Scopes [#scopes]
Each capability needs one or more scopes, written `area:verb`:
- `read` reads, `write` changes records, `send` sends email or documents to people, `run` runs agents.
- `review` approves quotes, `revert` restores an earlier version, `admin` deletes and changes settings.
A person's scopes come from their roles (**Settings, Users, Roles**). A workspace can edit roles; until it does, the built-in ones hold these:
- **Owner** and **Admin:** every scope.
- **Member:** every `read`, `write`, `send` and `run` scope.
- **Viewer:** every `read` scope.
These are the scopes the core capabilities need, from the code:
Each capability's page in the [API reference](/reference) lists its scopes. To see what one key holds, call `/api/discover` and read `you.scopes`.
## For workspace admins [#for-workspace-admins]
The API & AI connections page shows every key and connection in the workspace:
- **API keys:** who made each key, its access, when it was last used, when it expires, and **Revoke**.
- **Connected apps:** each AI app someone approved, with **Disconnect**.
- **AI app activity:** every tool call a connected app made, and how it ended.
Every change a key or an app makes is kept in the record's history under the person's name, with the app named too, where it can be undone.
Yes. One key per script or tool means you can revoke one without stopping the others, and the last-used date tells you which are still in use.
No. When someone leaves the workspace, their keys and connected apps stop. For a long-running integration, make the key as a person who will stay, with a role that holds only what the integration needs.
Make it **Read only**, or make it as a person whose role holds only those scopes. A key cannot pick single scopes.
Not in production: anyone who opens the page could read the key. Call Flito from your server. The API playground in these docs is the one exception, for trying calls by hand.
# MCP (https://flito.ai/docs/mcp)
Flito is an MCP server (Streamable HTTP, protocol 2025-06-18). Two addresses reach it:
- `https://flito.ai/mcp` works for every Flito. When you sign in, it asks which Flito you use, sends you there to sign in, then passes every call through to it.
- `$FLITO_URL/mcp` is your Flito's own address. Sign in with OAuth, or send an API key as the bearer.
## Connect an AI app [#connect-an-ai-app]
1. Open **Settings, Apps** (or **Apps & Connectors**), then **Advanced settings**, and turn on **Developer mode**.
2. Choose **Create**, name it Flito, paste `https://flito.ai/mcp` (or your Flito's `/mcp` address) and choose **OAuth**.
3. Sign in to Flito when asked, and choose read only or read and write.
1. Open **Settings, Connectors** and choose **Add custom connector**.
2. Paste `https://flito.ai/mcp` (or your Flito's `/mcp` address), then **Connect**.
3. Sign in to Flito when asked, and choose read only or read and write.
```bash
claude mcp add --transport http flito https://flito.ai/mcp
```
Then run `/mcp` in Claude Code to sign in.
Any app that speaks MCP over HTTP can use your Flito's address with an API key:
```json title="mcp.json"
{
"mcpServers": {
"flito": {
"url": "https://crm.yourcompany.com/mcp",
"headers": { "Authorization": "Bearer flito_pat_…" }
}
}
}
```
## How sign-in works [#how-sign-in-works]
```mermaid
sequenceDiagram
participant App as AI app
participant Flito as Your Flito
participant You
App->>Flito: connect to /mcp
Flito-->>App: sign in at /.well-known/oauth-protected-resource/mcp
App->>You: open the Flito sign-in page
You->>Flito: sign in, choose read only or read and write
Flito-->>App: a token for you, with that access
App->>Flito: tool calls, as you
```
- The app gets no more than the person who connected it, and only read access if they chose read only.
- The connect page also accepts an API key in place of signing in. The connection then gets no more than the key, and ends when the key is revoked or expires.
- Workspace admins see every connected app, and every tool call each one made, in **Settings, Integrations, API and AI**. See [Keys and scopes](/keys-and-scopes#for-workspace-admins).
## How changes work [#how-changes-work]
Over a sign-in or an API key alike, the app makes changes as the person. Every change is kept in the record's history under the app's name, where it can be undone. Every AI working in Flito, Scout in the app included, is told:
## Tools [#tools]
Every Flito has these tools. A workspace may have more.
Every action in the CRM also has a tool for its area (`quote_actions`, `invoice_actions`, `deal_actions` and so on), which lists each action it runs with the fields it needs. `list_capabilities` finds an action by words and gives all its fields; `run_capability` runs any of them by id.
## From your own code [#from-your-own-code]
Your agent can use the same tools with an MCP client and an API key:
```npm
npm install @modelcontextprotocol/sdk
```
```ts title="flito-mcp.ts"
import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
const transport = new StreamableHTTPClientTransport(new URL(`${process.env.FLITO_URL}/mcp`), {
requestInit: { headers: { Authorization: `Bearer ${process.env.FLITO_API_KEY}` } },
})
const client = new Client({ name: 'my-agent', version: '1.0.0' })
await client.connect(transport)
const { tools } = await client.listTools()
console.log(tools.map((tool) => tool.name))
// Find records by name, email or number
const found = await client.callTool({ name: 'search', arguments: { query: 'Acme' } })
console.log(found.content)
// Run any capability by id
const quotes = await client.callTool({
name: 'run_capability',
arguments: { capability: 'quote.list', input: { limit: 5 } },
})
console.log(quotes.content)
await client.close()
```
## These docs over MCP [#these-docs-over-mcp]
These docs are an MCP server too, separate from your Flito: `https://flito.ai/docs/api/mcp` lets an AI app search and read every page. See [Docs for AI](/ai).
# Quotes (https://flito.ai/docs/quotes)
```mermaid
flowchart TD
create["quote.create"] --> review{"Needs approval?"}
review -->|yes| approve["quote.review: approved"]
review -->|no| send
approve --> send["quote.send (approved: true)"]
send --> sign["Customer signs at /sign"]
sign --> signed["Quote signed, deal moves on"]
signed --> invoice["invoice.convert_from_quote"]
```
## Create a quote [#create-a-quote]
```bash
curl -s "$FLITO_URL/api/cap/quote.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {
"companyId": "cmp_…",
"contactId": "con_…",
"name": "Acme, first order",
"paymentTerms": "Net 30",
"lineItems": [
{"productId": "prd_…", "quantity": 10, "unitPrice": 129.5},
{"name": "Installation", "quantity": 1, "unitPrice": 800}
],
"discountAmount": 100,
"taxAmount": 172.84
}}'
```
- Each line is a catalog product (`productId`) or a free line (`name`), with `quantity` and `unitPrice`. `lineTotal` defaults to quantity times price.
- The total is the line subtotal plus `freightCost`, `additionalFees` and `taxAmount`, less `discountAmount`. These are amounts, not rates. `taxExempt: true` drops the tax.
- With a `companyId` and no `dealId`, Flito opens a deal for the quote.
- The quote number is the next `QT-0001`-style number unless you pass `quoteNumber`.
- The quote is dated today in the workspace's time zone and expires 30 days later unless the workspace sets otherwise or you pass `quoteExpirationDate`.
`quote.update` changes it: send the whole `lineItems` list, or add, change and remove lines by id, not both.
## Approval [#approval]
A quote waits for approval (`quoteReviewStatus: "pending_review"`) when:
- the person who made it does not hold the `quotes:review` scope, or
- the workspace requires approval for every quote, or
- someone without `quotes:review` changes its lines, prices, terms, dates or addresses after it was approved.
Someone with `quotes:review` approves or rejects it:
```bash
curl -s "$FLITO_URL/api/cap/quote.review" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "status": "approved", "reviewer": "Jane Doe"}, "approved": true}'
```
A rejected quote moves to `needs_revision`. `quote.request_approval` puts a quote back in the queue. `quote.overview` lists what waits on you: quotes to approve, quotes out for signature, drafts.
## Send it for signature [#send-it-for-signature]
```bash
curl -s "$FLITO_URL/api/cap/quote.send" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"quoteId": "qte_…", "recipientEmails": ["ada@acme.com"], "signerName": "Ada Lovelace"}, "approved": true}'
```
- It needs `"approved": true` and both `quotes:write` and `esign:send`.
- It is refused while the quote waits for approval, unless the sender holds `quotes:review`, in which case it counts as approved by them.
- It moves the deal to its Quote Sent stage where the pipeline has one, and emails each signer a link to sign. The answer includes `signingInvites`: each signer's email, signing link and whether the email went out.
- Up to two signers; `ccRecipients` get a copy.
## Follow the signature [#follow-the-signature]
The signer opens `/sign/…`, reads the quote and signs it in the browser. When the last signer signs, the quote becomes `signed` and its deal moves to its Quote Signed stage.
- `esign.list` with `{"quoteId": "qte_…"}` lists the quote's envelopes. An envelope is `sent`, `viewed`, `signed`, `completed`, `declined` or `voided`.
- `esign.get` shows one envelope, its signers and each step of its audit trail.
- `esign.document_access` with `{"envelopeId": "…"}` returns links to the signed PDF and its certificate once the envelope is `completed`. The links last up to 15 minutes; ask again for fresh ones.
- `esign.envelope_void` cancels an envelope; its signing links stop working.
To keep a quote's status in your own system without polling, have an [automation](/automations) watch for quote updates and call your system with an [HTTP request](/webhooks#send-calling-your-system).
## Share links [#share-links]
People can share a quote or an invoice from the app as a link that opens it on its own page, with **Download PDF**. `document.revoke_share` with `{"token": "shr_…"}` turns a link off; it then answers `410`.
## Capabilities [#capabilities]
# Records (https://flito.ai/docs/records)
The CRM's records are companies, contacts, deals and leads, with tasks, activities and comments on their timelines. Each has a `create`, `get`, `list` and `update` capability, plus the actions below.
## Create and update [#create-and-update]
```bash title="Create a company"
curl -s "$FLITO_URL/api/cap/company.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"name": "Acme", "domain": "acme.com", "lifecycleStage": "prospect"}}'
```
```bash title="Add a contact at it"
curl -s "$FLITO_URL/api/cap/contact.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"companyId": "cmp_…", "firstName": "Ada", "lastName": "Lovelace", "email": "ada@acme.com"}}'
```
- A company needs a `name`. A contact needs nothing, though an email or a name helps.
- An update takes the record's `id` and only the fields that change. `null` clears a field.
- Custom fields go in `properties`, keyed by the field's `key` (see [discover](/discover#custom-fields)).
- `lifecycleStage` is `lead`, `prospect` or `customer`.
### Duplicates [#duplicates]
Creates check what is on file first:
- A contact or lead matches on its email, a company on its web domain.
- Over REST, a create that matches answers `409 CONFLICT` and names the record on file. Update that record instead.
- AI apps over MCP get the existing record back, so an agent never adds a second Acme.
- A near match (a similar name, a shared website) is created and flagged as a possible duplicate for a person to review.
## Deals and pipelines [#deals-and-pipelines]
A deal sits in one stage of one pipeline. `pipeline.list` returns each pipeline with its stages in order: `stageKey`, `label`, `probability` (0 to 1) and whether the stage counts as won.
```bash title="Move a deal"
curl -s "$FLITO_URL/api/cap/deal.update_stage" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"id": "deal_…", "to": "proposal"}}'
```
The stage must be in the deal's pipeline, and a stage's required fields must be filled first; otherwise the move answers `422` and says what is missing. A move can start automations that watch for it.
`deal.create` needs a `name` and a `documentType` (`quote`, `retainer_invoice` or `final_invoice`). A deal with no stage starts in the first stage of its pipeline.
## Tasks, activities and comments [#tasks-activities-and-comments]
```bash title="Add a task on a deal"
curl -s "$FLITO_URL/api/cap/task.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"objectType": "deal", "objectId": "deal_…", "title": "Send revised pricing", "dueAt": "2026-11-14T17:00:00Z", "priority": "high"}}'
```
- `task.complete` and `task.reopen` change its status; `task.list` finds them by owner, record or due date.
- `activity.log` adds an entry to a record's timeline: a `call`, `meeting`, `note`, `email` and other kinds, with `subject`, `body` and `occurredAt`.
- `comment.create` adds a comment for colleagues.
## Tags and links [#tags-and-links]
- `tag.apply` adds interest tags to a company or contact: `{"objectType": "contact", "objectId": "con_…", "tags": ["pricing"]}`.
- `record.associate` links two records with an optional label, such as a contact to a second company. `record.associations` lists a record's links.
- `record_contact.add` names a key contact on a record, with a role.
## Archive, delete and merge [#archive-delete-and-merge]
With an API key, send `"approved": true` beside the input, or they answer `409
APPROVAL_REQUIRED`.
- **Archive** (`company.archive`, `contact.archive`) takes a record out of the lists and keeps everything on it. `unarchive` brings it back.
- **Delete** (`company.delete`, `contact.delete`, `deal.delete`) removes it, and needs the area's `admin` scope. A company with quotes or invoices cannot be deleted; archive it instead.
- **Merge** (`company.merge`, `contact.merge`) takes `{"winnerId", "loserId"}`. The loser is archived and points at the winner.
## History [#history]
Every change to a company, contact or deal is a version in its history, with who made it. See [history and undo](/rest#history-and-undo).
## Capabilities [#capabilities]
# REST basics (https://flito.ai/docs/rest)
## The request [#the-request]
Every capability is one call:
```http
POST $FLITO_URL/api/cap/{capability id}
Authorization: Bearer $FLITO_API_KEY
Content-Type: application/json
{"input": {...}, "approved": true, "idempotencyKey": "..."}
```
- `input` is the capability's input, as its [reference page](/reference) describes. Send `{}` when it takes none.
- `approved` is only for [changes that need approval](#changes-that-need-approval).
- `idempotencyKey` makes a change [safe to retry](#safe-retries).
A body that is not valid JSON is read as `{}`, so the capability answers that its fields are missing.
## The answer [#the-answer]
A call that ran answers `200`:
```json
{
"result": { "...": "the capability's output" },
"commitId": "…",
"eventId": "…",
"idempotentReplay": false
}
```
- `result` is the capability's output.
- `commitId` names the version a change made, for records that keep versions. It is `null` for reads.
- `idempotentReplay` is `true` when the answer is a replay of an earlier call with the same key.
Any other status is an error with `code`, `message` and `correlationId`. See [Errors and limits](/errors).
## Reads and changes [#reads-and-changes]
Reads change nothing. A change runs at once, as the key's person, emails and other sends included. Each one is kept in the record's history with who made it, where the app can undo it.
## Changes that need approval [#changes-that-need-approval]
Some changes are hard to undo: deleting, archiving and merging records, sending quotes for signature, bulk email and broadcasts, sending invoices, and switching automations on. With an API key they answer `409 APPROVAL_REQUIRED` unless the body says `"approved": true`:
```bash
curl -s "$FLITO_URL/api/cap/company.archive" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {"id": "cmp_…"}, "approved": true}'
```
Set `"approved": true` only after the person you work for said yes to that exact change. Over
MCP, Flito's own tools handle this for you.
Each capability's reference page says whether it needs approval: always, never, or depending on the input (an automation needs it only when it is switched on).
## Safe retries [#safe-retries]
A network error can leave you not knowing whether a change ran. Send an idempotency key with each change, and send the same key when you retry:
```bash
curl -s "$FLITO_URL/api/cap/task.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: import-2026-11-10-row-42" \
-d '{"input": {"title": "Call Ada back", "priority": "high"}}'
```
- Put it in the `Idempotency-Key` header or in the body as `idempotencyKey`. The body wins when both are there.
- A key counts for 24 hours, per capability.
- The same key with the same input replays the first answer, with `"idempotentReplay": true`. Nothing runs twice.
- The same key with a different input answers `409 IDEMPOTENCY_CONFLICT`.
- Only calls that worked are remembered, so a retry after an error runs again.
- Retry after the first call has answered. Two calls sent at the same moment with the same key can both run.
## Dry runs [#dry-runs]
`POST $FLITO_URL/api/cap/{id}/dry-run` with `{"input": {...}}` runs the change, rolls it back, and answers what it would have done. It never needs `approved`.
```json title="Answer"
{
"diffs": [{ "entityType": "contacts", "entityId": "con_…", "before": { "...": "..." }, "after": { "...": "..." } }],
"sideEffects": ["…"],
"warnings": [],
"approvalRequired": false
}
```
Use it to show a person exactly what a change will do before you make it.
## Lists, search and paging [#lists-search-and-paging]
List capabilities (`company.list`, `contact.list`, `deal.list`, `lead.list` and the like) share these inputs:
- `search`: words to match on names, emails and the like.
- `limit`: up to 200 (500 for `task.list`), 50 when left out.
- `offset`: how many to skip, for the next page.
- `sortField` and `sortDir` (`asc` or `desc`), or `sorts` for up to three.
- `filter`: conditions on any field, below.
- `archived` for archived records only, `includeArchived` for both.
They answer `{"rows": [...], "rowCount": n}`, where `rowCount` counts every match. Page until you have them all:
```js
async function listAll(capability, input = {}) {
const rows = []
for (let offset = 0; ; offset += 200) {
const res = await fetch(`${process.env.FLITO_URL}/api/cap/${capability}`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.FLITO_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ input: { ...input, limit: 200, offset } }),
})
const { result } = await res.json()
rows.push(...result.rows)
if (rows.length >= result.rowCount || result.rows.length === 0) return rows
}
}
```
### Filters [#filters]
A filter is groups of conditions, joined with `and` or `or`:
```json
{
"combinator": "and",
"groups": [
{
"combinator": "or",
"conditions": [
{ "column": { "field": "lifecycleStage" }, "operator": "eq", "value": "customer" },
{ "column": { "field": "lifecycleStage" }, "operator": "eq", "value": "prospect" }
]
}
]
}
```
Operators: `eq`, `neq`, `contains`, `not_contains`, `contains_any`, `not_contains_any`, `starts_with`, `ends_with`, `gt`, `gte`, `lt`, `lte`, `between`, `in`, `not_in`, `is_empty`, `is_not_empty`, `is_true`, `is_false`. A workspace's own fields work too: [discover](/discover) lists them.
## History and undo [#history-and-undo]
Changes to companies, contacts and deals keep versions, and their answer carries the `commitId`. To see a record's versions:
```bash
curl -s "$FLITO_URL/api/config/commits?objectType=contacts&objectId=con_…" \
-H "Authorization: Bearer $FLITO_API_KEY"
```
`GET $FLITO_URL/api/config/commits/{commitId}` shows one version and what it changed. To undo it, call `config.revert` with `{"commitId": "…"}`. That needs the `config:revert` scope, which owners and admins hold.
## Ids and values [#ids-and-values]
- Ids are a prefix and a UUID: `cmp_` companies, `con_` contacts, `deal_` deals, `lead_` leads, `task_` tasks.
- Dates and times are ISO 8601, such as `2026-11-10` or `2026-11-10T15:00:00Z`.
- Money is a number in the workspace's currency (`workspace.currency` from [discover](/discover)).
- In an update, a field you leave out stays as it is, and `null` clears it.
## Tracing a call [#tracing-a-call]
Send an `X-Correlation-Id` header with any value you like. Errors carry it back as `correlationId`, so you can match a failure to your own logs. When you leave it out, Flito makes one.
## Shortcuts for common records [#shortcuts-for-common-records]
A few plain REST routes call the same capabilities:
- `POST /api/companies`, `/api/contacts`, `/api/activities` create one. The body is the input itself, not wrapped in `input`, and they answer `201`.
- `PATCH /api/companies/{id}` (and contacts, activities) updates one.
- `GET /api/companies?search=&limit=` (and contacts, activities) lists them; `GET /api/companies/{id}` reads one.
They take no `approved` flag. Everything else goes through `/api/cap/{id}`.
# Sequences (https://flito.ai/docs/sequences)
A sequence is a series of emails and waits, sent to each person enrolled in it until they reply, unsubscribe or reach the end.
```mermaid
flowchart TD
create["sequence.create (draft)"] --> enroll["sequence.enroll"]
enroll --> active["Active: steps send in the window"]
active -->|reply, bounce, unsubscribe| stopped["Stopped for that person"]
active -->|last step| done["Finished"]
active -->|sequence.pause| paused["Paused"]
paused -->|sequence.activate| active
```
## Create one [#create-one]
```bash
curl -s "$FLITO_URL/api/cap/sequence.create" \
-H "Authorization: Bearer $FLITO_API_KEY" -H "Content-Type: application/json" \
-d '{"input": {
"name": "New lead follow-up",
"objectType": "contact",
"targetSegmentId": "seg_…",
"steps": [
{"stepNumber": 1, "stepType": "email", "templateId": "etpl_…"},
{"stepNumber": 2, "stepType": "wait", "waitMinutes": 4320},
{"stepNumber": 3, "stepType": "email", "templateId": "etpl_…"}
]
}}'
```
- Steps are `email` (a template), `wait` (`waitMinutes`) or `condition` (continue only for people who match).
- The audience is a saved segment (`targetSegmentId`) or a filter (`targetFilter`, as in [filters](/rest#filters)).
- `settings.sendWindow` sets the hours it sends in. By default that is 09:00 to 17:00 on weekdays, in the workspace's time zone.
- A new sequence is a draft. It answers `{"sequenceId", "stepCount"}`.
## Enroll people [#enroll-people]
`sequence.enroll` with `{"sequenceId": "…", "contactIds": ["con_…"]}` enrolls those people, or leave the ids out to enroll its whole audience (up to 5,000 at a time). People already in it are skipped. Enrolling into a draft switches the sequence on.
The answer counts who joined: `enrolledCount`, `skippedCount` and `formerEmployeeCount` for people who left their company.
## How it sends [#how-it-sends]
- A queue runs every 10 minutes and sends at most 50 emails a run, inside the send window.
- The first step goes on the next run; each later step waits its `waitMinutes`.
- Steps send as cold email, through the workspace's connected mailboxes and within their daily caps. A step no mailbox can take today waits for the next run.
## What stops a person [#what-stops-a-person]
- They reply (Flito sees the reply in the connected mailbox), or you call `sequence.mark_replied`.
- They unsubscribe, or their address bounces or is suppressed.
- They leave their company, or they have no email address.
- A `condition` step they do not match.
- `sequence.unenroll` takes one person out.
## Follow it [#follow-it]
- `sequence.get_enrollment`: where one person is, and what each step did (sent, opened, clicked, replied).
- `sequence.stats`: the funnel and totals for the whole sequence.
- `sequence.preview_audience`: how many people the audience holds now, with a sample.
- `sequence.pause` and `sequence.activate` stop and restart it for everyone.
## Capabilities [#capabilities]
# Webhooks (https://flito.ai/docs/webhooks)
## Receive: a webhook that runs an automation [#receive-a-webhook-that-runs-an-automation]
Any system that can post JSON can run a Flito automation: a website form, a payment provider, a warehouse system, a script.
```mermaid
sequenceDiagram
participant You as Your system
participant Flito
You->>Flito: POST JSON to the webhook URL
Flito->>Flito: run the automation with the posted fields
Flito-->>You: 200 ok, with the run id
```
### Get the URL [#get-the-url]
1. In the app, open **Automations** and make an automation with the trigger **Webhook received**.
2. In its **Webhook** panel, choose **Generate webhook URL**. The URL is shown once: copy it.
3. Add the steps, using fields from the posted JSON as `{{trigger.body.*}}`. See [Automations](/automations#fill-inputs-from-the-trigger).
4. Switch the automation on.
The URL looks like `$FLITO_URL/hooks/whk_…`. Anyone who has it can run the automation, so keep it on your server where you can; a form on a public page shows it to every visitor.
Generating another URL adds a second one, and both work. If a URL leaks, pause the automation and
make a new one with a new URL.
### Call it [#call-it]
```bash
curl -s "$FLITO_URL/hooks/whk_…" \
-H "Content-Type: application/json" \
-H "X-Idempotency-Key: order-1042" \
-d '{"name": "Ada Lovelace", "email": "ada@acme.com", "company": "Acme", "message": "Please call me"}'
```
- No API key: the URL itself is the secret.
- Send `X-Idempotency-Key` to make retries safe. A key seen before answers `200` with `"fired": false` and `"status": "skipped"`.
- Browsers may call it: it answers cross-site requests from any page.
- A body that is not JSON is read as `{}`.
### Answers [#answers]
- `200` `{"ok": true, "runId": "…", "status": "…", "fired": true}`: the automation ran.
- `200` with nothing run: the automation is paused.
- `404` `{"error": "unknown or disabled webhook"}`: the URL is wrong or turned off.
- `400` `{"error": "…"}`: the automation could not start.
## Send: calling your system [#send-calling-your-system]
Flito does not yet send a webhook for every change. Instead, an automation calls your system with an `http.request` step, so you choose what to send, when, and in what shape:
```json
{
"id": "notify",
"type": "action",
"capabilityId": "http.request",
"input": {
"method": "POST",
"url": "https://api.yourcompany.com/flito/deal-won",
"auth": { "kind": "bearer", "token": "…" },
"body": { "dealId": "{{record.id}}", "name": "{{record.name}}", "amount": "{{record.amount}}" }
}
}
```
- `method` is `GET`, `POST`, `PUT`, `PATCH` or `DELETE`, with `headers`, `query` and `body`.
- `auth.kind` is `none`, `bearer` (with `token`), `basic` (with `username` and `password`) or `header` (with `headerName` and `token`).
- It waits up to `timeoutMs` (10 seconds by default, 30 at most) and reads up to `maxBytes` of the answer (1 MB by default, 5 MB at most).
- Its output is `{"status", "ok", "headers", "body"}`, which later steps use as `{{steps.notify.output.body.*}}`.
- Only public `http` and `https` addresses: private and local addresses are refused, and redirects are not followed.
- On a dry run or a preview, it is not sent.
To post a message to the team's chat instead, use a `chat.notify` step.
### Example: tell your system when a deal is won [#example-tell-your-system-when-a-deal-is-won]
Make an automation on `deal` with a `record_updated` trigger, a condition that the stage is your won stage, and the `http.request` step above. Your endpoint gets one call per won deal.
# API reference (https://flito.ai/docs/reference)
Every Flito has these capabilities. Each is one `POST $FLITO_URL/api/cap/{id}` with the body `{"input": {...}}`, sent with an API key. Pick one from the sidebar, or search with ⌘ K and filter to **API reference**.
Each page shows:
- what the capability does, the scopes it needs, and whether it needs `"approved": true`
- its input, field by field, with code to call it in curl, JavaScript, Python, Go, Java, C# and Rust
- the answers it can give, and the errors
## Try a call [#try-a-call]
Each page has a playground. Set the server to your Flito's address (`crm.yourcompany.com`), paste an API key under **Authorization**, fill in the input and send. The request goes from your browser straight to your Flito, as that key.
The playground runs real calls: a change it makes is a real change. Use a read only key, or a key
you revoke when you are done.
## A workspace's own capabilities [#a-workspaces-own-capabilities]
A workspace may have more of its own: `GET $FLITO_URL/api/capabilities` with its key lists everything that key can run (see [Discover your workspace](/discover)).
# Capability reference
## Delete activity (https://flito.ai/docs/reference/activity/activity_delete)
Remove a note, call, meeting or email someone logged by hand. Its writer or an admin may; the entry stays in the change history and can be restored from there.
Required scopes: contacts:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/activity.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List activities (https://flito.ai/docs/reference/activity/activity_list)
The timeline read: a record's activity feed, newest first.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/activity.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Log activity (https://flito.ai/docs/reference/activity/activity_log)
The timeline write: adds one activity to a record of any type.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/activity.log` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit activity (https://flito.ai/docs/reference/activity/activity_update)
Correct a note, call, meeting or email someone logged by hand: its subject, its body or when it happened. Its writer or an admin may; tracked sends, synced messages and calendar meetings are refused.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/activity.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Link existing address (https://flito.ai/docs/reference/address/address_associate)
Link an existing address to a company, contact, or deal with a role (billing / shipping / office / pickup): the same physical address shared across records, deduped. Linked as a company's billing address, it becomes the company's address.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/address.associate` and `Authorization: Bearer $FLITO_API_KEY`.
## Add address (https://flito.ai/docs/reference/address/address_create)
Add an address to a company, contact, or deal (billing / shipping / office / pickup). Creates the address and links it to the record with the typed role so it shows on the record. A company's billing address becomes the company's address.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/address.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove address (https://flito.ai/docs/reference/address/address_delete)
Remove an address from a record. The address row is deleted only when it has no remaining associations.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/address.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Search addresses (https://flito.ai/docs/reference/address/address_list)
Search the workspace’s addresses by name, street, city, or ZIP — used by the address picker to link an existing (deduped) address to another record.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/address.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit address (https://flito.ai/docs/reference/address/address_update)
Edit an address (street, city, state, zip, country, type, primary flag). Moving a company's billing address moves the company's address.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/address.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Switch an alert (https://flito.ai/docs/reference/alert/alert_set_switch)
Switch one alert on or off. Switching New deal or New contact on also makes or starts its workflow; switching it off keeps the workflow and its edits.
Required scopes: config:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/alert.set_switch` and `Authorization: Bearer $FLITO_API_KEY`.
## Alert switches (https://flito.ai/docs/reference/alert/alert_switches)
Every alert Flito sends on its own (website sign-ups, returning visitors, new website deals, new contacts, identified visitors): what each does and whether it is switched on.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/alert.switches` and `Authorization: Bearer $FLITO_API_KEY`.
## Create dashboard (https://flito.ai/docs/reference/analytics_dashboard/analytics_dashboard_create)
Create a new analytics dashboard.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_dashboard.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete dashboard (https://flito.ai/docs/reference/analytics_dashboard/analytics_dashboard_delete)
Delete an analytics dashboard.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_dashboard.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get dashboard (https://flito.ai/docs/reference/analytics_dashboard/analytics_dashboard_get)
Fetch a single dashboard by id.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_dashboard.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List dashboards (https://flito.ai/docs/reference/analytics_dashboard/analytics_dashboard_list)
List the analytics dashboards in the workspace.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_dashboard.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Update dashboard (https://flito.ai/docs/reference/analytics_dashboard/analytics_dashboard_update)
Update a dashboard (rename, tiles, layout). Every save is a config commit.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_dashboard.update` and `Authorization: Bearer $FLITO_API_KEY`.
## List event filter metadata (https://flito.ai/docs/reference/analytics_event/analytics_event_filter_metadata)
Searchable event names plus selected-event property keys and top values, for event filters.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_event.filter_metadata` and `Authorization: Bearer $FLITO_API_KEY`.
## Get event (https://flito.ai/docs/reference/analytics_event/analytics_event_get)
A single product-analytics event by id.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_event.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List events (https://flito.ai/docs/reference/analytics_event/analytics_event_list)
Paginated, filtered list of product-analytics events for the Events grid + record timeline.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_event.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Create report (https://flito.ai/docs/reference/analytics_report/analytics_report_create)
Save a new Insight/Funnel/Retention report.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_report.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete report (https://flito.ai/docs/reference/analytics_report/analytics_report_delete)
Delete a saved report.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_report.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get report (https://flito.ai/docs/reference/analytics_report/analytics_report_get)
Fetch a single saved report by id.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_report.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List reports (https://flito.ai/docs/reference/analytics_report/analytics_report_list)
List the saved analytics reports (Insight/Funnel/Retention) in the workspace.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_report.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Update report (https://flito.ai/docs/reference/analytics_report/analytics_report_update)
Update a saved report (rename, redefine). Every save is a config commit.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_report.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Create saved report (https://flito.ai/docs/reference/analytics_saved_view/analytics_saved_view_create)
Save a dashboard layout as a named report, optionally with a delivery schedule.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_saved_view.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete saved report (https://flito.ai/docs/reference/analytics_saved_view/analytics_saved_view_delete)
Delete a saved analytics report.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_saved_view.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List saved reports (https://flito.ai/docs/reference/analytics_saved_view/analytics_saved_view_list)
List saved analytics views / scheduled reports in the workspace.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_saved_view.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Preview report delivery (https://flito.ai/docs/reference/analytics_saved_view/analytics_saved_view_preview)
A summary of what a saved report delivers: its name, tile count, format (PDF or CSV) and recipients. It does not render the file.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics_saved_view.preview` and `Authorization: Bearer $FLITO_API_KEY`.
## Update saved report (https://flito.ai/docs/reference/analytics_saved_view/analytics_saved_view_update)
Rename, re-snapshot, or re-schedule a saved report.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics_saved_view.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Brand-metrics share (bar) (https://flito.ai/docs/reference/analytics/analytics_brand_metrics)
Manufacturer share for a company × segment, as horizontal-bar rows (installed volume + % share), filterable by product type.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.brand_metrics` and `Authorization: Bearer $FLITO_API_KEY`.
## Brand trend (single manufacturer) (https://flito.ai/docs/reference/analytics/analytics_brand_trend)
Monthly installed-volume line + loyalty/trend stats for one manufacturer on a company.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.brand_trend` and `Authorization: Bearer $FLITO_API_KEY`.
## Macro brand trend (workspace) (https://flito.ai/docs/reference/analytics/analytics_brand_trend_macro)
Workspace-level industry-wide manufacturer share + 12-month trend, aggregated across all companies.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.brand_trend_macro` and `Authorization: Bearer $FLITO_API_KEY`.
## Engagement board (https://flito.ai/docs/reference/analytics/analytics_engagement_board)
The workspace's engagement board for a window, the last 30 days unless asked: what visitors did on the website, as headline figures with their trend by day (by hour over 24 hours), the contacts to follow up with what each did, the latest form submissions, a funnel from visit to request, a heat table of a property (such as brand) against actions, and cuts by product, search term, location, first referrer and session length. Every piece has its events, its visitors and how many are contacts. With no board it reads the workspace's own; `cards` keeps the answer to the cards named, and the answer's `board` lists every card with the columns and steps a piece of it can name. Saved for 15 minutes per window. analytics.engagement_people lists the contacts behind a piece, and analytics.engagement_segment saves them as an email segment.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.engagement_board` and `Authorization: Bearer $FLITO_API_KEY`.
## People behind an engagement piece (https://flito.ai/docs/reference/analytics/analytics_engagement_people)
The contacts behind one piece of the engagement board: a card by id and the piece, as `key` (a value such as a product, brand, search term or location, a day YYYY-MM-DD or hour YYYY-MM-DDTHH of a figure's chart, a contact id on a people card), `column` (a figure, a heat table's column or a people card's action, by id), both for one cell or one day of one figure, a funnel `step`, or nothing for the whole card. Answers a page of the people with their emails and companies, how many there are, the piece's figures, and the contact filter a segment of them holds, the same list the Home board shows. The team's own people are left out.
Required scopes: analytics:read, contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.engagement_people` and `Authorization: Bearer $FLITO_API_KEY`.
## Segment from an engagement piece (https://flito.ai/docs/reference/analytics/analytics_engagement_segment)
Save the people behind one piece of the engagement board as an email segment for broadcasts and campaigns: a live one that keeps taking in people who do it in the window (a fixed list for a session length, or for fixed dates the people of those dates). Same card and piece as analytics.engagement_people; the name is the piece's own unless given.
Required scopes: analytics:read, contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/analytics.engagement_segment` and `Authorization: Bearer $FLITO_API_KEY`.
## Funnel (https://flito.ai/docs/reference/analytics/analytics_funnel)
Ordered multi-step conversion funnel over analytics_events: for each step (an event + optional property filter), the distinct users who completed it in order within the conversion window, with per-step conversion %, drop-off, and median time to convert. Optionally broken down by a property.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.funnel` and `Authorization: Bearer $FLITO_API_KEY`.
## Insights (https://flito.ai/docs/reference/analytics/analytics_insights)
Time-series event segmentation over analytics_events: pick event(s) + a measure (total | unique visitors | sum/avg/min/max of a property), optionally break down by any property or native field and filter on properties, bucketed by hour/day/week/month. The flagship Insights report.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.insights` and `Authorization: Bearer $FLITO_API_KEY`.
## Installation overview by segment (https://flito.ai/docs/reference/analytics/analytics_install_overview)
Segment × installed volume × volume-tier summary for a company (every segment, empty rows included).
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.install_overview` and `Authorization: Bearer $FLITO_API_KEY`.
## Installation trends (12mo line) (https://flito.ai/docs/reference/analytics/analytics_install_trends)
Rolling 12-month installed volume per manufacturer for a company × segment (top-N lines).
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.install_trends` and `Authorization: Bearer $FLITO_API_KEY`.
## Website engagement (https://flito.ai/docs/reference/analytics/analytics_mixpanel)
Website engagement (sessions, last seen, score, pages, searches) for a contact, or totalled across everyone at a company over the last 30 days unless told otherwise, with spec and quote requests, logins and its most active contacts named.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.mixpanel` and `Authorization: Bearer $FLITO_API_KEY`.
## Pipeline analytics (https://flito.ai/docs/reference/analytics/analytics_pipeline)
Deal-stage funnel, won/lost by rep or source, and time-in-stage over the Sales Pipeline.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.pipeline` and `Authorization: Bearer $FLITO_API_KEY`.
## Prospect finder (all states) (https://flito.ai/docs/reference/analytics/analytics_prospect_finder)
Find companies/contacts across all 50 states matching a manufacturer × segment × loyalty/volume thresholds.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.prospect_finder` and `Authorization: Bearer $FLITO_API_KEY`.
## Retention (https://flito.ai/docs/reference/analytics/analytics_retention)
Cohort retention over analytics_events: group users by the period of their first "born" event, then measure the share who performed the "return" event in each subsequent period: the standard retention grid (day/week/month).
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.retention` and `Authorization: Bearer $FLITO_API_KEY`.
## Sales analytics (https://flito.ai/docs/reference/analytics/analytics_run_report)
Ready-made sales reports with CSV-ready groups and figures.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.run_report` and `Authorization: Bearer $FLITO_API_KEY`.
## Sales analytics (https://flito.ai/docs/reference/analytics/analytics_sales_summary)
Sales summary over everything the caller can see in the workspace; imported records keep their original dates.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.sales_summary` and `Authorization: Bearer $FLITO_API_KEY`.
## Web activity brief (https://flito.ai/docs/reference/analytics/analytics_web_activity)
The daily/weekly web-activity brief over synced website analytics events: overview, daily activity, who's visiting, top products, form submissions, engagement actions and searches, windowed, filterable and CRM-linked.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/analytics.web_activity` and `Authorization: Bearer $FLITO_API_KEY`.
## Add by URL (https://flito.ai/docs/reference/attachment/attachment_create_external)
Add a file to the attachments library by its URL. The file stays where it is.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/attachment.create_external` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete attachment (https://flito.ai/docs/reference/attachment/attachment_delete)
Remove a library attachment (and its stored file).
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/attachment.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get attachment (https://flito.ai/docs/reference/attachment/attachment_get)
Read one attachment + a short-TTL presigned download URL.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/attachment.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Link file to record (https://flito.ai/docs/reference/attachment/attachment_link)
Put a library file on a contact, company, deal, quote, invoice, lead or quote line, so it shows in that record's Attachments. The file stays on any record it was already on. On a quote it also goes out with the quote PDF and share link.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/attachment.link` and `Authorization: Bearer $FLITO_API_KEY`.
## List attachments (https://flito.ai/docs/reference/attachment/attachment_list)
Search the attachments library by name and filter by category / source / record.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/attachment.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove file from record (https://flito.ai/docs/reference/attachment/attachment_unlink)
Take a file off one record. The file stays in the library and on any other record it is on. On a quote it also comes off the quote PDF and share link.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/attachment.unlink` and `Authorization: Bearer $FLITO_API_KEY`.
## Update attachment (https://flito.ai/docs/reference/attachment/attachment_update)
Rename, re-categorise, re-tag, or re-associate a library attachment.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/attachment.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Get brand metrics (https://flito.ai/docs/reference/brand_metrics/brand_metrics_get)
One company's brand figures for one manufacturer: installed volume and share per segment over rolling windows.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/brand_metrics.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List brand metrics (https://flito.ai/docs/reference/brand_metrics/brand_metrics_list)
Brand-loyalty rollups for a company (per manufacturer × segment × window).
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/brand_metrics.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Query brand metrics share (https://flito.ai/docs/reference/brand_metrics/brand_metrics_query)
Aggregated manufacturer share (installed volume + %) for a company, for charts and plain-language questions.
Required scopes: analytics:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/brand_metrics.query` and `Authorization: Bearer $FLITO_API_KEY`.
## Cancel schedule (https://flito.ai/docs/reference/broadcast/broadcast_cancel)
Cancel a scheduled broadcast before it goes, on Mailchimp too. It can be edited and sent again later.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/broadcast.cancel` and `Authorization: Bearer $FLITO_API_KEY`.
## Pre-send checklist (https://flito.ai/docs/reference/broadcast/broadcast_checklist)
The pre-send checklist: audience size and who is left out (no email, opted out, left their company, suppressed, not subscribed in Mailchimp), merge fields that do not exist or render blank for real recipients, sender, compliance and schedule.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/broadcast.checklist` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete broadcast (https://flito.ai/docs/reference/broadcast/broadcast_delete)
Delete a broadcast that never sent anything.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/broadcast.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Broadcast (https://flito.ai/docs/reference/broadcast/broadcast_get)
One broadcast: its content, audience, schedule and live send results.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/broadcast.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Broadcasts (https://flito.ai/docs/reference/broadcast/broadcast_list)
One-off and scheduled broadcasts, newest first, with their send results.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/broadcast.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Preview broadcast (https://flito.ai/docs/reference/broadcast/broadcast_preview)
Render the subject, preview text and body for one real recipient of the audience, and report merge fields that are not fields at all or are blank for them.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/broadcast.preview` and `Authorization: Bearer $FLITO_API_KEY`.
## Broadcast recipients (https://flito.ai/docs/reference/broadcast/broadcast_recipients)
The per-recipient ledger of a broadcast: queued, sent, simulated (nothing left), suppressed, failed or skipped, each with why.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/broadcast.recipients` and `Authorization: Bearer $FLITO_API_KEY`.
## Save broadcast (https://flito.ai/docs/reference/broadcast/broadcast_save)
Create a broadcast draft, or save changes to one that has not started sending. sendVia chooses the CRM’s email or Mailchimp; a new one goes through Mailchimp when a key is saved. Scheduling and sending are separate actions.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/broadcast.save` and `Authorization: Bearer $FLITO_API_KEY`.
## Schedule (https://flito.ai/docs/reference/broadcast/broadcast_schedule)
Schedule a broadcast for a time in the future (or move a scheduled one). Through Mailchimp it goes at the next quarter hour.
Required scopes: email:send.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/broadcast.schedule` and `Authorization: Bearer $FLITO_API_KEY`.
## Send now (https://flito.ai/docs/reference/broadcast/broadcast_send_now)
Start sending a broadcast now, through the CRM’s email or Mailchimp as it says. Through the CRM the first batch goes at once and the rest on each tick; Mailchimp sends its campaign to the subscribed members of the audience.
Required scopes: email:send.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/broadcast.send_now` and `Authorization: Bearer $FLITO_API_KEY`.
## Stop sending (https://flito.ai/docs/reference/broadcast/broadcast_stop)
Stop a broadcast that is sending. Anything already sent stays sent; everyone still queued is not mailed. Through Mailchimp this needs a plan that can cancel a send.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/broadcast.stop` and `Authorization: Bearer $FLITO_API_KEY`.
## Send a test (https://flito.ai/docs/reference/broadcast/broadcast_test_send)
Send one test to an address you choose: through the real pipeline with a real recipient’s data in the merge fields, or, for a saved broadcast through Mailchimp, from its campaign there.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/broadcast.test_send` and `Authorization: Bearer $FLITO_API_KEY`.
## Calendar (https://flito.ai/docs/reference/calendar/calendar_feed)
Everything dated in a range: meetings, task due dates, logged calls/notes/emails and deal close dates (with value), each with the record it opens. Scope mine (default) or all.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/calendar.feed` and `Authorization: Bearer $FLITO_API_KEY`.
## Get call (https://flito.ai/docs/reference/call/call_get)
One call: who, when, how long, how it ended, the notes, and whether a recording is stored.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/call.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List calls (https://flito.ai/docs/reference/call/call_list)
The Calls workspace: one row per call, newest first, with direction, outcome, missed and voicemail filters (mine or the whole team).
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/call.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Log a call (https://flito.ai/docs/reference/call/call_log)
Log completed calls onto the record timeline (the Log call composer, or a telephony connector). A call without a record matches its number; an unknown or ambiguous number goes to the unassigned pool.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/call.log` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit call (https://flito.ai/docs/reference/call/call_update)
Edit a call's notes, outcome or duration.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/call.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Approve drafts (https://flito.ai/docs/reference/campaign/campaign_approve_drafts)
Approve campaign drafts (every drafted one, or a chosen set) so they are ready to launch.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.approve_drafts` and `Authorization: Bearer $FLITO_API_KEY`.
## Create campaign (https://flito.ai/docs/reference/campaign/campaign_create)
Create a campaign: its motion (cold, marketing or sales), goal, audience, sending route (plane) and send type.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Generate drafts (https://flito.ai/docs/reference/campaign/campaign_generate_drafts)
Write a personal subject and body for each selected member, in the brand voice, saved as drafts to review. Nothing is sent.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.generate_drafts` and `Authorization: Bearer $FLITO_API_KEY`.
## Campaign (https://flito.ai/docs/reference/campaign/campaign_get)
One campaign: its kind, goal, audience, status and members by state.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/campaign.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Launch campaign (https://flito.ai/docs/reference/campaign/campaign_launch)
Send every approved draft through email.send, cold email by the campaign's sending route. Compliance, suppression and deliverability rules apply. Cold drafts past the daily mailbox cap stay approved, the output says how many wait, and they carry on by themselves the next day. A cold campaign is refused with no connected mailbox, unless the workspace has a Resend key. Safe to run again: each draft is sent once.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.launch` and `Authorization: Bearer $FLITO_API_KEY`.
## Campaigns (https://flito.ai/docs/reference/campaign/campaign_list)
List campaigns with their audience and members by state; searchable by name and goal, sortable and paged.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/campaign.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Campaign drafts (https://flito.ai/docs/reference/campaign/campaign_list_drafts)
List a campaign's personalized drafts, for review and approval.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/campaign.list_drafts` and `Authorization: Bearer $FLITO_API_KEY`.
## Campaigns for a record (https://flito.ai/docs/reference/campaign/campaign_list_for_record)
The campaigns, broadcasts and sequences a contact, company, lead or deal is in, and how far each got.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/campaign.list_for_record` and `Authorization: Bearer $FLITO_API_KEY`.
## Plan (select audience) (https://flito.ai/docs/reference/campaign/campaign_plan)
Resolve the campaign audience and add each match as a member, in the selected state.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.plan` and `Authorization: Bearer $FLITO_API_KEY`.
## Campaign stats (https://flito.ai/docs/reference/campaign/campaign_stats)
The campaign funnel, from selected through drafted, approved and sent to replied.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/campaign.stats` and `Authorization: Bearer $FLITO_API_KEY`.
## Update campaign (https://flito.ai/docs/reference/campaign/campaign_update)
Rename a campaign or change its goal at any point; change its kind or audience until drafts are written. A new audience on a planned campaign drops the plan, so it is planned again.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/campaign.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Change log (https://flito.ai/docs/reference/change_log/change_log_list)
Every versioned change in the workspace, one row per changed field: who, when, what it was and what it became. Admin only.
Required scopes: config:read, workspace:admin.
Read only.
Call it with `POST $FLITO_URL/api/cap/change_log.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Post to chat (https://flito.ai/docs/reference/chat/chat_notify)
Post a message to the workspace's team chat (the incoming webhook set in Settings). Used as a workflow action; the record the workflow fired on is linked under the message.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/chat.notify` and `Authorization: Bearer $FLITO_API_KEY`.
## Add a comment (https://flito.ai/docs/reference/comment/comment_create)
Leave a remark for colleagues under an entry or a description.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/comment.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete a comment (https://flito.ai/docs/reference/comment/comment_delete)
Take a comment back: its writer or an admin.
Required scopes: contacts:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/comment.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List comments (https://flito.ai/docs/reference/comment/comment_list)
The replies under one entry, oldest first, or every thread on one record (for reply counts).
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/comment.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Archive company (https://flito.ai/docs/reference/company/company_archive)
Take a company out of the lists without deleting anything: its contacts, deals, quotes, invoices, conversations and timeline stay with it, and company.unarchive brings it back. With detachContacts its contacts are unlinked first and stay in the lists as standalone contacts. Each change is a version in its history.
Required scopes: companies:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/company.archive` and `Authorization: Bearer $FLITO_API_KEY`.
## Create company (https://flito.ai/docs/reference/company/company_create)
Create a new company record.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/company.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete company (https://flito.ai/docs/reference/company/company_delete)
Delete a company for good (admins only). Refused while the company has quotes or invoices; merge it instead. Its contacts, deals and leads stay without it, and its other names go with it. Its notes, tasks and timeline stay, and its history can bring it back.
Required scopes: companies:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/company.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Fill company types (https://flito.ai/docs/reference/company/company_fill_types)
Give companies with no company type one, writing only blanks: the segment of a prospect list (passed in as website and segment rows) for a company whose website is on it, else Electrical Contractor where the imported name or description calls the company an electrical contractor. Enrichment rules read the type to leave excluded types out. Companies named in skip stay untyped. Works a batch at a time: run it again until companiesLeft is 0. With preview it counts and samples what a run would write and writes nothing.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/company.fill_types` and `Authorization: Bearer $FLITO_API_KEY`.
## Get company (https://flito.ai/docs/reference/company/company_get)
A single company by id.
Required scopes: companies:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/company.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List companies (https://flito.ai/docs/reference/company/company_list)
Paginated, filtered list of companies for the Prospector and list views.
Required scopes: companies:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/company.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Merge companies (https://flito.ai/docs/reference/company/company_merge)
Merge two duplicate companies: everything on the loser (contacts, deals, quotes, invoices, activities, associations) moves to the winner, the winner keeps its values and fills its blanks from the loser, and the loser is archived, never deleted.
Required scopes: companies:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/company.merge` and `Authorization: Bearer $FLITO_API_KEY`.
## Company summary (https://flito.ai/docs/reference/company/company_summary)
A company's record summary: people, deals open and won, the latest quote, invoices issued and owed, files, and its last activity.
Required scopes: companies:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/company.summary` and `Authorization: Bearer $FLITO_API_KEY`.
## Unarchive company (https://flito.ai/docs/reference/company/company_unarchive)
Bring an archived company back into the lists as it was. Refused for a company a merge folded into another: undo the merge instead.
Required scopes: companies:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/company.unarchive` and `Authorization: Bearer $FLITO_API_KEY`.
## Update company (https://flito.ai/docs/reference/company/company_update)
Patch a company record: only the fields given change.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/company.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Get compliance config (https://flito.ai/docs/reference/compliance/compliance_get_config)
Read the workspace CAN-SPAM mailing address + the marketing-enforcement flag.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/compliance.get_config` and `Authorization: Bearer $FLITO_API_KEY`.
## Update compliance config (https://flito.ai/docs/reference/compliance/compliance_update_config)
Set the workspace CAN-SPAM mailing address + the marketing-enforcement flag.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/compliance.update_config` and `Authorization: Bearer $FLITO_API_KEY`.
## Version detail (https://flito.ai/docs/reference/config/config_get_commit)
One version commit with its computed field-level diff.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/config.get_commit` and `Authorization: Bearer $FLITO_API_KEY`.
## Version history (https://flito.ai/docs/reference/config/config_list_commits)
List the hash-chained version history of one object (record or config): who changed what, when, from where.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/config.list_commits` and `Authorization: Bearer $FLITO_API_KEY`.
## Restore version (https://flito.ai/docs/reference/config/config_revert)
Revert one commit: re-applies its before-image (or, with state after, the version it made) as a NEW forward commit. Restores edited fields, resurrects deleted records, undoes creates. A quote or an invoice comes back whole, its lines included.
Required scopes: config:revert.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/config.revert` and `Authorization: Bearer $FLITO_API_KEY`.
## Archive contact (https://flito.ai/docs/reference/contact/contact_archive)
Take a contact out of the lists without deleting anything: their company, deals, leads, conversations and timeline stay with them, and contact.unarchive brings them back. Each change is a version in their history.
Required scopes: contacts:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/contact.archive` and `Authorization: Bearer $FLITO_API_KEY`.
## Create contact (https://flito.ai/docs/reference/contact/contact_create)
Create a new contact record.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/contact.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete contact (https://flito.ai/docs/reference/contact/contact_delete)
Delete a contact for good (admins only). Refused while the contact signs an envelope; merge it instead. Its deals, leads, conversations and email sends stay without it, a sequence still running stops, and its website engagement figures go with it. Its notes, tasks and timeline stay, and its history can bring it back.
Required scopes: contacts:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/contact.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Enrich contacts (https://flito.ai/docs/reference/contact/contact_enrich)
Enrich the selected contacts (stamps an enrichment marker + timestamp). Each billable contact uses one credit: one with no owner yet that was never enriched before. Contacts that already have an owner, or were enriched before, cost nothing.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/contact.enrich` and `Authorization: Bearer $FLITO_API_KEY`.
## Get contact (https://flito.ai/docs/reference/contact/contact_get)
A single contact by id.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/contact.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List contacts (https://flito.ai/docs/reference/contact/contact_list)
Paginated, filtered list of contacts, optionally only those at given companies.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/contact.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Lookup emails (https://flito.ai/docs/reference/contact/contact_lookup_emails)
The contact card for each email address: name, title, phone, owner, company, latest deals and activity. Null for an address the CRM does not have. Used by the Gmail side panel.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/contact.lookup_emails` and `Authorization: Bearer $FLITO_API_KEY`.
## Merge contacts (https://flito.ai/docs/reference/contact/contact_merge)
Merge two duplicate contacts: everything on the loser moves to the winner, the winner fills its blanks from the loser, an opt-out on either is kept, and the loser is archived, never deleted.
Required scopes: contacts:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/contact.merge` and `Authorization: Bearer $FLITO_API_KEY`.
## Unarchive contact (https://flito.ai/docs/reference/contact/contact_unarchive)
Bring an archived contact back into the lists as they were. Refused for a contact a merge folded into another: undo the merge instead.
Required scopes: contacts:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/contact.unarchive` and `Authorization: Bearer $FLITO_API_KEY`.
## Update contact (https://flito.ai/docs/reference/contact/contact_update)
Patch a contact record: only the fields given change.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/contact.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Assign conversation (https://flito.ai/docs/reference/conversation/conversation_assign)
Assign a conversation to a user (or unassign).
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/conversation.assign` and `Authorization: Bearer $FLITO_API_KEY`.
## Start conversation (https://flito.ai/docs/reference/conversation/conversation_create)
Open a conversation thread on a channel against a record.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/conversation.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Get conversation (https://flito.ai/docs/reference/conversation/conversation_get)
Fetch one conversation by id.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/conversation.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List conversations (https://flito.ai/docs/reference/conversation/conversation_list)
List a record's conversation threads, newest activity first.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/conversation.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Mark conversation read (https://flito.ai/docs/reference/conversation/conversation_mark_read)
Mark a thread's inbound messages read (for everyone: read state is shared), or put its newest one back to unread.
Required scopes: communications:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/conversation.mark_read` and `Authorization: Bearer $FLITO_API_KEY`.
## File conversation on a record (https://flito.ai/docs/reference/conversation/conversation_place)
File a thread on a record: take it out of the unassigned pool (or move it), and put every message on that record's timeline.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/conversation.place` and `Authorization: Bearer $FLITO_API_KEY`.
## Set conversation status (https://flito.ai/docs/reference/conversation/conversation_update_status)
Open, snooze, or close a conversation.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/conversation.update_status` and `Authorization: Bearer $FLITO_API_KEY`.
## Credit usage (https://flito.ai/docs/reference/credits/credits_summary)
The workspace's credit usage: total consumed, a breakdown by source (such as enrichment and audience syncs), and a recent-activity tail.
Required scopes: workspace:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/credits.summary` and `Authorization: Bearer $FLITO_API_KEY`.
## Create custom field (https://flito.ai/docs/reference/custom_field/custom_field_create)
Define a custom field on contacts, companies, deals, quotes, invoices or products. The key is minted from the label once and never changes.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete custom field (https://flito.ai/docs/reference/custom_field/custom_field_delete)
Delete a custom field. It leaves every record, list and form at once and waits under Archived fields for seven days, where it can be restored, then goes for good. Values already stored on records stay in each record, where they show under Other properties.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List custom fields (https://flito.ai/docs/reference/custom_field/custom_field_list)
List the custom field definitions of one object, or of every object. includeArchived adds the deleted ones still inside their seven-day window.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/custom_field.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete custom field now (https://flito.ai/docs/reference/custom_field/custom_field_purge)
Delete an archived custom field for good, before its seven days are up. It cannot be restored afterwards. Values already stored on records stay in each record.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.purge` and `Authorization: Bearer $FLITO_API_KEY`.
## Rename custom field group (https://flito.ai/docs/reference/custom_field/custom_field_rename_group)
Rename a field group on every field of one object under it, or with an empty name, take its fields out of the group.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.rename_group` and `Authorization: Bearer $FLITO_API_KEY`.
## Reorder custom fields (https://flito.ai/docs/reference/custom_field/custom_field_reorder)
Set the order the custom fields of one object read in.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.reorder` and `Authorization: Bearer $FLITO_API_KEY`.
## Restore custom field (https://flito.ai/docs/reference/custom_field/custom_field_restore)
Bring back a deleted custom field, as it was, while it is still under Archived fields. Refused when another field took its name or a field it reads has gone.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.restore` and `Authorization: Bearer $FLITO_API_KEY`.
## Set custom field values (https://flito.ai/docs/reference/custom_field/custom_field_set_values)
Write custom field values onto one record. Only the keys given change; null clears a key. Values are checked against the field type and its options.
Required scopes: none.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.set_values` and `Authorization: Bearer $FLITO_API_KEY`.
## Update custom field (https://flito.ai/docs/reference/custom_field/custom_field_update)
Relabel, recolour, reorder or add options, and change the description, default, formula or rules of a custom field, or its type to one its stored values fit (text to long text, a number to money, one choice to several). The key never changes, and an option value records still hold cannot be removed.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/custom_field.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Count custom field values (https://flito.ai/docs/reference/custom_field/custom_field_value_counts)
How many records hold any value, and each option value, under a custom field.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/custom_field.value_counts` and `Authorization: Bearer $FLITO_API_KEY`.
## Watch (https://flito.ai/docs/reference/database/database_watch)
Take a sample of how the database is doing, and tell the admins and OPS_ALERT_EMAIL when it stays bad and when it recovers. Run every 5 minutes.
Required scopes: integrations:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/database.watch` and `Authorization: Bearer $FLITO_API_KEY`.
## Create deal (https://flito.ai/docs/reference/deal/deal_create)
Create a deal. If the linked company is still a Lead, advance it to Prospect (side effect).
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/deal.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete deal (https://flito.ai/docs/reference/deal/deal_delete)
Delete a deal for good (admins only). Refused while the deal has quotes, invoices or envelopes; archive it instead.
Required scopes: deals:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/deal.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Duplicate deal (https://flito.ai/docs/reference/deal/deal_duplicate)
Copy a deal for a repeat order: its fields, line items, company, contacts and addresses, named "Copy of " and started on the first stage. Quotes, invoices and signatures are not copied.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/deal.duplicate` and `Authorization: Bearer $FLITO_API_KEY`.
## Pipeline forecast (https://flito.ai/docs/reference/deal/deal_forecast)
Weighted pipeline value: each deal amount × its stage win-probability.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/deal.forecast` and `Authorization: Bearer $FLITO_API_KEY`.
## Get deal (https://flito.ai/docs/reference/deal/deal_get)
A single deal by id.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/deal.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Deals by stage (https://flito.ai/docs/reference/deal/deal_group_by)
Deal count and summed amount per stage, owner, pipeline or document type, over the whole filtered set.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/deal.group_by` and `Authorization: Bearer $FLITO_API_KEY`.
## List deals (https://flito.ai/docs/reference/deal/deal_list)
Paginated, filtered list of deals for the table and pipeline board.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/deal.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Deal products (https://flito.ai/docs/reference/deal/deal_products_list)
The products on a deal (its own line items, whether imported, from the website or added on the deal page), with their subtotal.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/deal.products_list` and `Authorization: Bearer $FLITO_API_KEY`.
## Save deal products (https://flito.ai/docs/reference/deal/deal_products_save)
Save product quantities and prices, optionally updating the deal’s totals. A line that is also on a quote is copied for the deal when changed, so the quote never changes.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/deal.products_save` and `Authorization: Bearer $FLITO_API_KEY`.
## Update deal (https://flito.ai/docs/reference/deal/deal_update)
Patch a deal record.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/deal.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Move deal stage (https://flito.ai/docs/reference/deal/deal_update_stage)
Move a deal to another stage of its pipeline, as dragging it on the board does.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/deal.update_stage` and `Authorization: Bearer $FLITO_API_KEY`.
## Check for duplicates (https://flito.ai/docs/reference/dedupe/dedupe_check)
Before creating a company, contact or lead: the records that already exist for it. Exact matches share an email (contacts, leads) or a domain (companies); likely ones share a name, a phone, or a name at the same company. A match marked blocksCreate already holds the email or domain, so only opening it will do.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/dedupe.check` and `Authorization: Bearer $FLITO_API_KEY`.
## Revoke share link (https://flito.ai/docs/reference/document/document_revoke_share)
Revoke a public share link so the /share/ URL stops rendering (410).
Required scopes: quotes:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/document.revoke_share` and `Authorization: Bearer $FLITO_API_KEY`.
## Add sending domain (https://flito.ai/docs/reference/email_domain/email_domain_add)
Register a sending domain with Resend and return the SPF / DKIM / DMARC DNS records to publish.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_domain.add` and `Authorization: Bearer $FLITO_API_KEY`.
## List sending domains (https://flito.ai/docs/reference/email_domain/email_domain_list)
List the workspace’s sending domains with their status + DNS records.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_domain.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove sending domain (https://flito.ai/docs/reference/email_domain/email_domain_remove)
Remove a sending domain, here and at Resend.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_domain.remove` and `Authorization: Bearer $FLITO_API_KEY`.
## Set tracking domain (https://flito.ai/docs/reference/email_domain/email_domain_set_tracking_domain)
Set a custom tracking subdomain (e.g. track.example.com) for a sending domain; returns the CNAME to publish. /e/* links switch to it once the CNAME verifies.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_domain.set_tracking_domain` and `Authorization: Bearer $FLITO_API_KEY`.
## Verify sending domain (https://flito.ai/docs/reference/email_domain/email_domain_verify)
Check a sending domain’s DNS with Resend (call after publishing the DNS records). Registers it with Resend first if it is not yet.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_domain.verify` and `Authorization: Bearer $FLITO_API_KEY`.
## Create email template (https://flito.ai/docs/reference/email_template/email_template_create)
Create a reusable block-based email template (subject + body_design → body_html).
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_template.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete email template (https://flito.ai/docs/reference/email_template/email_template_delete)
Delete a template you own. Refused while a sequence step, an unfinished broadcast or a queued send still uses it.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_template.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get email template (https://flito.ai/docs/reference/email_template/email_template_get)
Fetch one email template.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List email templates (https://flito.ai/docs/reference/email_template/email_template_list)
List the email templates the caller can use: shared ones plus their own private ones, most-used first. Searchable and paged.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Render email preview (https://flito.ai/docs/reference/email_template/email_template_render_preview)
Interpolate a template (saved or ad-hoc) against one sample recipient — the live preview.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.render_preview` and `Authorization: Bearer $FLITO_API_KEY`.
## Template stats (https://flito.ai/docs/reference/email_template/email_template_stats)
Send volume + open/click rates per email template (one template, or all templates with sends).
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.stats` and `Authorization: Bearer $FLITO_API_KEY`.
## Update email template (https://flito.ai/docs/reference/email_template/email_template_update)
Edit an email template; re-renders body_html from a new body_design.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email_template.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Template usage (https://flito.ai/docs/reference/email_template/email_template_usage)
What still uses a template: sequence steps, unfinished broadcasts or campaigns, and queued sends.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.usage` and `Authorization: Bearer $FLITO_API_KEY`.
## Variant stats (https://flito.ai/docs/reference/email_template/email_template_variant_stats)
Per-variant send + open/click/reply rates for a template A/Z test, with the leading variant (winner) once enough volume accrues.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email_template.variant_stats` and `Authorization: Bearer $FLITO_API_KEY`.
## Cancel scheduled send (https://flito.ai/docs/reference/email/email_cancel_scheduled)
Cancel a pending scheduled send before it goes out.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.cancel_scheduled` and `Authorization: Bearer $FLITO_API_KEY`.
## Default signature (https://flito.ai/docs/reference/email/email_default_signature)
The workspace's default email signature: added once to every send from an address with no signature of its own.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.default_signature` and `Authorization: Bearer $FLITO_API_KEY`.
## Send stats (https://flito.ai/docs/reference/email/email_get_send_stats)
Workspace send volume + engagement/bounce/complaint rates.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.get_send_stats` and `Authorization: Bearer $FLITO_API_KEY`.
## List sends (https://flito.ai/docs/reference/email/email_list)
List the workspace's email sends (the sent mail log).
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Log external (https://flito.ai/docs/reference/email/email_log_external)
Log emails another platform sent a customer (marketing campaigns, receipts, invoices, reminders) onto the customer's timeline, so the CRM shows everything they received. A recipient's mail from one source reads as one thread, and an email logged twice is kept once.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.log_external` and `Authorization: Bearer $FLITO_API_KEY`.
## My engagement (https://flito.ai/docs/reference/email/email_my_engagement)
Opens and clicks on the caller's own tracked emails since a time, without the caller's own views. Recent ones wait two minutes in case they were the caller's.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.my_engagement` and `Authorization: Bearer $FLITO_API_KEY`.
## My signature (https://flito.ai/docs/reference/email/email_my_signature)
The caller's own email signature, and what their email to a customer is signed with: theirs, else the workspace default, else their name, the workspace name and their address.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.my_signature` and `Authorization: Bearer $FLITO_API_KEY`.
## Note self view (https://flito.ai/docs/reference/email/email_note_self_view)
The sender's own Gmail showed one of their tracked emails: opens around now are theirs, not the recipient's.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.note_self_view` and `Authorization: Bearer $FLITO_API_KEY`.
## Schedule email (https://flito.ai/docs/reference/email/email_schedule)
Queue a future-dated send to up to 50 contacts; each goes out once it is due.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.schedule` and `Authorization: Bearer $FLITO_API_KEY`.
## Send email (https://flito.ai/docs/reference/email/email_send)
Send one email (template or raw subject/body) through the live pipeline: suppression check, the former-employee check, per-recipient token rendering, open/click tracking, unsubscribe compliance, sent through Resend. Cold email goes through a connected mailbox and is refused when none can take it, as past the daily cap.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.send` and `Authorization: Bearer $FLITO_API_KEY`.
## Send bulk email (https://flito.ai/docs/reference/email/email_send_bulk)
Send to up to 50 contacts through the live pipeline; unsubscribed, opted-out and suppressed recipients and former employees are skipped and counted. A bulk send is never transactional, so an unsubscribe always holds.
Required scopes: email:send.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/email.send_bulk` and `Authorization: Bearer $FLITO_API_KEY`.
## Sender name (https://flito.ai/docs/reference/email/email_sender_name)
The name email sent under the workspace's address goes out under: the sender's name and the workspace name, or the workspace name alone.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.sender_name` and `Authorization: Bearer $FLITO_API_KEY`.
## Set default signature (https://flito.ai/docs/reference/email/email_set_default_signature)
Set or clear the workspace's default email signature, used on sends from an address with no signature of its own.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.set_default_signature` and `Authorization: Bearer $FLITO_API_KEY`.
## Set my signature (https://flito.ai/docs/reference/email/email_set_my_signature)
Set or clear the caller's own email signature, used on the email they send a customer from the workspace's address.
Required scopes: email:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.set_my_signature` and `Authorization: Bearer $FLITO_API_KEY`.
## Set sender name (https://flito.ai/docs/reference/email/email_set_sender_name)
Choose the name email sent under the workspace's address goes out under: 'user' for the sender's name and the workspace name, 'workspace' for the workspace name alone.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.set_sender_name` and `Authorization: Bearer $FLITO_API_KEY`.
## Tracking status (https://flito.ai/docs/reference/email/email_tracking_status)
Opens and clicks so far on the caller's own tracked emails, found by their open-pixel tokens, without the caller's own views.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/email.tracking_status` and `Authorization: Bearer $FLITO_API_KEY`.
## Unsubscribe (https://flito.ai/docs/reference/email/email_unsubscribe)
Suppress an address (unsubscribe): adds the suppression-list row, sets the contact opt-out, and logs the event.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/email.unsubscribe` and `Authorization: Bearer $FLITO_API_KEY`.
## Access signed document (https://flito.ai/docs/reference/esign/esign_document_access)
Open a signed envelope's signed PDF and certificate of completion through short-lived links, writing them to the file store first when they are not there yet. Audited on the deal's timeline.
Required scopes: esign:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/esign.document_access` and `Authorization: Bearer $FLITO_API_KEY`.
## Send for signature (https://flito.ai/docs/reference/esign/esign_email_quote)
Email a quote for signature from the sender's own mailbox, as a new thread or a reply in an earlier one, with a button to its shared page. Marks the quote sent and moves its deal on as quote.send does, approving it in the sender's name when it needs approving and they can.
Required scopes: quotes:write, esign:send, communications:send, communications:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/esign.email_quote` and `Authorization: Bearer $FLITO_API_KEY`.
## Send for signature (https://flito.ai/docs/reference/esign/esign_envelope_create)
Create a signing envelope for a quote: mint signer tokens, open the tamper-evident hash chain, and invite signers (the "Send for signature" action).
Required scopes: esign:send.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/esign.envelope_create` and `Authorization: Bearer $FLITO_API_KEY`.
## Void envelope (https://flito.ai/docs/reference/esign/esign_envelope_void)
Void an open signing envelope (appends a voided event; prior events are never deleted).
Required scopes: esign:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/esign.envelope_void` and `Authorization: Bearer $FLITO_API_KEY`.
## Get envelope (https://flito.ai/docs/reference/esign/esign_get)
A single envelope with its signers and full event chain.
Required scopes: esign:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/esign.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List envelopes (https://flito.ai/docs/reference/esign/esign_list)
List signing envelopes, optionally filtered by quote or deal.
Required scopes: esign:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/esign.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Signature email draft (https://flito.ai/docs/reference/esign/esign_quote_email_draft)
The email Send for signature opens with: To the contact on the quote's deal, the subject and note from the template, the sender's own mailbox, and the email threads with that contact they could reply in.
Required scopes: quotes:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/esign.quote_email_draft` and `Authorization: Bearer $FLITO_API_KEY`.
## Get field catalog (https://flito.ai/docs/reference/field_catalog/field_catalog_get)
Typed, filterable/selectable field list for an object: native fields (type + operators), every custom property key, and associated-object fields.
Required scopes: none.
Read only.
Call it with `POST $FLITO_URL/api/cap/field_catalog.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Profile a field (https://flito.ai/docs/reference/field_catalog/field_catalog_profile)
One built-in field's values across the records you can open: how many hold one, the range of a number or a date, and the commonest values where there are few.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/field_catalog.profile` and `Authorization: Bearer $FLITO_API_KEY`.
## What can I send from (https://flito.ai/docs/reference/inbox/inbox_compose_context)
What the composer can send from: the mailboxes open to the caller (theirs and shared) with signatures, their default, and a reply's defaults for a thread.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/inbox.compose_context` and `Authorization: Bearer $FLITO_API_KEY`.
## Check for new mail (https://flito.ai/docs/reference/inbox/inbox_fetch_now)
Check for new mail now instead of waiting for the schedule: the caller's own mailboxes and the shared ones (or one named mailbox).
Required scopes: communications:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/inbox.fetch_now` and `Authorization: Bearer $FLITO_API_KEY`.
## List inbox threads (https://flito.ai/docs/reference/inbox/inbox_list)
The inbox: threads the caller owns or is assigned (view 'mine'), their team's, everyone's, or the unassigned pool, newest first, with unread/waiting/direction/recency filters.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/inbox.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Inbox reader status (https://flito.ai/docs/reference/inbox/inbox_status)
The inbox reader's health: which credentials this host has, the last pass across all mailboxes (the heartbeat), and each mailbox's last sync, last clean sync, last error and last run's counters.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/inbox.status` and `Authorization: Bearer $FLITO_API_KEY`.
## Open a conversation (https://flito.ai/docs/reference/inbox/inbox_thread)
One conversation with every message, oldest first: sanitised html, the reply without its quoted history, attachments (metadata), read state, and what a reply would default to.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/inbox.thread` and `Authorization: Bearer $FLITO_API_KEY`.
## Convert quote to invoice (https://flito.ai/docs/reference/invoice/invoice_convert_from_quote)
Create an invoice from a quote: copy its line items, fees, freight, taxes, discounts, addresses and terms, apply a billing arrangement (full / net terms / deposit + balance / installments), advance the deal and the company lifecycle. Refused for a quote that already has an invoice that is not void.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.convert_from_quote` and `Authorization: Bearer $FLITO_API_KEY`.
## Create invoice (https://flito.ai/docs/reference/invoice/invoice_create)
Create an invoice (and its line items) with a chosen billing arrangement.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Get invoice (https://flito.ai/docs/reference/invoice/invoice_get)
A single invoice with its line items.
Required scopes: invoices:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/invoice.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Issue invoice (https://flito.ai/docs/reference/invoice/invoice_issue)
Issue a retainer invoice from a quote (totals only): create the invoice, emit invoice.issued, move the deal to Retainer Invoice Created where its pipeline has that stage, and advance the company to Customer. Use invoice.convert_from_quote to also copy the line items.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.issue` and `Authorization: Bearer $FLITO_API_KEY`.
## List invoices (https://flito.ai/docs/reference/invoice/invoice_list)
Paginated, filtered list of invoices for the Invoices grid + the record panels.
Required scopes: invoices:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/invoice.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Generate invoice PDF (https://flito.ai/docs/reference/invoice/invoice_pdf_generate)
Render the invoice to a branded, printable document including the billing schedule + payment summary, returned as an inline data: URL.
Required scopes: invoices:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.pdf_generate` and `Authorization: Bearer $FLITO_API_KEY`.
## Record payment (https://flito.ai/docs/reference/invoice/invoice_record_payment)
Record a payment received against an invoice; rolls up amountPaid and advances the status to partially_paid / paid.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.record_payment` and `Authorization: Bearer $FLITO_API_KEY`.
## Send invoice (https://flito.ai/docs/reference/invoice/invoice_send)
Email an invoice to the customer: each person gets a link to the invoice's public page, where the PDF downloads, with an optional message above the sender's signature. Takes recipientEmails (else the contact on the invoice's deal, else whoever signs for its quote), optional ccEmails and message. Once at least one email goes out the invoice is marked sent, the deal moves to Retainer Invoice Sent on the first send where its pipeline has that stage, and invoice.sent is emitted. Returns each recipient's email status. A paid or void invoice, or one with nobody to send to, is refused.
Required scopes: invoices:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/invoice.send` and `Authorization: Bearer $FLITO_API_KEY`.
## Update invoice (https://flito.ai/docs/reference/invoice/invoice_update)
Edit an invoice: its terms, invoice and due dates and notes, the due date of each stage of its payment schedule (one per stage, in order, refused when the count does not match), its company, its billing and shipping addresses, its line items (a saved line edited in place by its id, a line left out removed) and its fee, tax and discount lines (a dollar amount or a percent of the subtotal). The subtotal, tax, total and payment schedule are worked out again. A new company keeps only the addresses linked to it. A paid or void invoice keeps its company, lines, fees and addresses.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Void invoice (https://flito.ai/docs/reference/invoice/invoice_void)
Void an invoice.
Required scopes: invoices:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/invoice.void` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove lead status (https://flito.ai/docs/reference/lead_status/lead_status_remove)
Remove a lead status the workspace added. Refused while any lead holds it, unless moveTo names the status those leads move to first. The built-in statuses stay as they are.
Required scopes: workspace:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/lead_status.remove` and `Authorization: Bearer $FLITO_API_KEY`.
## Update lead status (https://flito.ai/docs/reference/lead_status/lead_status_update)
Rename or recolour a lead status the workspace added. Leads hold the status by its value, so a rename changes no lead. The built-in statuses stay as they are.
Required scopes: workspace:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/lead_status.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Convert lead to deal (https://flito.ai/docs/reference/lead/lead_convert)
Convert a lead into a deal: match or create its contact (by email) and company (by domain), open the deal with the lead owner and matching custom fields, and mark the lead converted.
Required scopes: deals:write, contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/lead.convert` and `Authorization: Bearer $FLITO_API_KEY`.
## Create lead (https://flito.ai/docs/reference/lead/lead_create)
Create a lead. Matches an existing contact by email, and the owner defaults to whoever creates it.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/lead.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete leads (https://flito.ai/docs/reference/lead/lead_delete)
Delete leads (admins only). Each lead is deleted or refused on its own, with the reason.
Required scopes: deals:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/lead.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get lead (https://flito.ai/docs/reference/lead/lead_get)
A single lead by id, with its owner, contact, company and deal names.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/lead.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Leads by category (https://flito.ai/docs/reference/lead/lead_group_by)
Lead count per status, stage, owner, source, label, type, country or created date, over the whole filtered set.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/lead.group_by` and `Authorization: Bearer $FLITO_API_KEY`.
## List leads (https://flito.ai/docs/reference/lead/lead_list)
Leads with search, filters, up to three sorts and paging, each row carrying its owner, contact, company and deal names.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/lead.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Update lead (https://flito.ai/docs/reference/lead/lead_update)
Patch a lead: only the fields given change.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/lead.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Evaluate health (https://flito.ai/docs/reference/mailbox/mailbox_evaluate_health)
Per-mailbox circuit breaker: over a rolling window, pause (health=paused, excluded from rotation) any mailbox whose bounce or complaint rate exceeds the threshold once it has enough volume.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/mailbox.evaluate_health` and `Authorization: Bearer $FLITO_API_KEY`.
## List mailboxes (https://flito.ai/docs/reference/mailbox/mailbox_list)
Connected mailboxes with today's volume vs the ramp-adjusted daily cap.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/mailbox.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Set my default mailbox (https://flito.ai/docs/reference/mailbox/mailbox_set_default)
Set (or clear) the caller's default sending mailbox for replies and new mail.
Required scopes: communications:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/mailbox.set_default` and `Authorization: Bearer $FLITO_API_KEY`.
## Set sending limits (https://flito.ai/docs/reference/mailbox/mailbox_set_limits)
Set a mailbox daily cap and warmup ramp (start volume, daily increment, target).
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/mailbox.set_limits` and `Authorization: Bearer $FLITO_API_KEY`.
## Mailbox settings (https://flito.ai/docs/reference/mailbox/mailbox_update_settings)
Set a mailbox's owner, whether the team shares it, the signature its replies carry, and whether the inbox reads it.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/mailbox.update_settings` and `Authorization: Bearer $FLITO_API_KEY`.
## Log meeting (https://flito.ai/docs/reference/meeting/meeting_create)
Log or schedule a meeting on a record: title, start and end, location or link, notes, attendees. It shows on the calendar and the record timeline.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/meeting.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete meeting (https://flito.ai/docs/reference/meeting/meeting_delete)
Remove a logged meeting and its timeline line. A synced calendar event is marked cancelled instead.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/meeting.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get meeting (https://flito.ai/docs/reference/meeting/meeting_get)
One meeting.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/meeting.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List meetings (https://flito.ai/docs/reference/meeting/meeting_list)
A record's meetings, or the meetings in a time range, newest first.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/meeting.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit meeting (https://flito.ai/docs/reference/meeting/meeting_update)
Change a meeting's time, title, place, notes, status or outcome.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/meeting.update` and `Authorization: Bearer $FLITO_API_KEY`.
## List messages (https://flito.ai/docs/reference/message/message_list)
List a conversation's messages, oldest first.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/message.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Send message (https://flito.ai/docs/reference/message/message_send)
Send a message on a conversation. On an email thread it really sends: from the thread's mailbox (or your default), to the other side, Re: the subject, with In-Reply-To/References so the customer's client keeps the thread, plus any copies and files.
Required scopes: communications:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/message.send` and `Authorization: Bearer $FLITO_API_KEY`.
## Aggregate records (https://flito.ai/docs/reference/object/object_aggregate)
Group-by + metric rollups over any object (company, contact, deal, quote, invoice, product, etc.). Supports count, sum, avg, min, max over numeric fields, an optional grid filter, free-text search, and groupBy on one or more fields. Use it to answer "how many / total / average X by Y" — e.g. deals per stage, total quote value by company, contacts by management level.
Required scopes: none.
Read only.
Call it with `POST $FLITO_URL/api/cap/object.aggregate` and `Authorization: Bearer $FLITO_API_KEY`.
## Field facets (https://flito.ai/docs/reference/object/object_facets)
A field's distinct values (with counts) for a categorical field, or the numeric min/max range — for filter value pickers and to resolve a user-typed term to a real value (fuzzy, punctuation-insensitive).
Required scopes: none.
Read only.
Call it with `POST $FLITO_URL/api/cap/object.facets` and `Authorization: Bearer $FLITO_API_KEY`.
## Records under a report (https://flito.ai/docs/reference/object/object_records)
The records of any object that match a grid filter, a page at a time, newest first unless sorted. Reads the same set object.aggregate counts, so a report group lists exactly its records.
Required scopes: none.
Read only.
Call it with `POST $FLITO_URL/api/cap/object.records` and `Authorization: Bearer $FLITO_API_KEY`.
## File a call on a contact (https://flito.ai/docs/reference/phone/phone_attach_call)
File a call the rep placed on the contact they were talking to: the call's thread moves onto them once it has arrived from the call log, and it arrives there otherwise.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.attach_call` and `Authorization: Bearer $FLITO_API_KEY`.
## Control a call (https://flito.ai/docs/reference/phone/phone_call_control)
Hold, resume, transfer or hang up a call the rep placed from their RingCentral app or desk phone. RingCentral only lets a rep act on their own extension's calls.
Required scopes: communications:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.call_control` and `Authorization: Bearer $FLITO_API_KEY`.
## Call (https://flito.ai/docs/reference/phone/phone_call_out)
Place a call through RingCentral: from the rep's RingCentral app or desk phone when one is online (the call can then be held, transferred and hung up), otherwise RingOut rings the rep's own phone first, then the customer's number.
Required scopes: communications:send.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.call_out` and `Authorization: Bearer $FLITO_API_KEY`.
## Fetch new calls (https://flito.ai/docs/reference/phone/phone_fetch_now)
Read the caller's own RingCentral call log now instead of waiting for the schedule.
Required scopes: communications:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.fetch_now` and `Authorization: Bearer $FLITO_API_KEY`.
## Who is calling (https://flito.ai/docs/reference/phone/phone_identify)
Who a phone number belongs to, matched on the same rules the call sync files calls by: one contact is a match, several are candidates and match nobody.
Required scopes: communications:read, contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/phone.identify` and `Authorization: Bearer $FLITO_API_KEY`.
## Save call notes (https://flito.ai/docs/reference/phone/phone_log_notes)
Write the rep's notes onto a call they placed: onto the call and its timeline line once it has arrived from the call log, and kept until it arrives otherwise.
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.log_notes` and `Authorization: Bearer $FLITO_API_KEY`.
## Set caller id (https://flito.ai/docs/reference/phone/phone_set_caller_id)
Choose the number the caller's outbound calls present (one of their RingCentral numbers).
Required scopes: communications:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/phone.set_caller_id` and `Authorization: Bearer $FLITO_API_KEY`.
## Phone status (https://flito.ai/docs/reference/phone/phone_status)
RingCentral's state for the caller: configured on this host, their connection, and the last sync pass.
Required scopes: communications:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/phone.status` and `Authorization: Bearer $FLITO_API_KEY`.
## Create pipeline (https://flito.ai/docs/reference/pipeline/pipeline_create)
Create a deal or lead pipeline with its stages.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/pipeline.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete pipeline (https://flito.ai/docs/reference/pipeline/pipeline_delete)
Delete an empty pipeline after moving its records elsewhere.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/pipeline.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get pipeline (https://flito.ai/docs/reference/pipeline/pipeline_get)
Fetch one pipeline with its stages.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/pipeline.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List pipelines (https://flito.ai/docs/reference/pipeline/pipeline_list)
List the workspace pipelines (deal or lead) with their stages.
Required scopes: deals:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/pipeline.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Reorder pipelines (https://flito.ai/docs/reference/pipeline/pipeline_reorder)
Put the pipelines of one object type in the order the switcher lists them (admins only). Pass every board id in the new order; each is placed at 10, 20, 30.
Required scopes: deals:admin.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/pipeline.reorder` and `Authorization: Bearer $FLITO_API_KEY`.
## Update pipeline (https://flito.ai/docs/reference/pipeline/pipeline_update)
Rename a pipeline, set it default, or replace its stage set.
Required scopes: deals:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/pipeline.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Contact email permissions (https://flito.ai/docs/reference/preference/preference_contact_summary)
A contact's email permissions: the strictest status per channel (marketing, transactional), each topic, and the last consent change.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/preference.contact_summary` and `Authorization: Bearer $FLITO_API_KEY`.
## Email preferences (https://flito.ai/docs/reference/preference/preference_list)
Every recorded email preference: topic subscriptions, the consent history and the suppression list, as one list.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/preference.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Create product (https://flito.ai/docs/reference/product/product_create)
Create a product catalog row for quoting.
Required scopes: products:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/product.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Get product (https://flito.ai/docs/reference/product/product_get)
Fetch a single product from the catalog.
Required scopes: products:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/product.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List products (https://flito.ai/docs/reference/product/product_list)
Paginated, searchable product catalog for the Products grid and quote builder.
Required scopes: products:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/product.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Resolve (https://flito.ai/docs/reference/product/product_resolve)
Find the catalog product a person means from a loose name: matches each word against name, brand and model; skips hidden and deprecated products. Says whether one, several or no products match, with each candidate's price, warehouse, lead time and stock. Use it before quoting a product instead of product.list.
Required scopes: products:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/product.resolve` and `Authorization: Bearer $FLITO_API_KEY`.
## Update product (https://flito.ai/docs/reference/product/product_update)
Patch a product catalog row.
Required scopes: products:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/product.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Attach document to quote (https://flito.ai/docs/reference/quote/quote_attach_document)
Link a library attachment to a quote (rendered into the quote PDF).
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.attach_document` and `Authorization: Bearer $FLITO_API_KEY`.
## Create quote (https://flito.ai/docs/reference/quote/quote_create)
Create a quote (and its line items). When no deal is linked, a deal is created for it, in Quote Created where its pipeline has that stage and else in its first stage.
Required scopes: quotes:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete quote (https://flito.ai/docs/reference/quote/quote_delete)
Delete a quote for good (admins only), such as a test quote. Refused while an invoice names the quote or once the customer signed it. Its lines go with it, except the ones that are also its deal’s lines; a signing envelope still open is voided; its share links stop working. Its history can bring it back.
Required scopes: quotes:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/quote.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Detach document from quote (https://flito.ai/docs/reference/quote/quote_detach_document)
Unlink a library attachment from a quote, and take it off the quote's record page.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.detach_document` and `Authorization: Bearer $FLITO_API_KEY`.
## Get quote (https://flito.ai/docs/reference/quote/quote_get)
A single quote with its line items.
Required scopes: quotes:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/quote.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List quotes (https://flito.ai/docs/reference/quote/quote_list)
Paginated, filtered list of quotes for the quotes table and the deal Quotes panel.
Required scopes: quotes:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/quote.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Overview (https://flito.ai/docs/reference/quote/quote_overview)
Where the asker's quotes stand and what waits on them, in one read: quotes waiting on their approval (when they may approve), quotes out with the customer and not signed yet (with the e-sign state), their drafts not sent yet and whether each can go, envelopes waiting on their own signature, and quotes signed lately. Use it for "what are my quotes", "what do I need to sign or approve", "what is waiting on me".
Required scopes: quotes:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/quote.overview` and `Authorization: Bearer $FLITO_API_KEY`.
## Generate quote PDF (https://flito.ai/docs/reference/quote/quote_pdf_generate)
Render the quote to a branded, printable document the customer can read and Save-as-PDF. Returns it as a data: URL.
Required scopes: quotes:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.pdf_generate` and `Authorization: Bearer $FLITO_API_KEY`.
## Prepare (https://flito.ai/docs/reference/quote/quote_prepare)
Work out a quote from a request like "10 of the Standard plan for Acme, shipping to their normal address" without saving anything: finds the company by name, its billing and usual shipping address (the quote builder's defaults) and each product from a loose name, and prices each line from the catalog unless a price is given. Returns quoteCreateInput, the exact input to pass to quote.create, or the questions to settle first. Use it for every quote request.
Required scopes: quotes:read, companies:read, products:read, contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/quote.prepare` and `Authorization: Bearer $FLITO_API_KEY`.
## Ask for approval (https://flito.ai/docs/reference/quote/quote_request_approval)
Ask for a quote to be approved again, so it can go out again: it waits on approval, whoever made it, until someone who can approve approves it. Someone who cannot approve sends a quote that already went out only this way.
Required scopes: quotes:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.request_approval` and `Authorization: Bearer $FLITO_API_KEY`.
## Review quote (https://flito.ai/docs/reference/quote/quote_review)
Approve or reject a quote in the internal review step. quote.send is gated on an approved review.
Required scopes: quotes:review.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.review` and `Authorization: Bearer $FLITO_API_KEY`.
## Send quote for signature (https://flito.ai/docs/reference/quote/quote_send)
Send an approved quote for signature: move the deal to Quote Sent where its pipeline has that stage, create the signing envelope, email each signer their signing link, and advance the company to Prospect. Returns the signing links. Returns a validation error unless the quote review is approved.
Required scopes: quotes:write, esign:send.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/quote.send` and `Authorization: Bearer $FLITO_API_KEY`.
## Update quote (https://flito.ai/docs/reference/quote/quote_update)
Patch a quote header and (optionally) replace its line items; recomputes totals.
Required scopes: quotes:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/quote.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Add a key contact (https://flito.ai/docs/reference/record_contact/record_contact_add)
Tie an existing contact to a company, deal or lead as a key contact with a role (decision maker, influencer, billing, technical, buyer, other). To add someone new, create the contact first with contact.create.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_contact.add` and `Authorization: Bearer $FLITO_API_KEY`.
## List key contacts (https://flito.ai/docs/reference/record_contact/record_contact_list)
The key contacts on a company, deal or lead: the people tied to it with a role (decision maker, influencer, billing, technical, buyer, other), with their email, phone and company.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/record_contact.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove a key contact (https://flito.ai/docs/reference/record_contact/record_contact_remove)
Take a person off the key contacts of a company, deal or lead (one role, or every role they hold). The contact itself and its other links to the record are left alone.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_contact.remove` and `Authorization: Bearer $FLITO_API_KEY`.
## Change a key contact’s role (https://flito.ai/docs/reference/record_contact/record_contact_set_role)
Give a key contact on a company, deal or lead one role in place of the ones they hold (decision maker, influencer, billing, technical, buyer, other).
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_contact.set_role` and `Authorization: Bearer $FLITO_API_KEY`.
## Add a detail (https://flito.ai/docs/reference/record_detail/record_detail_create)
Record another email, phone, company name (a DBA or legal entity), address or other fact against a company, contact or lead, with a free-text label such as "Personal email" or "Warehouse phone". Additional to the record’s own fields, never a replacement; mail from an additional email files to that contact.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_detail.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove a detail (https://flito.ai/docs/reference/record_detail/record_detail_delete)
Remove an additional detail someone recorded in the app. Details a sync landed are read-only.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_detail.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List additional details (https://flito.ai/docs/reference/record_detail/record_detail_list)
A company's, contact's or lead's additional emails, phones, company names, addresses and other facts, beside the record's own fields.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/record_detail.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit a detail (https://flito.ai/docs/reference/record_detail/record_detail_update)
Correct an additional detail someone recorded in the app: its kind, value or label. Details a sync landed are read-only.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_detail.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Add a link (https://flito.ai/docs/reference/record_link/record_link_create)
Record another website or social page (LinkedIn, Facebook, X, Instagram, YouTube, TikTok) against a company, contact, lead or deal. A bare domain or @handle is made into a full link. Additional to the record’s own website, never a replacement.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_link.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove a link (https://flito.ai/docs/reference/record_link/record_link_delete)
Remove a link someone recorded in the app. Links a sync landed are read-only.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_link.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List links (https://flito.ai/docs/reference/record_link/record_link_list)
A company's, contact's, lead's or deal's other links: extra websites and social pages, beside the record's own website field.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/record_link.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Edit a link (https://flito.ai/docs/reference/record_link/record_link_update)
Correct a link someone recorded in the app: its kind, address or label. Links a sync landed are read-only.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record_link.update` and `Authorization: Bearer $FLITO_API_KEY`.
## List associated addresses (https://flito.ai/docs/reference/record/record_addresses)
A record's associated addresses, with each address's role labels.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/record.addresses` and `Authorization: Bearer $FLITO_API_KEY`.
## Associate records (https://flito.ai/docs/reference/record/record_associate)
Associate two records with a labelled relationship (e.g. link a contact to a company as "decision_maker"). Idempotent on the (from, to, label) edge.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record.associate` and `Authorization: Bearer $FLITO_API_KEY`.
## List record associations (https://flito.ai/docs/reference/record/record_associations)
A record's associations across every object type, in either direction, each resolved to a clickable label.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/record.associations` and `Authorization: Bearer $FLITO_API_KEY`.
## Count records per value (https://flito.ai/docs/reference/record/record_group_counts)
How many records of an object sit under each value of one column, under the same filter and search its grid sends. Drives grouped grid sections.
Required scopes: none.
Read only.
Call it with `POST $FLITO_URL/api/cap/record.group_counts` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove association (https://flito.ai/docs/reference/record/record_unassociate)
Remove a labelled association between two records (or every edge between them when no label is given). Either direction matches.
Required scopes: companies:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/record.unassociate` and `Authorization: Bearer $FLITO_API_KEY`.
## Create saved view (https://flito.ai/docs/reference/saved_view/saved_view_create)
Persist the current grid view as a named saved view.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/saved_view.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete saved view (https://flito.ai/docs/reference/saved_view/saved_view_delete)
Delete a saved view (blocked for pinned views).
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/saved_view.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List saved views (https://flito.ai/docs/reference/saved_view/saved_view_list)
List saved views for an object type (pinned views first).
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/saved_view.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Pin saved view (https://flito.ai/docs/reference/saved_view/saved_view_pin)
Pin or unpin a saved view (pinned views appear first and resist deletion).
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/saved_view.pin` and `Authorization: Bearer $FLITO_API_KEY`.
## Update saved view (https://flito.ai/docs/reference/saved_view/saved_view_update)
Rename, re-save or re-share a saved view.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/saved_view.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Scout knowledge, skills and agents (https://flito.ai/docs/reference/scout/scout_assets)
List the knowledge entries, skills and agents you can see in Scout.
Required scopes: agents:run.
Read only.
Call it with `POST $FLITO_URL/api/cap/scout.assets` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete Scout entry (https://flito.ai/docs/reference/scout/scout_delete_asset)
Delete a Scout knowledge entry, skill or agent you own.
Required scopes: agents:run.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/scout.delete_asset` and `Authorization: Bearer $FLITO_API_KEY`.
## Read knowledge document (https://flito.ai/docs/reference/scout/scout_extract_document)
Extract the text of an uploaded document for a Scout knowledge entry.
Required scopes: agents:run.
Read only.
Call it with `POST $FLITO_URL/api/cap/scout.extract_document` and `Authorization: Bearer $FLITO_API_KEY`.
## Scout preferences (https://flito.ai/docs/reference/scout/scout_preferences)
Read which Scout agents and functions are switched off for you and the workspace.
Required scopes: agents:run.
Read only.
Call it with `POST $FLITO_URL/api/cap/scout.preferences` and `Authorization: Bearer $FLITO_API_KEY`.
## Save Scout knowledge (https://flito.ai/docs/reference/scout/scout_save_asset)
Create or update a Scout knowledge entry, skill or agent.
Required scopes: agents:run.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/scout.save_asset` and `Authorization: Bearer $FLITO_API_KEY`.
## Update Scout preferences (https://flito.ai/docs/reference/scout/scout_save_preferences)
Switch Scout agents or functions on or off.
Required scopes: agents:run.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/scout.save_preferences` and `Authorization: Bearer $FLITO_API_KEY`.
## Search Scout knowledge (https://flito.ai/docs/reference/scout/scout_search_knowledge)
Search published accessible knowledge and skills. Cite exact returned source titles and ids.
Required scopes: agents:run.
Read only.
Call it with `POST $FLITO_URL/api/cap/scout.search_knowledge` and `Authorization: Bearer $FLITO_API_KEY`.
## Add to list (https://flito.ai/docs/reference/segment/segment_add_members)
Add records to a static list (records already in it are left alone).
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.add_members` and `Authorization: Bearer $FLITO_API_KEY`.
## Segment block catalog (https://flito.ai/docs/reference/segment/segment_catalog)
The related records a segment of this object type can filter on as one block (deals, quotes, products bought, events, brand records), with the fields of each.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.catalog` and `Authorization: Bearer $FLITO_API_KEY`.
## Create segment (https://flito.ai/docs/reference/segment/segment_create)
Persist a named segment: a dynamic filter, or a static list (optionally seeded with records). Caches the member count.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete segment (https://flito.ai/docs/reference/segment/segment_delete)
Delete a saved segment. Refused while a sequence, automation or unfinished campaign still targets it.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get segment (https://flito.ai/docs/reference/segment/segment_get)
Read one saved segment by id.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Import a contact list (https://flito.ai/docs/reference/segment/segment_import_list)
Import a list of contacts into a static list, matching each row by contact id or email address, and report what happened to every row.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.import_list` and `Authorization: Bearer $FLITO_API_KEY`.
## List segments (https://flito.ai/docs/reference/segment/segment_list)
List saved segments with their cached counts and how many sequences, automations and campaigns use each. Searchable, sortable and paged.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Segment members (https://flito.ai/docs/reference/segment/segment_members)
A saved segment's members, a page at a time: the live filter's matches for a dynamic segment, the stored list for a static one.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.members` and `Authorization: Bearer $FLITO_API_KEY`.
## Preview segment audience (https://flito.ai/docs/reference/segment/segment_preview)
Run an (object type, filter) against the live data WITHOUT saving → the member count + a page of members. With forEmail, contacts who cannot be mailed are left out and counted by reason.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.preview` and `Authorization: Bearer $FLITO_API_KEY`.
## Recount segments (https://flito.ai/docs/reference/segment/segment_recount)
Recount segments now and store the counts with the time they were taken.
Required scopes: contacts:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.recount` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove from list (https://flito.ai/docs/reference/segment/segment_remove_members)
Take records out of a static list. The records themselves are untouched.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.remove_members` and `Authorization: Bearer $FLITO_API_KEY`.
## Update segment (https://flito.ai/docs/reference/segment/segment_update)
Rename, re-target, re-filter or change the channel of a saved segment. Recounts when the audience changes.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/segment.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Segment usage (https://flito.ai/docs/reference/segment/segment_usage)
The sequences, automations and unfinished campaigns that target a segment.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/segment.usage` and `Authorization: Bearer $FLITO_API_KEY`.
## Activate sequence (https://flito.ai/docs/reference/sequence/sequence_activate)
Set a sequence live (status active) so its enrollments process.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.activate` and `Authorization: Bearer $FLITO_API_KEY`.
## Create sequence (https://flito.ai/docs/reference/sequence/sequence_create)
Create a draft cold-outreach sequence with its ordered steps.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Enroll contacts (https://flito.ai/docs/reference/sequence/sequence_enroll)
Enroll the sequence's audience (its segment or filter target) or an explicit member list. Skips already-active members.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.enroll` and `Authorization: Bearer $FLITO_API_KEY`.
## Get sequence (https://flito.ai/docs/reference/sequence/sequence_get)
Fetch one sequence with its ordered steps.
Required scopes: sequences:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/sequence.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Get enrollment status (https://flito.ai/docs/reference/sequence/sequence_get_enrollment)
A sequence's enrollments (or one contact's), and per step how many sends left and how many of them were opened, clicked and replied to.
Required scopes: sequences:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/sequence.get_enrollment` and `Authorization: Bearer $FLITO_API_KEY`.
## List sequences (https://flito.ai/docs/reference/sequence/sequence_list)
List the workspace sequences with status + step count.
Required scopes: sequences:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/sequence.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Mark replied (https://flito.ai/docs/reference/sequence/sequence_mark_replied)
Record a reply against a send or enrollment and end the enrollment, so no further steps go out. Replies the inbox reads from a connected mailbox do this on their own; call it for a reply that came another way.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.mark_replied` and `Authorization: Bearer $FLITO_API_KEY`.
## Pause sequence (https://flito.ai/docs/reference/sequence/sequence_pause)
Pause a sequence and all its active enrollments; sequence.activate resumes them.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.pause` and `Authorization: Bearer $FLITO_API_KEY`.
## Preview audience (https://flito.ai/docs/reference/sequence/sequence_preview_audience)
Resolve a sequence target (a saved segment OR an inline all-condition filter over an object type) to its live member count + a sample. Powers the builder audience count.
Required scopes: sequences:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/sequence.preview_audience` and `Authorization: Bearer $FLITO_API_KEY`.
## Sequence stats (https://flito.ai/docs/reference/sequence/sequence_stats)
Per-step engagement (sent / opens / clicks / unsubs / replies) + the enrollment funnel for one sequence.
Required scopes: sequences:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/sequence.stats` and `Authorization: Bearer $FLITO_API_KEY`.
## Unenroll contact (https://flito.ai/docs/reference/sequence/sequence_unenroll)
Take a member out of a sequence: a running enrollment stops (or completes) and gets no more steps. What it was already sent stays on the record.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.unenroll` and `Authorization: Bearer $FLITO_API_KEY`.
## Update sequence (https://flito.ai/docs/reference/sequence/sequence_update)
Update a sequence name / status, or replace its steps.
Required scopes: sequences:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/sequence.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Create subscription topic (https://flito.ai/docs/reference/subscription/subscription_create_topic)
Create a subscription topic.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/subscription.create_topic` and `Authorization: Bearer $FLITO_API_KEY`.
## Get center (https://flito.ai/docs/reference/subscription/subscription_get_center)
A contact’s preference center: every active topic + the contact’s subscription state.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/subscription.get_center` and `Authorization: Bearer $FLITO_API_KEY`.
## List subscription topics (https://flito.ai/docs/reference/subscription/subscription_list_topics)
List the workspace’s subscription topics.
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/subscription.list_topics` and `Authorization: Bearer $FLITO_API_KEY`.
## Update preferences (https://flito.ai/docs/reference/subscription/subscription_update_preferences)
Set a contact’s topic subscriptions; appends consent events + syncs the global opt-out.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/subscription.update_preferences` and `Authorization: Bearer $FLITO_API_KEY`.
## Update topic (https://flito.ai/docs/reference/subscription/subscription_update_topic)
Update or archive a subscription topic.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/subscription.update_topic` and `Authorization: Bearer $FLITO_API_KEY`.
## Suppress address (https://flito.ai/docs/reference/suppression/suppression_add)
Manually suppress an address.
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/suppression.add` and `Authorization: Bearer $FLITO_API_KEY`.
## Import (https://flito.ai/docs/reference/suppression/suppression_import)
Bulk-suppress a list of addresses (CSV import; reason=manual).
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/suppression.import` and `Authorization: Bearer $FLITO_API_KEY`.
## List suppressions (https://flito.ai/docs/reference/suppression/suppression_list)
List the workspace suppression list (unsubscribes, bounces, complaints, manual).
Required scopes: email:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/suppression.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Un-suppress address (https://flito.ai/docs/reference/suppression/suppression_remove)
Remove an address from the suppression list (un-suppress).
Required scopes: email:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/suppression.remove` and `Authorization: Bearer $FLITO_API_KEY`.
## Apply interest tags (https://flito.ai/docs/reference/tag/tag_apply)
Apply deduped tags to a contact or company. Contact tags roll up to the company.
Required scopes: tags:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/tag.apply` and `Authorization: Bearer $FLITO_API_KEY`.
## Create interest tag (https://flito.ai/docs/reference/tag/tag_create)
Create or update a workspace-level interest tag definition.
Required scopes: tags:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/tag.create` and `Authorization: Bearer $FLITO_API_KEY`.
## List interest tags (https://flito.ai/docs/reference/tag/tag_list)
List managed and discovered interest tags for contacts and companies.
Required scopes: tags:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/tag.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Remove interest tags (https://flito.ai/docs/reference/tag/tag_remove)
Remove tags from a contact or company. Company rollups are recomputed from remaining contacts.
Required scopes: tags:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/tag.remove` and `Authorization: Bearer $FLITO_API_KEY`.
## Count tasks (https://flito.ai/docs/reference/task/task_aggregate)
Count tasks over the same filters task.list takes: total, To-do, Done, overdue, due today, by status and by priority.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/task.aggregate` and `Authorization: Bearer $FLITO_API_KEY`.
## Complete task (https://flito.ai/docs/reference/task/task_complete)
Mark a task complete.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/task.complete` and `Authorization: Bearer $FLITO_API_KEY`.
## Create task (https://flito.ai/docs/reference/task/task_create)
Create a task hung off any record, or standing alone.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/task.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete task (https://flito.ai/docs/reference/task/task_delete)
Delete a task for good (admins only). The change log keeps the version it had, so it can be restored.
Required scopes: contacts:admin.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/task.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## List tasks (https://flito.ai/docs/reference/task/task_list)
List tasks: a record's tasks, a person's, or the worklist. Filters (status or To-do/Done group, priority, source, assignee, overdue, due range, text search, the grid's filters), sort and paging all run server-side; rowCount is the total across pages.
Required scopes: contacts:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/task.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Reopen task (https://flito.ai/docs/reference/task/task_reopen)
Reopen a completed or cancelled task: it goes back to open and its completion time clears.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/task.reopen` and `Authorization: Bearer $FLITO_API_KEY`.
## Update task (https://flito.ai/docs/reference/task/task_update)
Patch a task record.
Required scopes: contacts:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/task.update` and `Authorization: Bearer $FLITO_API_KEY`.
## My view choices (https://flito.ai/docs/reference/user_preference/user_preference_list)
The signed-in person's own view choices: which view each list opens, their All records, tab order, table or board, columns and widths, grouping and pinned filters.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/user_preference.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Keep my view choices (https://flito.ai/docs/reference/user_preference/user_preference_set)
Keep or forget some of the signed-in person's own view choices, each with how long ago it was chosen; a stored value chosen later is kept. With onlyMissing, only keys they have nothing under yet are kept.
Required scopes: config:read.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/user_preference.set` and `Authorization: Bearer $FLITO_API_KEY`.
## Activate automation (https://flito.ai/docs/reference/workflow/workflow_activate)
Activate an automation workflow (it starts firing from now — no historical replay).
Required scopes: config:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/workflow.activate` and `Authorization: Bearer $FLITO_API_KEY`.
## Create automation (https://flito.ai/docs/reference/workflow/workflow_create)
Create an automation workflow: a trigger (record created/updated, event, segment enter/exit, schedule, manual), optional per-record filter conditions, and ordered capability action steps. Created paused unless enabled=true.
Required scopes: config:write.
May need confirmation, depending on the input: then send "approved": true, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/workflow.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Default alerts (https://flito.ai/docs/reference/workflow/workflow_default_alerts)
The default alerts (New deal, New contact): what each does and whether it is switched on.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workflow.default_alerts` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete automation (https://flito.ai/docs/reference/workflow/workflow_delete)
Delete an automation workflow (its run history is kept).
Required scopes: config:write.
Needs confirmation: with an API key, send "approved": true beside the input, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/workflow.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get automation (https://flito.ai/docs/reference/workflow/workflow_get)
Read one automation workflow by id (trigger, conditions, steps).
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workflow.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List automations (https://flito.ai/docs/reference/workflow/workflow_list)
List automation workflows (trigger → conditions → action steps) with last-run status and run counts.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workflow.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Pause automation (https://flito.ai/docs/reference/workflow/workflow_pause)
Pause an automation workflow (stops firing; manual run_now still works).
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workflow.pause` and `Authorization: Bearer $FLITO_API_KEY`.
## Dry-run automation (https://flito.ai/docs/reference/workflow/workflow_preview)
Dry-run an automation (saved, or the builder draft) over every record that matches it now: the match count, a page of records, and for each the steps that would run with their final inputs and who they would assign. Never writes.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workflow.preview` and `Authorization: Bearer $FLITO_API_KEY`.
## Retry automation run (https://flito.ai/docs/reference/workflow/workflow_retry_run)
Retry a failed automation run now, from the step that failed (the steps before it are not run again).
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workflow.retry_run` and `Authorization: Bearer $FLITO_API_KEY`.
## Run automation now (https://flito.ai/docs/reference/workflow/workflow_run_now)
Fire an automation manually, optionally against one record (its fields become {{record.*}} tokens). dryRun=true returns the interpolated step plan without executing anything.
Required scopes: config:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workflow.run_now` and `Authorization: Bearer $FLITO_API_KEY`.
## Automation run history (https://flito.ai/docs/reference/workflow/workflow_runs)
Paginated run history for one automation workflow, with per-step results.
Required scopes: config:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workflow.runs` and `Authorization: Bearer $FLITO_API_KEY`.
## Switch a default alert (https://flito.ai/docs/reference/workflow/workflow_set_default_alert)
Switch a default alert on or off. The first time on, its workflow is made; after that it is only switched, so edits to it are kept.
Required scopes: config:write.
May need confirmation, depending on the input: then send "approved": true, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/workflow.set_default_alert` and `Authorization: Bearer $FLITO_API_KEY`.
## Update automation (https://flito.ai/docs/reference/workflow/workflow_update)
Update an automation workflow (name, trigger, conditions, steps, enabled).
Required scopes: config:write.
May need confirmation, depending on the input: then send "approved": true, or it answers 409 APPROVAL_REQUIRED.
Call it with `POST $FLITO_URL/api/cap/workflow.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Create brand (https://flito.ai/docs/reference/workspace_brand/workspace_brand_create)
Create a workspace brand.
Required scopes: workspace:admin.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace_brand.create` and `Authorization: Bearer $FLITO_API_KEY`.
## Delete brand (https://flito.ai/docs/reference/workspace_brand/workspace_brand_delete)
Delete a brand; its records become workspace-global.
Required scopes: workspace:admin.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace_brand.delete` and `Authorization: Bearer $FLITO_API_KEY`.
## Get brand (https://flito.ai/docs/reference/workspace_brand/workspace_brand_get)
Fetch one brand.
Required scopes: workspace:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workspace_brand.get` and `Authorization: Bearer $FLITO_API_KEY`.
## List brands (https://flito.ai/docs/reference/workspace_brand/workspace_brand_list)
List the workspace brands.
Required scopes: workspace:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workspace_brand.list` and `Authorization: Bearer $FLITO_API_KEY`.
## Update brand (https://flito.ai/docs/reference/workspace_brand/workspace_brand_update)
Rename or restyle a brand.
Required scopes: workspace:admin.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace_brand.update` and `Authorization: Bearer $FLITO_API_KEY`.
## Get workspace (https://flito.ai/docs/reference/workspace/workspace_get)
Fetch the workspace settings and what they resolve to: currency, time zone, theme, feature flags, credit budgets and the industry pack the workspace runs.
Required scopes: workspace:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workspace.get` and `Authorization: Bearer $FLITO_API_KEY`.
## Go live check (https://flito.ai/docs/reference/workspace/workspace_go_live_check)
Whether the workspace is ready to take the website live: the site key and allowed websites, the intake token, the default owner, the default alerts, the secret storage key, each integration credential, the visitor identification webhook address, and the last run of each scheduled job.
Required scopes: workspace:admin.
Read only.
Call it with `POST $FLITO_URL/api/cap/workspace.go_live_check` and `Authorization: Bearer $FLITO_API_KEY`.
## Set default owner (https://flito.ai/docs/reference/workspace/workspace_set_default_owner)
Set the person companies, deals and leads go to when they are created without an owner (website submissions included). Null clears it.
Required scopes: workspace:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace.set_default_owner` and `Authorization: Bearer $FLITO_API_KEY`.
## Workspace colour history (https://flito.ai/docs/reference/workspace/workspace_theme_history)
The sets of colours the workspace saved, newest first: when, who, and the colours (theme null is the default colours). Give one's id to workspace.update_theme as restore to bring it back.
Required scopes: workspace:read.
Read only.
Call it with `POST $FLITO_URL/api/cap/workspace.theme_history` and `Authorization: Bearer $FLITO_API_KEY`.
## Update workspace settings (https://flito.ai/docs/reference/workspace/workspace_update_settings)
Update the workspace currency, timezone and settings.
Required scopes: workspace:write.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace.update_settings` and `Authorization: Bearer $FLITO_API_KEY`.
## Set workspace colours (https://flito.ai/docs/reference/workspace/workspace_update_theme)
Set the workspace's own colours, light and dark apart, as hex: accent (buttons, links, selected rows, the focus ring), sidebar (or `page` for the page's own colour), sidebarText and chart (the series, first to last). Flito works out every other colour. A mode left out keeps its colours and null puts one colour back to the default; reset: true goes back to the default colours, restore: brings an earlier set back. Answers the colours saved and any text that would be hard to read.
Required scopes: workspace:admin.
Runs at once.
Call it with `POST $FLITO_URL/api/cap/workspace.update_theme` and `Authorization: Bearer $FLITO_API_KEY`.