Start with the rule: whether a value belongs in a layout area or a custom field, and the cases where the usual rule of thumb breaks. Then define a field in the admin, with its input type, validation and default, and check which records accept one at all. The unit ends with reading custom fields in both template engines and in an API response, including what an empty or misspelt field returns.

Writing custom fields through the API is covered in the APIs guide, on Custom fields.