Automate APIs with Groovy Script