All CRM endpoints are under the prefix
/api/brands/{brand}/crm/ and authenticate via EF-Access-Key.Entity Presets
Before creating a custom entity you can list and apply built-in presets (e.g. Leads, Contacts, Deals) which come pre-configured with pipelines and fields.cURL
Entities
Entities define the type of record tracked in the CRM (e.g. “Leads”, “Customers”). Each brand can have multiple entities.List Entities
cURL
Get Entity
pipelines (including stages) and fields loaded.
Create Entity
URL-safe identifier — lowercase alphanumeric, hyphens, underscores (e.g.
leads). Must be unique per brand.Optional preset key from Entity Presets. When set, pre-populates pipelines and fields.
cURL
Update Entity
Delete Entity
Pipelines
Pipelines belong to an entity and contain an ordered list of stages.List Pipelines
Get Pipeline
Create Pipeline
cURL
Update Pipeline
Delete Pipeline
Stages
Stages belong to a pipeline and represent progress steps (e.g. “Prospect → Qualified → Closed”).List Stages
Get Stage
Create Stage
Sort order (0-based integer). Use Reorder to batch-update positions.
cURL
Update Stage
Reorder Stages
cURL
Delete Stage
Custom Fields
Custom fields define the schema for entry data. Each entity has its own set of fields.List Fields
Get Field
Create Field
Slug key used in
values on entries (e.g. email). Lowercase alphanumeric + underscores.Optional reporting metadata. Supported keys:
reportable (boolean), aggregation_type (numeric, categorical, date, boolean), baseline (min/max numbers), bucket_size (positive number), and preferred_chart (kpi, histogram, pie, bar, line).cURL
Update Field
reporting_config.
Delete Field
Entries
Entries are the individual records in a CRM entity (e.g. a single lead or deal). They are stored and queried via Elasticsearch.List Entries
cURL
Get Entry
Create Entry
Flat key-value object of custom field values (e.g.
{"email": "jane@example.com", "lead_source": "Facebook"}). Keys must match a defined field key on the entity.cURL
Python
Update Entry
cURL — update values and reassign
Move Entry to Stage
Move an entry to a different stage within the same pipeline.cURL
Delete Entry
Delete Entries in Bulk
Up to 500 entry ids of this entity. Ids that belong to another entity or brand are ignored.
Response
Import Entries from a File
Two calls. The first reads a CSV or XLSX file and suggests a field per column; the second writes the rows, a batch at a time. Create any new fields with Create Field between the two: every key inmapping must already be a field of the entity.
A
.csv, .tsv, .txt or .xlsx file, at most 20 MB and 20,000 rows. The first row is the header row; for .xlsx, the first sheet is read.cURL
Response
action is existing when the header matches a field’s key or label (existing_key names it), skip for a column that is empty in every row, otherwise create. suggested.type is one of text, textarea, email, phone, url, number, date, datetime, boolean, select; for select, suggested.options holds the choices. choices lists the column’s distinct values (null above 50). The parsed file is kept for a day under its file_hash.
Rows (JSON):
[{ "index": 1, "key": "email" }, ...]: column index to field key. Columns left out are not imported.First data row to import (0-based). Start at 0, then send the
next_offset of the previous reply.A mapped field key (for example
email). A row whose value for it matches an existing entry of the entity (trimmed, not case sensitive) updates that entry instead of adding one: a filled cell replaces the stored value, an empty cell keeps it, and several-choices values are merged. Rows of the file that share a value end up as one entry, across calls too. Each call’s reply counts these rows in updated.Response
done is true. errors lists up to 20 failed rows per call as { "row": 14, "message": "..." }, where row is the line in the file (the header is line 1). Values are converted to the field type (numbers, yes / no, dates). Each call adds new entries, so sending the same offset twice imports those rows twice. Imported entries resolve contacts like any new entry, but do not fire stage automations or form.submitted webhooks. Errors: 422 with code file_missing (preview again), unknown_field (also for an upsert_by key that is not a mapped field), or a pipeline / stage validation error.
Automation: Create CRM Entry from Conversion
A common pattern is creating a CRM entry whenever a conversion is recorded. Using the EF automation pipeline or an external webhook:Python