Create an account
Creates a new account record. The $name field is required.
If a $website is provided, Lightfield automatically enriches the account in the background. The $howTheyMakeMoney and $accountStatus fields are read-only and cannot be set via the API. The $opportunity, $task, and $note relationships are also read-only — manage them via the $account relationship on the opportunity or task, or the $account/$opportunity note relationships instead.
Supports idempotency via the Idempotency-Key header.
To avoid duplicates, we recommend a find-or-create pattern — use list filtering to check if a record exists before creating.
Required scope: accounts:create
Rate limit category: Write
Parameters
Field values for the new account. System fields use a $ prefix (e.g. $name, $website); custom attributes use their bare slug (e.g. tier, renewalDate). Required: $name (string). Fields of type SINGLE_SELECT or MULTI_SELECT accept either an option ID or label from the field’s typeConfiguration.options — call the definitions endpoint to discover available fields and options. See Fields and relationships for value type details.
Relationships to set on the new account. System relationships use a $ prefix (e.g. $owner, $contact); custom relationships use their bare slug. Each value is a single entity ID or an array of IDs. Call the definitions endpoint to list available relationship keys.
Create an account
lightfield account create \
--api-key 'My API Key' \
--fields '{$name: $name}'{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}