format API fields as a comma-delimited list