Create Invite api not sending emails

I would try with an administrative API key for your username.
Via API you should be able to get the same behavior as via UI.