getEntity
Read one entity — its canonical name, aliases, mention count and merge lineage.
getEntity(entityId: string): Promise<EntityDetail>getEntity(request: EntityGetRequest): Promise<EntityGetResponse>Parameters
entityIdstringrequiredThe entity to read. Positional on the HTTP tier.
Returns
entityIdstringalwaysThe id.
entityTypeIdintegeralwaysIts type, from the schema.
canonicalNamestringalwaysThe entity's own name.
aliasesstring[]alwaysEvery other surface form that resolves here.
attributesstringThe opaque attribute blob, when one was set.
mentionCountintegeralwaysHow many memories mention it.
mergedIntostring | 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.
resolvedFromstring[]alwaysThe entities merged into this one.
createdAtUnixNanos / updatedAtUnixNanos64-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?