There are two titles on detail pages the Title and Subtitle. The text for each one comes from a different source and needs to be accounted for in your API responses.
The subtitle is sourced from the Workflow name for the detail page in the Kleeen authoring tool. As demonstrated below.
The title comes from the backend as part of the GET query for the thing that is the scope of the workflow e.g a single Coffee Shop instance.
The following steps explain how to get the proper data for the title.
First, inside the code repository find the id of the thing whose get you want to implement by looking at the libs/common/utils/src/entity/entity-map.ts file in this case is 230858
Now implement the getEntity method in the API of the thing with the Coffee Shop id. In this case the id the file is apps/api/src/graphql/custom/entityResolvers/api230858.ts
The response to the query is the object with all of its keys, including one that describes itself as being the coffee shop Mocachino Dulce in this example: