Describe the entity model, or search it by intent
GET /Platform/entities/entity-graph
Describe the entity model, or search it by intent. query
semantically searches EVERY entity type, field (including nested
paths such as
TelnyxPhoneNumber.inbound_routing.rules.action.initial_message),
and operational tool — including actuation capabilities that are not top-level tools, e.g. placing
agent-handled outbound voice phone calls (IVR/phone-tree
navigation), sending SMS/MMS text messages, sending faxes,
scheduling, payments, and records. If a top-level tool search finds
nothing for a task, search here first: tool hits return the exact
execute_tool invocation recipe.
Without query, drills into named entity types in full (fields,
relationships, tools) after the whole-model catalog has identified
the relevant ones. Each named type also carries display (how
clients title, list and card it), branch_promotable,
runtime (records that live on main and are never promoted from
a branch) and private_by_default (one a person creates without
a sharing choice is theirs alone), as list_types does for
every type.
This describes the entity model, not system storage metadata.
Per-entity access control exists even though _acl, _acl_write,
and _created_by are intentionally absent from the returned fields
and entity YAML. The get_acl operation reports an entity's owner
and effective ACL representation; set_acl makes it private,
org-visible, or shares/unshares principals. The server applies ACLs
to reads, enumeration, history, and writes; inaccessible entities
are omitted or reported as inaccessible.
Entity-valued fields use typed references of the form
{"entity_type": "Agent", "id": "..."}; bare ID strings do not
carry enough type information. Named type results also include an
allocation block. Check it before creation: it lists canonical
allocate parameters and flags real purchases, recurring cost, and
irreversible provider-side work.
Query parameters
names: optional str. Entity type names to describe. Each result is a TypeSchema: fields (with type_hint, description, enum_values, andtarget_typesedges to related entities) plus, wheninclude_tools, the type's tools.target_typesedges name related types that can be described in a follow-up call. If omitted, returns the whole-model catalog (names + summaries). Withquery,namesrestricts the searched corpus to those types.depth: optional int. How many relationship hops to expand from each named type.include_tools: optional bool. Include each type's tools in the result.query: optional str. Intent or name to search across all entity types, fields, and tools. An exact (case-insensitive) type /Type.member/ bare member name match returns those directly; otherwise semantic search runs. Results come back inmatches(typesstays empty) — each hit names its entity type, nested-field hits carrypath(expand withform_schema(entity_type, path=...)), and tool hits carry aninvoke_viarecipe.limit: optional int. Max hits whenqueryis set (default 10).
Returns
EntityGraphResponse
types: optional List[dict]. Type schemas: name, summary, fields (type_hint, description, enum_values, target_types), tools, allocation, display, branch_promotable, runtime, private_by_default. Empty when a query was given.matches: optional List[dict] or null. Ranked hits for a query: kind (entity_type, field or tool), entity_type, name, description, path, invoke_via.total: optional int or null. Size of the searched corpus, on a query.matched: optional int or null. Number of hits returned, on a query.unknown: optional List[str] or null. Requested names that are not entity types; the valid names are in entity_types.entity_types: optional List[str] or null. Valid entity type names, returned when some requested names are unknown.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/entity-graph" \
-H "Authorization: Bearer $HILUS_API_KEY"