Flito docs

Records

Companies, contacts, deals, leads, tasks, notes, custom fields, tags and how they link.

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 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"}}'
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).
  • lifecycleStage is lead, prospect or customer.

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

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.

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

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.
  • 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

These need approval

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

Every change to a company, contact or deal is a version in its history, with who made it. See history and undo.

Capabilities

CapabilityWhat it doesKind
activity.deleteDelete activitywrite, needs approval
activity.listList activitiesread
activity.logLog activitywrite
activity.updateEdit activitywrite
address.associateLink existing addresswrite
address.createAdd addresswrite
address.deleteRemove addresswrite
address.listSearch addressesread
address.updateEdit addresswrite
comment.createAdd a commentwrite
comment.deleteDelete a commentwrite, needs approval
comment.listList commentsread
company.archiveArchive companywrite, needs approval
company.createCreate companywrite
company.deleteDelete companywrite, needs approval
company.fill_typesFill company typeswrite
company.getGet companyread
company.listList companiesread
company.mergeMerge companieswrite, needs approval
company.summaryCompany summaryread
company.unarchiveUnarchive companywrite, needs approval
company.updateUpdate companywrite
contact.archiveArchive contactwrite, needs approval
contact.createCreate contactwrite
contact.deleteDelete contactwrite, needs approval
contact.enrichEnrich contactswrite
contact.getGet contactread
contact.listList contactsread
contact.lookup_emailsLookup emailsread
contact.mergeMerge contactswrite, needs approval
contact.unarchiveUnarchive contactwrite, needs approval
contact.updateUpdate contactwrite
custom_field.createCreate custom fieldwrite
custom_field.deleteDelete custom fieldwrite
custom_field.listList custom fieldsread
custom_field.purgeDelete custom field nowwrite
custom_field.rename_groupRename custom field groupwrite
custom_field.reorderReorder custom fieldswrite
custom_field.restoreRestore custom fieldwrite
custom_field.set_valuesSet custom field valueswrite
custom_field.updateUpdate custom fieldwrite
custom_field.value_countsCount custom field valuesread
deal.createCreate dealwrite
deal.deleteDelete dealwrite, needs approval
deal.duplicateDuplicate dealwrite
deal.forecastPipeline forecastread
deal.getGet dealread
deal.group_byDeals by stageread
deal.listList dealsread
deal.products_listDeal productsread
deal.products_saveSave deal productswrite
deal.updateUpdate dealwrite
deal.update_stageMove deal stagewrite
dedupe.checkCheck for duplicatesread
lead.convertConvert lead to dealwrite
lead.createCreate leadwrite
lead.deleteDelete leadswrite, needs approval
lead.getGet leadread
lead.group_byLeads by categoryread
lead.listList leadsread
lead.updateUpdate leadwrite
pipeline.createCreate pipelinewrite
pipeline.deleteDelete pipelinewrite
pipeline.getGet pipelineread
pipeline.listList pipelinesread
pipeline.reorderReorder pipelineswrite
pipeline.updateUpdate pipelinewrite
record_contact.addAdd a key contactwrite
record_contact.listList key contactsread
record_contact.removeRemove a key contactwrite
record_contact.set_roleChange a key contact’s rolewrite
record_detail.createAdd a detailwrite
record_detail.deleteRemove a detailwrite
record_detail.listList additional detailsread
record_detail.updateEdit a detailwrite
record_link.createAdd a linkwrite
record_link.deleteRemove a linkwrite
record_link.listList linksread
record_link.updateEdit a linkwrite
record.addressesList associated addressesread
record.associateAssociate recordswrite
record.associationsList record associationsread
record.group_countsCount records per valueread
record.unassociateRemove associationwrite
tag.applyApply interest tagswrite
tag.createCreate interest tagwrite
tag.listList interest tagsread
tag.removeRemove interest tagswrite
task.aggregateCount tasksread
task.completeComplete taskwrite
task.createCreate taskwrite
task.deleteDelete taskwrite, needs approval
task.listList tasksread
task.reopenReopen taskwrite
task.updateUpdate taskwrite

Was this page useful?

On this page