I don’t have an example but you’d just make another view class that extends ApiView and sits alongside the other options. It would just need to serialize the data instead of json encoding it – and for a header you might send application/php but that’s not widely used so I’d also be happy to see text/plain given. Hope that helps