Appearance
Sign up and onboarding
Who: guest → listener (or creator, by the account type chosen in the wizard).
Entry points
| Kind | Entry |
|---|---|
| REST | POST /auth/sign-up, POST /auth/resend-code, POST /auth/verify-email, POST /auth/sign-in, POST /auth/oidc, POST /auth/oidc/link/send-code, POST /auth/oidc/link, POST /auth/refresh |
| REST (wizard) | GET /wizards/user_onboarding, PUT /wizards/user_onboarding/steps/:key, POST /wizards/user_onboarding/skip, /back, /complete |
| REST (setup) | GET /me/consents/pending, POST /me/consents, GET /handles/suggestions, GET /handles/:handle/availability, POST /media/uploads (avatar, cover), PUT /me/devices/current/tokens, POST /me/attribution |
| Lookups | GET /v1/lookups/countries, age-ranges, genders, genres, moods |
| Deep link | signIn, verifyEmail; a link opened before sign-in (referral, affiliate, gift, …) is kept and opened after |
| 6-digit sign-up code |
Flow
POST /auth/sign-up { email, password }always answers{ status: "accepted" }(no enumeration) and emails a code.POST /auth/verify-email { email, code, device }creates the user and session, binds the device, and returns{ user, tokens }. Google/Apple:POST /auth/oidcinstead; an email that already exists links through/auth/oidc/link/send-code+/auth/oidc/link.- Right after sign-in the app sends any held referral or affiliate code to
POST /me/attribution(see Referral and affiliate), registers push tokens, and asks forrealtime-token(POST /auth/realtime-token) for sockets. GET /me/consents/pending→POST /me/consentsfor each required legal version.- Onboarding wizard (
user_onboarding). Each step's done state is derived from saved data, so it resumes on any device:
| Step | Required | Saves |
|---|---|---|
select_account_type | yes | profile type (listener, artist, DJ, producer, podcaster …) |
name | yes | given, family and display name, optional handle |
genre | yes | at least three genres |
profile_image | no | avatar asset (upload first through media) |
Everything else (bio, moods, cover, artist details, wallet) is edited from the profile and studio later. Render whatever steps[] the server returns.
POST /wizards/user_onboarding/completestamps completion.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Signed in, wizard complete | — | — | Open home, or the deep link kept from before sign-in |
| Wrong or expired code | AUTH_CODE_INVALID | — | Offer resend |
| Too many attempts | AUTH_TOO_MANY_ATTEMPTS | wait | Disable for retryAfterSeconds |
| Bad credentials | AUTH_INVALID_CREDENTIALS | — | Show the title |
| Right password, email not verified yet | AUTH_EMAIL_UNVERIFIED | verify_email | POST /auth/resend-code, then the code screen |
| Account deactivated | AUTH_ACCOUNT_DEACTIVATED | — | Offer POST /auth/reactivate/send-code |
| Suspended | SAFETY_ACCOUNT_SUSPENDED / SAFETY_ACCOUNT_BANNED | open settings, contact_support | Show the standing screen |
| Google/Apple token invalid | AUTH_OIDC_INVALID, AUTH_OIDC_EMAIL_REQUIRED, AUTH_OIDC_EMAIL_UNVERIFIED | — | Fall back to email |
| Handle taken | HANDLE_TAKEN, HANDLE_RESERVED, HANDLE_COOLDOWN | — | Show suggestions |
| Required step missing at complete | WIZARD_INCOMPLETE | — | Jump to the first missing step |
| Already completed | WIZARD_COMPLETED | — | Go home |
Notifications
None during sign-up. security.new_sign_in is seeded for new-device alerts but is never sent (I5).
Known gaps
- No user 2FA or breached-password check (I16).