Account
Accounts represent companies or organizations in Lightfield. Each account can have contacts, opportunities, tasks, and notes associated with it.
Get account field definitions
Get field value history
Create an account
Update an account
Retrieve an account
List accounts
Delete an account
ModelsExpand Collapse
AccountCreateResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
AccountDefinitionsResponse object { fieldDefinitions, objectType, relationshipDefinitions }
fieldDefinitions: map[object { description, label, typeConfiguration, 3 more } ]Map of field keys to their definitions, including both system and custom fields.
Map of field keys to their definitions, including both system and custom fields.
typeConfiguration: object { currency, handleService, multipleValues, 2 more } Type-specific configuration (e.g. select options, currency code).
Type-specific configuration (e.g. select options, currency code).
AccountDeleteResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
AccountFieldHistoryResponse object { data, hasMore, nextCursor }
data: array of object { displayValue, isCreate, recordedAt, 2 more } Recorded values for the field, newest first.
Recorded values for the field, newest first.
Human-readable rendering of the value (e.g. a select option label), suitable for display.
True for the record’s original value. Only set when the full history fits in the response (never on a truncated/paginated page).
AccountListResponse object { data, object, totalCount }
data: array of object { id, createdAt, fields, 4 more } Array of entity objects for the current page.
Array of entity objects for the current page.
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
AccountRetrieveResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
AccountUpdateResponse object { id, createdAt, fields, 4 more }
fields: map[object { value, valueType } ]Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.