but this only returns the machine-readable fingerprints. How can I obtain the human-readable names someone may have specified in the wallet?
are they located somewhere in a file?
Unfortunately, we don’t have a direct RPC call to show the same info as the chia keys label show CLI command. The reference wallet GUI obtains those labels from the OS keyring.
One way you can obtain this info is by connecting to the daemon over a websocket by using wscat:
Sorry but unfortunately you currently can only use wss if you need to obtain the labels. If you only need the fingerprints, you can use the get_public_keys RPC.