Describe an entity's fields
civicrm_get_fieldsThe fields of one CiviCRM entity (Contact, Contribution, Event, ...) including custom fields: name, label, data type, whether required, and the allowed options for a pick-list field. Use it to find the right field names for civicrm_query and the right option names for the filters and write tools. APIv4 .getFields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | Only this field, with its options (e.g. contribution_status_id). | |
| action | No | The action the fields are for (default get). | |
| entity | Yes | APIv4 entity name, e.g. Contact. |