use Text instead of ByteString in API response