It's easy enough using Insert from URL in FM16
how many insert from url do I need.?
I first have to authenticate, then send the message.
One for each API call or one that does all of them. Depends on how you want to write the script and how the UI works.