Appearance
Identity
Accounts, sessions, devices, creator profiles and the staff world. All paths are under /v1. Responses are { data, meta }; errors are problem details. See Authentication & tokens for how the token worlds fit together.
Auth column: public needs no token (guest), user a platform access token, staff a staff token.
Sign-up and sign-in
| Method | Path | Auth | Notes |
|---|---|---|---|
| POST | /auth/sign-up | public | { email, password } (8–128 chars). Answers { status: "accepted" } whether or not the email exists. |
| POST | /auth/resend-code | public | Resends the 6-digit email code. |
| POST | /auth/verify-email | public | { email, code, device } → { user, tokens }. |
| POST | /auth/sign-in | public | { email, password, device } → { user, tokens }. |
| POST | /auth/oidc | public | Google or Apple ID token (nonce and audience checked) → { user, tokens }. |
| POST | /auth/oidc/link/send-code | public | Starts linking a provider to an existing email account. |
| POST | /auth/oidc/link | public | Confirms the link with the emailed code. |
| POST | /auth/refresh | public | { refreshToken } → a new token pair. Refresh tokens rotate; reuse ends the session. |
| POST | /auth/sign-out | user | Ends this session. |
| POST | /auth/sign-out-everywhere | user | Ends every session. |
| POST | /auth/password/forgot | public | Always accepted. |
| POST | /auth/password/reset | public | { email, code, newPassword }. |
| POST | /auth/password/change | user | { currentPassword, newPassword }. |
| POST | /auth/reactivate/send-code | public | For a deactivated account. |
| POST | /auth/reactivate | public | Confirms reactivation with the code. |
device is { key, platform: "ios" | "android" | "web", name?, appVersion? }, where key is stable per install and generated by the client.
tokens is { accessToken, refreshToken, tokenType: "Bearer", expiresIn }.
Account
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /me | user | The signed-in person. |
| PATCH | /me | user | Update name and settings. A verified name is locked (USER_NAME_LOCKED). |
| POST | /me/reauth-code | user | Sends a code for step-up re-authentication on sensitive changes. |
| POST | /me/deactivate | user | Deactivates the account. |
| GET | /me/export | user | Data export (GDPR/NDPR). |
| GET | /me/sessions | user | Active sessions. |
| DELETE | /me/sessions/:id | user | Ends one session. |
| GET | /me/devices | user | Registered devices. |
| PUT | /me/devices/current/tokens | user | Push tokens (FCM, APNs, VoIP) for the current device. |
| DELETE | /me/devices/:id | user | Removes a device. |
| POST | /me/heartbeat | user | Presence heartbeat. |
| GET | /me/identities | user | Linked sign-in providers. |
| POST | /me/identities | user | Links a provider. |
| DELETE | /me/identities/:provider | user | Unlinks one; the last sign-in method can't go (IDENTITY_LAST_LOGIN_METHOD). |
| GET | /me/preferences | user | Preferences. |
| PATCH | /me/preferences | user | Updates preferences. |
| — | /me/blocks, /me/mutes | user | List, add and remove blocked and muted people. |
Profiles and handles
One person may own several creator profiles (artist, DJ, producer, podcaster), separate from the listener account.
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /me/profiles | user | Profiles the caller owns. |
| POST | /me/profiles | user | Creates a profile. |
| GET | /handles/suggestions | public | Suggested handles. |
| GET | /handles/:handle/availability | public | Whether a handle is free. |
| GET | /profiles/by-handle/:handle | public | A published profile by handle. |
| GET | /profiles/:id | public | A published profile. |
| PATCH | /profiles/:id | user | Edits a profile the caller manages. |
| PUT | /profiles/:id/handle | user | Changes the handle. |
| POST | /profiles/:id/publish | user | Publishes the profile. |
| PUT | /profiles/:id/genres | user | Replaces genres. |
| PUT | /profiles/:id/moods | user | Replaces moods. |
| PUT / DELETE | /profiles/:id/links/:kind | user | Social and store links (kinds from the profile-link-kinds lookup). |
| PUT / DELETE | /profiles/:id/identifiers/:scheme | user | ISNI, IPI and store IDs; verified by staff. |
Consents and legal documents
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /legal | public | Published legal documents. |
| GET | /legal/:slug | public | The current version. |
| GET | /legal/:slug/versions/:version | public | A specific version. |
| GET | /me/consents | user | What the caller agreed to. |
| GET | /me/consents/pending | user | Versions still to accept. |
| POST | /me/consents | user | Records consent. |
Wizards
Resumable, step-by-step flows (onboarding and others). A step's done state is derived from data, so a wizard can be resumed on any device.
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /wizards/:wizard | user | Current state and steps. |
| PUT | /wizards/:wizard/steps/:key | user | Saves a step. |
| POST | /wizards/:wizard/skip | user | Skips an optional step. |
| POST | /wizards/:wizard/back | user | Goes back one step. |
| POST | /wizards/:wizard/complete | user | Finishes the wizard. |
Referrals
Referral codes, attribution and QR codes are documented in Referrals: GET/POST /me/referral, GET /me/referrals, GET/POST /me/attribution, POST /referrals/clicks, GET /referrals/:code/qr.svg.
Staff
Staff tokens are a separate world (audience plemuz-staff, 10-minute access tokens, MFA required). Every staff action is audited.
| Method | Path | Notes |
|---|---|---|
| POST | /staff/auth/login | Email and password; then MFA. |
| POST | /staff/auth/mfa/enroll | Enrols TOTP. |
| POST | /staff/auth/mfa/verify | Completes sign-in. |
| POST | /staff/auth/mfa/recover | Signs in with a recovery code. |
| POST | /staff/auth/mfa/recovery-codes | Issues new recovery codes. |
| POST | /staff/auth/refresh | Rotates the staff token pair. |
| POST | /staff/auth/logout | Ends the staff session. |
| GET | /staff/auth/me | The signed-in staff member. |
| POST | /staff/auth/password/change | Changes the staff password. |
| GET / POST | /staff/users | Lists and invites staff. |
| PATCH | /staff/users/:id | Changes role or status. |
| GET | /staff/audit | The audit log. |
| PUT | /staff/legal/:slug/draft | Drafts a legal document. |
| POST | /staff/legal/:slug/publish | Publishes it. |
| POST | /staff/legal/:slug/versions/:version/withdraw | Withdraws a version. |
| POST | /staff/profile-identifiers/:id/verify | Verifies a profile identifier. |
Platform endpoints
| Method | Path | Notes |
|---|---|---|
| GET | /.well-known/jwks.json | Public keys for verifying access tokens (kid rotation). |
| GET | /v1/client/config | Feature flags and the lookups version, with ETag. Works with an expired token. |
| GET | /v1/links/resolve?url= | Turns a share or deep link into a screen. See Deep links. |
| GET | /health, /ready | Liveness and readiness. |
Two-step verification, guests and security
| Method | Path | Auth | Notes |
|---|---|---|---|
| POST | /auth/sign-in | public | With two-step on, answers { mfaRequired: true, challengeToken, expiresAt, methods } instead of tokens. |
| POST | /auth/sign-in/mfa | public | { challengeToken, code? | recoveryCode? } → AuthResult. Challenge lasts 5 min, 5 tries. MFA_CODE_INVALID, MFA_CHALLENGE_INVALID. |
| GET | /me/mfa | user | { isEnabled, enabledAt, recoveryCodesRemaining }. |
| POST | /me/mfa/totp | user | Starts enrolment: { secret, otpauthUri }, shown once. MFA_ALREADY_ENABLED. |
| POST | /me/mfa/totp/confirm | user | { code } → { recoveryCodes } (10, single use, shown once). |
| POST | /me/mfa/recovery-codes | user | { code } → new { recoveryCodes }; old ones stop working. |
| POST | /me/mfa/disable | user | { code } or { recoveryCode }. |
| POST | /auth/guest | public (60/15 min/IP) | { deviceKey, platform, appVersion? } → { guestToken, guestDeviceId, expiresAt }. Send it as X-Guest-Token on public routes; a bad one is GUEST_TOKEN_INVALID (401). |
Passwords on sign-up, reset and change are checked against known breaches (HIBP range API, only a 5-character SHA-1 prefix leaves the server): AUTH_PASSWORD_BREACHED (422). An outage lets the password through.
Signing in on a device the account hasn't used before sends security.new_sign_in (critical, links to settings).
POST /me/deactivate refuses with ACCOUNT_DELETION_BLOCKED (409) while something must be settled first (such as a wallet balance); detail and actions say what.
Events: identity.profile.created, identity.profile.updated (public fields, isDiscoverable), identity.profile.deactivated (owner deactivated or deleted; reactivation sends updated).
Legal documents and acceptance
| Method | Path | Auth | Notes |
|---|---|---|---|
| GET | /legal | public, cached 5 min | Every published document: { slug, versionId, audience, requiresAcceptance, languageCode, bodySha256, title, body, version, isPublished, effectiveAt }. ?locale= or Accept-Language, English fallback. |
| GET | /legal/:slug | public, cached 5 min | The newest version in force, same shape. |
| GET | /legal/:slug/versions/:version | public | Exactly what someone accepted. |
| POST | /me/legal/acceptances | user | { versionIds: uuid[], source?, locale? }: several documents at once → 201 pending list. Records version, sha256, time, keyed IP hash, user agent, locale. |
| GET | /me/legal/pending | user | { required: [{ documentSlug, versionId, version, title, effectiveAt }] } (also at /me/consents/pending). |
| PATCH | /staff/legal/:slug | staff settings:manage | { requiresAcceptance?, audience? }. Drafts and publishing as before; publishing with requiresReacceptance notifies affected people (legal.update_required). |
POST /auth/sign-up now takes { email, password, confirmsMinimumAge: true, acceptedVersionIds, bornOn?, ageRangeCode?, locale? }; the published terms-of-use, privacy-policy and platform-rules must be among the ids (LEGAL_ACCEPTANCE_REQUIRED), and a date of birth under 13 is SIGN_UP_AGE_NOT_MET.
Slugs: privacy-policy, terms-of-use, platform-rules, third-party-licenses, marketing-communications, community-guidelines, copyright-policy, cookie-policy, subscription-terms, refund-policy, creator-agreement, distribution-agreement, mart-seller-terms, live-streaming-rules, ads-policy, affiliate-terms, payout-terms, fan-funding-terms. See Legal flow.
Staff console
| Method | Path | Permission | Notes |
|---|---|---|---|
| GET | /staff/auth/me | any staff | Now includes permissions: string[]. |
| GET | /staff/users | staff:manage | Cursor page (cursor, limit) with role, status=active|inactive, query (email or name). |
| GET | /staff/users/:id | staff:manage | Role, status, hasMfa, mfaEnrolledAt, lastLoginAt, live sessions (device, IP, user agent, created, last used, expires). |
| GET | /staff/roles | any staff | [{ role, permissions[] }] from the platform role map. |
| GET | /staff/legal/documents/:slug/versions | settings:manage | Cursor page of versions, status=draft|published|withdrawn. |
Additions for the native apps
- Profiles carry signed
avatarUrlandcoverUrlbeside their asset IDs; blocks and mutes rows carryavatarUrl. - Actions started from a profile resolve the person on the server, so public profiles never show a user ID:
POST /messaging/conversations/direct { profileId | handle | userId },POST /wallet/transfers { recipientProfileId | recipientHandle | recipientUserId },call:start { calleeProfileIds }. An unknown or inactive profile isPROFILE_NOT_FOUND.POST /me/blocksalready takes a profile ID astargetId. POST /auth/sign-inwith the right password on an email not yet verified answersAUTH_EMAIL_UNVERIFIED(403, actionverify_email: callPOST /auth/resend-code, thenPOST /auth/verify-email). A wrong password always answersAUTH_INVALID_CREDENTIALS, so the answer never tells anyone which emails exist.
Profiles for screens
GET /profiles/:idand/profiles/by-handle/:handleaddstats { followers, following, monthlyListeners|null, totalStreams|null }(listener profiles get null streams),viewer { isSelf, isFollowing, isBlocked, isBlockedBy, canMessage } | nullandpartyId.GET /people?userIds=a,b(signed in, up to 100) returns[{ userId, profileId, displayName, handle, avatarUrl, isVerified }]from each person's primary active profile, in the order asked. People blocked either way and inactive accounts are left out.- Step-up: see Wallet.
Artist screen and people
GET /profiles/:idand/profiles/by-handle/:handleaddstats { followers, following, monthlyListeners, totalStreams }(the last two null for listener profiles),viewer { isSelf, isFollowing, isBlocked, isBlockedBy, canMessage } | nullandpartyId.GET /people?userIds=a,b(signed in, up to 100) returns[{ userId, profileId, displayName, handle, avatarUrl, isVerified }]from each person's primary public profile, in the order asked. People blocked either way and inactive accounts are left out.