Extend RestInput with additional data

For now REST Channel webhook returns a JSON array with responses from Rasa. Is it possible to include additional data like recognised intent and some flag that indicates a story ending?

To achieve this, you have to implement your own custom channel.