CRM leads
Leads from Rivil CRM. Replica, read-only: they are changed through the CRM.
Module: CRM (crm).
Endpoints
Section titled “Endpoints”GET /api/v1/crm_leads- List with filters, sorting and pagination (scopecrm:read)GET /api/v1/crm_leads/{id}- A record by id (scopecrm:read)POST /api/v1/crm_leads/{id}/convert- Turns a lead into a client, or links it to one with the same phone or email. (scopecrm:write, parties:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).funnel_id(string, uuid; read)assigned_to(string, uuid; read)full_name(string; read)phone(string; read)phone_key(string; read)email(string; read)birth_date(string, date; read)location(string; read)source(string; read)campaign(string; read)adset(string; read)ad(string; read)form_id(string; read)platform_lead_id(string; read)forms_completed(integer; read)lead_added_at(string, date-time; read)created_at(string, date-time; read): Creation date (ISO 8601).custom_fields(object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.last_entry_at(string, date-time; read)last_source(string; read)last_campaign(string; read)last_adset(string; read)last_ad(string; read)updated_at(string, date-time; read): Last modification date (ISO 8601).