protocol: change listEndpoints into a more general identity message