OAuth hosted login: self-signup form submission
/oauth/registerHosted self-signup submission. The underlying register call hard-gates on allow_self_signup, self_signup_require_captcha, the daily signup cap, and the origin check, and is anti-enumeration. On success the new identity is unverified, so the login page is rendered with a "check your email" notice and the OAuth parameters preserved; a gate failure re-renders the signup form with the error. Throttled to 10 requests per 15 minutes.
Request body
application/json
emailstring Required Identity email address
passwordstring Required Password for the new identity
first_namestring Optional First name
last_namestring Optional Last name
client_idstring Required redirect_uristring Required response_typestring Required scopestring Required statestring Required code_challengestring Required code_challenge_methodstring Required noncestring Optional captcha_tokenstring Optional The solved CAPTCHA, posted by the widget on the form when the Environment requires one.
Responses
text/html
stringapplication/json
error *ApiErrorBodyDto
text/html
stringapplication/json
error *ApiErrorBodyDto
Rate limit
10 requests per 15mPer caller: the signed-in user for a bearer token; for an API key, the key and the end user's address when a backend forwards it, otherwise the client address
curl -X POST "https://auth.canopy-io.com/oauth/register" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "password": "string", "first_name": "string", "last_name": "string", "client_id": "string", "redirect_uri": "string", "response_type": "string", "scope": "string", "state": "string", "code_challenge": "string", "code_challenge_method": "string", "nonce": "string", "captcha_token": "string" }'
Content-Type: text/html
<!doctype html>
<html lang="en">
<head>…</head>
<body>
<!-- The hosted page: its form, any error, and the Environment's branding -->
</body>
</html>Tell us how we can improve this guide.