[api] add support for a text/csv MIME type