Send a message to a custom API endpoint