Sign up a new auth user
Changed onCreate a new end-user account. The project is determined from the anon key. Requires project-specific anon key in Authorization header.
Session-less: signup never issues a session. On success it returns a uniform acknowledgement (AuthSignupResponse) with no tokens; the client obtains a session with a subsequent POST /auth/signin. If email confirmation is enabled for the project, a confirmation email is sent and confirmation_required is true.
Anti-enumeration: a signup for an already-registered email returns the exact same 201 response as a fresh signup — it never returns 409 — so the response cannot be used to discover which emails are registered.
Request
- Base URLhttps://api.volcano.dev
- AuthHTTP bearer
Headers
Trusted server-side auth proxy credential in Bearer SERVICE_KEY form. When supplied, X-Volcano-Client-IP is also required. The service key must belong to the anon key's project and hold this operation's scope: auth.signup for signup and anonymous signup, auth.signin for signin and OAuth code exchange, auth.refresh for refresh, auth.logout for logout, and auth.password_reset for forgot-password and reset-password. The password policy accepts any service key for the project. Never expose a service key to browser code.
Original browser IPv4 or IPv6 address supplied by a trusted server-side auth proxy. The proxy must derive this value from its platform-verified request metadata, never from a browser-supplied header. Requires a valid X-Volcano-Proxy-Authorization header.
Request body
Password validated after NFC normalization against the policy returned by GET /auth/password-policy.
Response
Signup acknowledged (session-less). Returned identically for a new account and for an already-registered email (anti-enumeration).
Uniform, session-less response returned by POST /auth/signup. It carries no tokens and no user object, and is identical for a new account and for an already-registered email (anti-enumeration). Clients obtain a session with a subsequent POST /auth/signin.
Whether the project requires email confirmation. Reflects project config only (identical for a new and an existing email), so it leaks nothing about account existence.
Human-readable acknowledgement.
Changes
- info
added the new optional
headerrequest parameterX-Volcano-Client-IP - info
added the new optional
headerrequest parameterX-Volcano-Proxy-Authorization
- info
- breaking
the response's body type changed from no type to
objectfor status
5 more changes in this revision
- breaking