This application allows external request of new accounts.
/ocs/v2.php/account/request/YOURTOKEN
with the {email: 'myawesomemail@nextcloud.com'}
data.
$.post('/ocs/v2.php/account/request/56300a2bf7e06894a5b59c1eb47f7460', {email:'myawesomemail@nextcloud.com'}).complete((response) => {
console.log(JSON.parse(response.responseText).data.setPassword)
})
OCS-APIREQUEST
header, you will be redirected to a nc://
url with valid app-password token for your application. If not, you will be logged and redirected to the home page.