List what a record uses and what uses it
GET /Platform/entities/{entity_type}/{entity_id}/links
List what a record uses and what uses it.
outgoing: the records it references, grouped by field (a
reference inside a model, such as a phone number's routing agent, is
grouped under that model's field). incoming: the records that
reference it, grouped by their type and field, each with its label.
Records of what happened (conversations, calls) are counted, not
listed. Only records you can read are returned. indexing names
types whose reference index is still being built.
Path parameters
entity_type: str. Entity class name.entity_id: str. The record's id.
Query parameters
branch: optional str. Hilus branch (defaultmain).limit_per_relation: optional int. Most records listed per incoming field (1-50, default 10).
Returns
EntityLinksResponse
outgoing: optional List[LinkGroup]. Records this one references, by field.incoming: optional List[LinkGroup]. Records that reference this one, by type and field.indexing: optional List[str]. Types whose reference index is still being built: older links from them may be missing.
Example request
curl -X GET "https://api.hilus.ai/Platform/entities/{entity_type}/{entity_id}/links" \
-H "Authorization: Bearer $HILUS_API_KEY"