Is there a back-end API where I can manage all of the users and their permissions automatically?

You probably want to use discourse_connect so that your website can manage Discourse logins. If it’s WordPress, then it’s easy (just use wp-discourse); if it’s something else, then you’ll want to implement discourse_connect on your site.