Authentication

Sign up a new auth user

Changed on

Create 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.

post/auth/signup

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Headers

X-Volcano-Proxy-Authorization, string

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.

X-Volcano-Client-IP, string

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

object required
email, string email required
password, string required

Password validated after NFC normalization against the policy returned by GET /auth/password-policy.

user_metadata, object

Response

Signup acknowledged (session-less). Returned identically for a new account and for an already-registered email (anti-enumeration).

AuthSignupResponse required

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.

confirmation_required, boolean required

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.

message, string required

Human-readable acknowledgement.

Changes

    • info

      added the new optional header request parameter X-Volcano-Client-IP

    • info

      added the new optional header request parameter X-Volcano-Proxy-Authorization

    • breaking

      the response's body type changed from no type to object for status

    5 more changes in this revision