Adding direction to API output for peers.