Custom API for CSV?

Hello,

I may have a case where I will need to make our event data available to new service.

They appear to have fixed fields for things, like “event_title”, and expect the incoming column headers to match. However, on the default CSV feed at /live/csv/events/, the column names don’t all line up. The service doesn’t appear to have a mapping feature.

There’s potential to bridge through Google Sheets, with its own benefits/risks. If I had to, but I’d rather not for the risk of breaking.

What seems to me a cleaner approach would be a custom API defined in LiveWhale to output the exact names and data the service needs, accessed through something like /live/csv-m/events/.

Does an option to develop a custom API like this exist? If so, are there any examples or documentation for doing so? If not, then I have to look at other options for this problem, like Sheets.

Thanks,
Nick

I think you can probably customize the csv to your needs using a custom module with the onCSVOutput handler.