API endpoint to create invite links has moved to /invites.json

And twice it referred to the data explorer plugin, which is also the answer here, but maybe you need to know that you can Run Data Explorer queries with the Discourse API