Get an entity as YAML

GET /Platform/entities/{entity_type}/{entity_id}

Get an entity as YAML.

Nested entities are always returned as {entity_type, id} stubs — the YAML format is designed for editing top-level fields only.

Fast path: if _cached_yaml is populated on the row, return it directly (no entity load, no to_yaml_string()). Falls back to full load + serialize when the cache column is NULL, and backfills the row so subsequent reads are fast.

Partial read: pass paths (one path or a JSON list) to return ONLY those field(s) instead of the whole entity. paths uses the SAME path selector search reports and edit/patch accept — a JSONPath ($.a.b) or a bare field (a.b / arr). Each path is resolved to its line span (nearest-ancestor fallback for list-index paths) and only that slice is returned in yaml_content. Several paths return ALL the requested slices, concatenated in request order (an unresolvable one is noted inline as # (no field at <path>)); a single path is additionally numbered from its full-view line so the numbers match search/edit coordinates exactly.

Reading a LARGE TEXT FIELD in full (e.g. a long prose or lines-typed field): a single-field paths read returns the whole field as clean line-numbered text in one call; search returns only matching lines, never the full field. Rendering an entity to a media format (pdf/docx/html) is done by running the type's export tool via execute_tool.

Response shape note: get returns the entity object at the TOP LEVEL; list wraps entities in {"items": [...], "total": n}.

Path parameters

Query parameters

Returns

EntityResponse

Example request

curl -X GET "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}" \
  -H "Authorization: Bearer $HILUS_API_KEY"