## Definitions **get** `/v1/accounts/definitions` Returns the schema for all field and relationship definitions available on accounts, including both system-defined and custom fields. Useful for understanding the shape of account data before creating or updating records. See [Fields and relationships](/using-the-api/fields-and-relationships/) for more details. **[Required scope](/using-the-api/scopes/):** `accounts:read` **[Rate limit category](/using-the-api/rate-limits/):** Read ### Returns - `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. - `description: string` Description of the field, or null. - `label: string` Human-readable display name of the field. - `typeConfiguration: map[string or number or boolean or 2 more]` Type-specific configuration (e.g. select options, currency code). - `UnionMember0 = string` - `UnionMember1 = number` - `UnionMember2 = boolean` - `UnionMember3 = array of string or number or boolean or 2 more` - `UnionMember0 = string` - `UnionMember1 = number` - `UnionMember2 = boolean` - `UnionMember3 = array of unknown` - `UnionMember4 = map[unknown]` - `UnionMember4 = map[string or number or boolean or 2 more]` - `UnionMember0 = string` - `UnionMember1 = number` - `UnionMember2 = boolean` - `UnionMember3 = array of unknown` - `UnionMember4 = map[unknown]` - `valueType: "ADDRESS" or "CHECKBOX" or "CURRENCY" or 11 more` Data type of the field. - `"ADDRESS"` - `"CHECKBOX"` - `"CURRENCY"` - `"DATETIME"` - `"EMAIL"` - `"FULL_NAME"` - `"MARKDOWN"` - `"MULTI_SELECT"` - `"NUMBER"` - `"SINGLE_SELECT"` - `"SOCIAL_HANDLE"` - `"TELEPHONE"` - `"TEXT"` - `"URL"` - `id: optional string` Unique identifier of the field definition. - `readOnly: optional boolean` `true` for fields that are not writable via the API (e.g. AI-generated summaries). `false` or absent for writable fields. - `objectType: string` The object type these definitions belong to (e.g. `account`). - `relationshipDefinitions: map[object { cardinality, description, label, 2 more } ]` Map of relationship keys to their definitions. - `cardinality: "HAS_ONE" or "HAS_MANY"` Whether this is a `has_one` or `has_many` relationship. - `"HAS_ONE"` - `"HAS_MANY"` - `description: string` Description of the relationship, or null. - `label: string` Human-readable display name of the relationship. - `objectType: string` The type of the related object (e.g. `account`, `contact`). - `id: optional string` Unique identifier of the relationship definition. ### Example ```http curl https://api.lightfield.app/v1/accounts/definitions \ -H 'Lightfield-Version: 2026-03-01' \ -H "Authorization: Bearer $API_KEY" ```