Create custom API which will call another third-party API

I would like to create a custom API to handle form submission which will execute some code and then call third party API such as AWS Pinpoint to send emails. Is this possible in latest Ghost? If yes, how? thanks in advance.