1. Docs
  2. API Reference
  3. OAuth hosted login: self-signup form submission

OAuth hosted login: self-signup form submission

POST/oauth/register

Hosted 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 Optional
code_challengestring Required
code_challenge_methodstring Required

Responses

200
Request
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"
  }'
Response
HTTP/1.1 200

(empty body)
Related endpoints Was this page helpful?

Tell us how we can improve this guide.