## Definitions `account.definitions() -> AccountDefinitionsResponse` **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 - `class AccountDefinitionsResponse: …` - `field_definitions: Dict[str, FieldDefinitions]` Map of field keys to their definitions, including both system and custom fields. - `description: Optional[str]` Description of the field, or null. - `label: str` Human-readable display name of the field. - `type_configuration: Dict[str, Union[str, float, bool, 3 more]]` Type-specific configuration (e.g. select options, currency code). - `str` - `float` - `bool` - `List[Union[str, float, bool, 3 more]]` - `str` - `float` - `bool` - `List[Optional[object]]` - `Dict[str, object]` - `Dict[str, Union[str, float, bool, 3 more]]` - `str` - `float` - `bool` - `List[Optional[object]]` - `Dict[str, object]` - `value_type: Literal["ADDRESS", "CHECKBOX", "CURRENCY", 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[str]` Unique identifier of the field definition. - `read_only: Optional[bool]` `true` for fields that are not writable via the API (e.g. AI-generated summaries). `false` or absent for writable fields. - `object_type: str` The object type these definitions belong to (e.g. `account`). - `relationship_definitions: Dict[str, RelationshipDefinitions]` Map of relationship keys to their definitions. - `cardinality: Literal["HAS_ONE", "HAS_MANY"]` Whether this is a `has_one` or `has_many` relationship. - `"HAS_ONE"` - `"HAS_MANY"` - `description: Optional[str]` Description of the relationship, or null. - `label: str` Human-readable display name of the relationship. - `object_type: str` The type of the related object (e.g. `account`, `contact`). - `id: Optional[str]` Unique identifier of the relationship definition. ### Example ```python from lightfield import Lightfield client = Lightfield( api_key="My API Key", ) account_definitions_response = client.account.definitions() print(account_definitions_response.field_definitions) ```