get_entity
Read one entity — its canonical name, aliases, mention count and merge lineage.
async fn get_entity(&self, entity_id: &str) -> Result<EntityDetail, BrainHttpError>async fn get_entity(&self, request: &EntityGetRequest) -> Result<EntityGetResponse>Parameters
entity_idstringrequiredThe entity to read. Positional on the HTTP tier.
Returns
entity_idstringalwaysThe id.
entity_type_idintegeralwaysIts type, from the schema.
canonical_namestringalwaysThe entity's own name.
aliasesstring[]alwaysEvery other surface form that resolves here.
attributesstringThe opaque attribute blob, when one was set.
mention_countintegeralwaysHow many memories mention it.
merged_intostring | nullalwaysNon-null means this entity was merged away. Follow it to the survivor; reads against this id still work, which is what keeps old references valid.
resolved_fromstring[]alwaysThe entities merged into this one.
created_at_unix_nanos / updated_at_unix_nanos64-bit integeralwaysLifecycle timestamps.
Merging does not invalidate the merged entity's id. A caller holding an old
id gets a successful read with mergedInto set, rather than a 404 — so
stored references keep working. Follow mergedInto when you need the
current entity.
On the wire
Ids are fixed-width UUID bytes rather than strings, attributes is an opaque
attributesBlob, and every request carries a requestId plus an optional
actAs. See Wire client.
Was this page helpful?