Skip to content

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 ​

MethodPathAuthNotes
POST/auth/sign-uppublic{ email, password } (8–128 chars). Answers { status: "accepted" } whether or not the email exists.
POST/auth/resend-codepublicResends the 6-digit email code.
POST/auth/verify-emailpublic{ email, code, device } → { user, tokens }.
POST/auth/sign-inpublic{ email, password, device } → { user, tokens }.
POST/auth/oidcpublicGoogle or Apple ID token (nonce and audience checked) → { user, tokens }.
POST/auth/oidc/link/send-codepublicStarts linking a provider to an existing email account.
POST/auth/oidc/linkpublicConfirms the link with the emailed code.
POST/auth/refreshpublic{ refreshToken } → a new token pair. Refresh tokens rotate; reuse ends the session.
POST/auth/sign-outuserEnds this session.
POST/auth/sign-out-everywhereuserEnds every session.
POST/auth/password/forgotpublicAlways accepted.
POST/auth/password/resetpublic{ email, code, newPassword }.
POST/auth/password/changeuser{ currentPassword, newPassword }.
POST/auth/reactivate/send-codepublicFor a deactivated account.
POST/auth/reactivatepublicConfirms 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 ​

MethodPathAuthNotes
GET/meuserThe signed-in person.
PATCH/meuserUpdate name and settings. A verified name is locked (USER_NAME_LOCKED).
POST/me/reauth-codeuserSends a code for step-up re-authentication on sensitive changes.
POST/me/deactivateuserDeactivates the account.
GET/me/exportuserData export (GDPR/NDPR).
GET/me/sessionsuserActive sessions.
DELETE/me/sessions/:iduserEnds one session.
GET/me/devicesuserRegistered devices.
PUT/me/devices/current/tokensuserPush tokens (FCM, APNs, VoIP) for the current device.
DELETE/me/devices/:iduserRemoves a device.
POST/me/heartbeatuserPresence heartbeat.
GET/me/identitiesuserLinked sign-in providers.
POST/me/identitiesuserLinks a provider.
DELETE/me/identities/:provideruserUnlinks one; the last sign-in method can't go (IDENTITY_LAST_LOGIN_METHOD).
GET/me/preferencesuserPreferences.
PATCH/me/preferencesuserUpdates preferences.
—/me/blocks, /me/mutesuserList, 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.

MethodPathAuthNotes
GET/me/profilesuserProfiles the caller owns.
POST/me/profilesuserCreates a profile.
GET/handles/suggestionspublicSuggested handles.
GET/handles/:handle/availabilitypublicWhether a handle is free.
GET/profiles/by-handle/:handlepublicA published profile by handle.
GET/profiles/:idpublicA published profile.
PATCH/profiles/:iduserEdits a profile the caller manages.
PUT/profiles/:id/handleuserChanges the handle.
POST/profiles/:id/publishuserPublishes the profile.
PUT/profiles/:id/genresuserReplaces genres.
PUT/profiles/:id/moodsuserReplaces moods.
PUT / DELETE/profiles/:id/links/:kinduserSocial and store links (kinds from the profile-link-kinds lookup).
PUT / DELETE/profiles/:id/identifiers/:schemeuserISNI, IPI and store IDs; verified by staff.
MethodPathAuthNotes
GET/legalpublicPublished legal documents.
GET/legal/:slugpublicThe current version.
GET/legal/:slug/versions/:versionpublicA specific version.
GET/me/consentsuserWhat the caller agreed to.
GET/me/consents/pendinguserVersions still to accept.
POST/me/consentsuserRecords 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.

MethodPathAuthNotes
GET/wizards/:wizarduserCurrent state and steps.
PUT/wizards/:wizard/steps/:keyuserSaves a step.
POST/wizards/:wizard/skipuserSkips an optional step.
POST/wizards/:wizard/backuserGoes back one step.
POST/wizards/:wizard/completeuserFinishes 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.

MethodPathNotes
POST/staff/auth/loginEmail and password; then MFA.
POST/staff/auth/mfa/enrollEnrols TOTP.
POST/staff/auth/mfa/verifyCompletes sign-in.
POST/staff/auth/mfa/recoverSigns in with a recovery code.
POST/staff/auth/mfa/recovery-codesIssues new recovery codes.
POST/staff/auth/refreshRotates the staff token pair.
POST/staff/auth/logoutEnds the staff session.
GET/staff/auth/meThe signed-in staff member.
POST/staff/auth/password/changeChanges the staff password.
GET / POST/staff/usersLists and invites staff.
PATCH/staff/users/:idChanges role or status.
GET/staff/auditThe audit log.
PUT/staff/legal/:slug/draftDrafts a legal document.
POST/staff/legal/:slug/publishPublishes it.
POST/staff/legal/:slug/versions/:version/withdrawWithdraws a version.
POST/staff/profile-identifiers/:id/verifyVerifies a profile identifier.

Platform endpoints ​

MethodPathNotes
GET/.well-known/jwks.jsonPublic keys for verifying access tokens (kid rotation).
GET/v1/client/configFeature 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, /readyLiveness and readiness.

Two-step verification, guests and security ​

MethodPathAuthNotes
POST/auth/sign-inpublicWith two-step on, answers { mfaRequired: true, challengeToken, expiresAt, methods } instead of tokens.
POST/auth/sign-in/mfapublic{ challengeToken, code? | recoveryCode? } → AuthResult. Challenge lasts 5 min, 5 tries. MFA_CODE_INVALID, MFA_CHALLENGE_INVALID.
GET/me/mfauser{ isEnabled, enabledAt, recoveryCodesRemaining }.
POST/me/mfa/totpuserStarts enrolment: { secret, otpauthUri }, shown once. MFA_ALREADY_ENABLED.
POST/me/mfa/totp/confirmuser{ code } → { recoveryCodes } (10, single use, shown once).
POST/me/mfa/recovery-codesuser{ code } → new { recoveryCodes }; old ones stop working.
POST/me/mfa/disableuser{ code } or { recoveryCode }.
POST/auth/guestpublic (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).

MethodPathAuthNotes
GET/legalpublic, cached 5 minEvery published document: { slug, versionId, audience, requiresAcceptance, languageCode, bodySha256, title, body, version, isPublished, effectiveAt }. ?locale= or Accept-Language, English fallback.
GET/legal/:slugpublic, cached 5 minThe newest version in force, same shape.
GET/legal/:slug/versions/:versionpublicExactly what someone accepted.
POST/me/legal/acceptancesuser{ versionIds: uuid[], source?, locale? }: several documents at once → 201 pending list. Records version, sha256, time, keyed IP hash, user agent, locale.
GET/me/legal/pendinguser{ required: [{ documentSlug, versionId, version, title, effectiveAt }] } (also at /me/consents/pending).
PATCH/staff/legal/:slugstaff 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 ​

MethodPathPermissionNotes
GET/staff/auth/meany staffNow includes permissions: string[].
GET/staff/usersstaff:manageCursor page (cursor, limit) with role, status=active|inactive, query (email or name).
GET/staff/users/:idstaff:manageRole, status, hasMfa, mfaEnrolledAt, lastLoginAt, live sessions (device, IP, user agent, created, last used, expires).
GET/staff/rolesany staff[{ role, permissions[] }] from the platform role map.
GET/staff/legal/documents/:slug/versionssettings:manageCursor page of versions, status=draft|published|withdrawn.

Additions for the native apps ​

  • Profiles carry signed avatarUrl and coverUrl beside their asset IDs; blocks and mutes rows carry avatarUrl.
  • 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 is PROFILE_NOT_FOUND. POST /me/blocks already takes a profile ID as targetId.
  • POST /auth/sign-in with the right password on an email not yet verified answers AUTH_EMAIL_UNVERIFIED (403, action verify_email: call POST /auth/resend-code, then POST /auth/verify-email). A wrong password always answers AUTH_INVALID_CREDENTIALS, so the answer never tells anyone which emails exist.

Profiles for screens ​

  • GET /profiles/:id and /profiles/by-handle/:handle add stats { followers, following, monthlyListeners|null, totalStreams|null } (listener profiles get null streams), viewer { isSelf, isFollowing, isBlocked, isBlockedBy, canMessage } | null and partyId.
  • 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/:id and /profiles/by-handle/:handle add stats { followers, following, monthlyListeners, totalStreams } (the last two null for listener profiles), viewer { isSelf, isFollowing, isBlocked, isBlockedBy, canMessage } | null and partyId.
  • 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.

Plemuz API v2