Get an entity as a display card
GET /Platform/entities/{entity_type}/{entity_id}/block
Get an entity as a display card.
The card is what chat and the dashboard render for an entity: a
title, an optional subtitle, icon and accent from the type's display
contract (list_types), and up to max_fields fields with
their dtype names. Hidden fields are never included; nested
entities appear as {entity_type, id, summary} references and
media as {hash, content_type, url}. Read-only.
Path parameters
entity_type: str. Entity class name.entity_id: str. Entity id.
Query parameters
branch: optional str. Hilus branch (defaultmain).max_fields: optional int. Most fields on the card (default 8, at most 50).
Returns
EntityBlock
kind: optional str. Always 'entity'.entity_type: str. Entity class name.id: optional str or null. Entity id.title: optional str or null. The display title field's value, else the prettified type name.subtitle: optional str or null. The display subtitle field's value.icon: optional str or null. Icon name from the type's display contract.accent: optional str or null. success, warning, danger or neutral, from the display contract.fields: optional List[dict]. Card fields in display order: name, label, dtype (a dtype name, or entity_ref, entity_ref_list, datetime, boolean, integer, number, string, json), value, and emphasis on the emphasised one. Hidden fields are never present.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}/block" \
-H "Authorization: Bearer $HILUS_API_KEY"