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
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"}}'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
idand only the fields that change.nullclears a field. - Custom fields go in
properties, keyed by the field'skey(see discover). lifecycleStageislead,prospectorcustomer.
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 CONFLICTand 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.
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
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.completeandtask.reopenchange its status;task.listfinds them by owner, record or due date.activity.logadds an entry to a record's timeline: acall,meeting,note,emailand other kinds, withsubject,bodyandoccurredAt.comment.createadds a comment for colleagues.
Tags and links
tag.applyadds interest tags to a company or contact:{"objectType": "contact", "objectId": "con_…", "tags": ["pricing"]}.record.associatelinks two records with an optional label, such as a contact to a second company.record.associationslists a record's links.record_contact.addnames 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.unarchivebrings it back. - Delete (
company.delete,contact.delete,deal.delete) removes it, and needs the area'sadminscope. 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
| Capability | What it does | Kind |
|---|---|---|
| activity.delete | Delete activity | write, needs approval |
| activity.list | List activities | read |
| activity.log | Log activity | write |
| activity.update | Edit activity | write |
| address.associate | Link existing address | write |
| address.create | Add address | write |
| address.delete | Remove address | write |
| address.list | Search addresses | read |
| address.update | Edit address | write |
| comment.create | Add a comment | write |
| comment.delete | Delete a comment | write, needs approval |
| comment.list | List comments | read |
| company.archive | Archive company | write, needs approval |
| company.create | Create company | write |
| company.delete | Delete company | write, needs approval |
| company.fill_types | Fill company types | write |
| company.get | Get company | read |
| company.list | List companies | read |
| company.merge | Merge companies | write, needs approval |
| company.summary | Company summary | read |
| company.unarchive | Unarchive company | write, needs approval |
| company.update | Update company | write |
| contact.archive | Archive contact | write, needs approval |
| contact.create | Create contact | write |
| contact.delete | Delete contact | write, needs approval |
| contact.enrich | Enrich contacts | write |
| contact.get | Get contact | read |
| contact.list | List contacts | read |
| contact.lookup_emails | Lookup emails | read |
| contact.merge | Merge contacts | write, needs approval |
| contact.unarchive | Unarchive contact | write, needs approval |
| contact.update | Update contact | write |
| custom_field.create | Create custom field | write |
| custom_field.delete | Delete custom field | write |
| custom_field.list | List custom fields | read |
| custom_field.purge | Delete custom field now | write |
| custom_field.rename_group | Rename custom field group | write |
| custom_field.reorder | Reorder custom fields | write |
| custom_field.restore | Restore custom field | write |
| custom_field.set_values | Set custom field values | write |
| custom_field.update | Update custom field | write |
| custom_field.value_counts | Count custom field values | read |
| deal.create | Create deal | write |
| deal.delete | Delete deal | write, needs approval |
| deal.duplicate | Duplicate deal | write |
| deal.forecast | Pipeline forecast | read |
| deal.get | Get deal | read |
| deal.group_by | Deals by stage | read |
| deal.list | List deals | read |
| deal.products_list | Deal products | read |
| deal.products_save | Save deal products | write |
| deal.update | Update deal | write |
| deal.update_stage | Move deal stage | write |
| dedupe.check | Check for duplicates | read |
| lead.convert | Convert lead to deal | write |
| lead.create | Create lead | write |
| lead.delete | Delete leads | write, needs approval |
| lead.get | Get lead | read |
| lead.group_by | Leads by category | read |
| lead.list | List leads | read |
| lead.update | Update lead | write |
| pipeline.create | Create pipeline | write |
| pipeline.delete | Delete pipeline | write |
| pipeline.get | Get pipeline | read |
| pipeline.list | List pipelines | read |
| pipeline.reorder | Reorder pipelines | write |
| pipeline.update | Update pipeline | write |
| record_contact.add | Add a key contact | write |
| record_contact.list | List key contacts | read |
| record_contact.remove | Remove a key contact | write |
| record_contact.set_role | Change a key contact’s role | write |
| record_detail.create | Add a detail | write |
| record_detail.delete | Remove a detail | write |
| record_detail.list | List additional details | read |
| record_detail.update | Edit a detail | write |
| record_link.create | Add a link | write |
| record_link.delete | Remove a link | write |
| record_link.list | List links | read |
| record_link.update | Edit a link | write |
| record.addresses | List associated addresses | read |
| record.associate | Associate records | write |
| record.associations | List record associations | read |
| record.group_counts | Count records per value | read |
| record.unassociate | Remove association | write |
| tag.apply | Apply interest tags | write |
| tag.create | Create interest tag | write |
| tag.list | List interest tags | read |
| tag.remove | Remove interest tags | write |
| task.aggregate | Count tasks | read |
| task.complete | Complete task | write |
| task.create | Create task | write |
| task.delete | Delete task | write, needs approval |
| task.list | List tasks | read |
| task.reopen | Reopen task | write |
| task.update | Update task | write |
Was this page useful?