API call doesn't return text/csv format

You have to provide an “Accept” HTTP request header which tells the Graylog REST API what kind of media type you want as response.