Create account only for e-mails registred in my external database

Searching the discourse codebase on github, I found an “approve_user” action e.g. put "/review/#{reviewable.id}/perform/approve_user.json". Looks like you might have to get the reviewables first in order to get the reviewalble id you need.