Get the form field schema of an entity type
GET /Platform/entities/schema/{entity_type}
Get the form field schema of an entity type.
This is the rich schema for building input forms (nested
child_fields, typeahead suggestions, widget metadata) and for
scaffolding a minimal YAML template. Each entry has: name,
kind, nullable, type_hint, title (the form label) and
required (non-nullable, no default, not read-only). A closed set
lists its enum_values, and enum_labels (value to display
label) when the field declares labels.
The full tree for a large entity runs to thousands of leaves, so narrow it instead of paging through it:
pathreturns ONE subtree by dotted field path (inbound_routing.rules.condition.time_window). A segment may live inside a union member (rules.action.initial_messagereaches theinvoke_agentvariant); such entries carryvariant. An unknown segment answers with the names available at that level.querysemantically searches every field in the tree ("greet differently by time of day") and returns the toplimithits, each with itspathandchild_field_names; follow up withpathto expand one.
Model introspection (fields, relationships, tools) is carried by
describe / the entity-graph response instead.
Path parameters
entity_type: str. Entity class name to return the form schema for.
Query parameters
path: optional str. Dotted field path to return the subtree of.query: optional str. Natural-language search over field paths, types and descriptions. Ignored whenpathis given.limit: optional int. Max hits forquery(default 20).
Returns
EntitySchemaResponse
entity_type: optional str or null. Entity class name.fields: optional List[dict]. Field entries: name, kind, nullable, type_hint, child_fields, and path on search hits; dtype (dtype name), union_dtypes, inner_primitive and read_only when they apply.default_search_fields: optional List[str]. Fields searched by default.computed_fields: optional List[dict] or null. Read-only derived fields (name, kind 'computed', read_only, description); values come in get's computed.path: optional str or null. The requested path; fields is then that subtree.query: optional str or null. The search query; fields is then the ranked hits.total: optional int or null. Number of fields searched, on a query.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/schema/{entity_type}" \
-H "Authorization: Bearer $HILUS_API_KEY"