Appearance
Studio
Creator workspace, separate from the public profile. All routes need a signed-in user (Authorization: Bearer). Every profile-scoped route checks the caller's studio role for that profile; a missing profile and a missing role both return STUDIO_ACCESS_DENIED. Lists are cursor pages: ?cursor=&limit= (≤ 100), response meta.nextCursor, meta.hasMore. Money is { amountMinor: string, currency }.
Roles and permissions
The profile owner (from identity) is owner and is never a team row. Members hold one of manager, editor, analyst, finance.
| Permission | owner | manager | editor | analyst | finance |
|---|---|---|---|---|---|
studio:view | ✓ | ✓ | ✓ | ✓ | ✓ |
stats:read | ✓ | ✓ | ✓ | ✓ | ✓ |
catalog:manage, mart:manage, live:manage, profile:edit | ✓ | ✓ | ✓ | ||
earnings:read | ✓ | ✓ | ✓ | ||
payouts:manage | ✓ | ✓ | |||
funding:manage, ads:manage, team:manage | ✓ | ✓ |
Managers can invite, change and remove editors, analysts and finance members, but not managers. Members can't change their own role.
Team
| Method | Path | Permission | Body / query | Response | Errors |
|---|---|---|---|---|---|
| GET | /v1/studio/profiles | — | — | [{ profile, role, permissions }] | |
| GET | /v1/studio/profiles/:profileId/access | studio:view | — | { profileId, role, permissions } | STUDIO_ACCESS_DENIED |
| GET | /v1/studio/profiles/:profileId/team | studio:view | page | MemberView[] { id, userId, role, title, joinedAt } | |
| PATCH | /v1/studio/profiles/:profileId/team/:memberId | team:manage | { role?, title? } | MemberView | STUDIO_MEMBER_NOT_FOUND, STUDIO_ROLE_NOT_ASSIGNABLE |
| DELETE | /v1/studio/profiles/:profileId/team/:memberId | team:manage | — | { status: "ok" } | STUDIO_MEMBER_NOT_FOUND, STUDIO_ROLE_NOT_ASSIGNABLE |
| POST | /v1/studio/profiles/:profileId/team/leave | member | — | { status: "ok" } | STUDIO_MEMBER_NOT_FOUND |
| GET | /v1/studio/profiles/:profileId/team/invitations | team:manage | page, status? | InvitationView[] | |
| POST | /v1/studio/profiles/:profileId/team/invitations | team:manage | { userId, role, title?, message? } | 201 InvitationView | STUDIO_ROLE_NOT_ASSIGNABLE, STUDIO_SELF_INVITE, STUDIO_MEMBER_EXISTS, STUDIO_INVITATION_PENDING, STUDIO_TEAM_FULL, USER_NOT_FOUND |
| DELETE | /v1/studio/profiles/:profileId/team/invitations/:invitationId | team:manage | — | { status: "ok" } | STUDIO_INVITATION_NOT_FOUND, STUDIO_INVITATION_CLOSED |
| GET | /v1/me/studio-invitations | invitee | page, status? | InvitationView[] | |
| POST | /v1/me/studio-invitations/:invitationId/accept | invitee | — | InvitationView | STUDIO_INVITATION_NOT_FOUND, STUDIO_INVITATION_CLOSED, STUDIO_MEMBER_EXISTS |
| POST | /v1/me/studio-invitations/:invitationId/decline | invitee | — | InvitationView | same |
InvitationView: { id, profile|null, inviteeUserId, role, title, message, status (pending|accepted|declined|revoked|expired), expiresAt, respondedAt, createdAt }. Invitations expire after STUDIO_INVITATION_TTL_DAYS.
Insights (read through other modules)
Range query: range=7d|28d|90d|365d (default 28d) or from=YYYY-MM-DD&to=YYYY-MM-DD (≤ 731 days, clipped to today), granularity=day|week|month. Bad ranges: STUDIO_RANGE_INVALID (400).
| Method | Path | Permission | Query | Response |
|---|---|---|---|---|
| GET | …/overview | studio:view | range | { range, catalogue, stats, earnings, uploads, upcomingLive, unavailable[] }; sections the role can't see are null; sections that failed are named in unavailable |
| GET | …/catalogue/releases | studio:view | page, status? | [{ id, title, type, status, artworkAssetId, releaseDate, trackCount, updatedAt }] |
| GET | …/catalogue/drafts | catalog:manage | page | [{ id, kind, title, currentStep, completedSteps, totalSteps, updatedAt }] |
| GET | …/uploads | catalog:manage | — | [{ assetId, kind, fileName, status, stage, percent, recordingId, releaseId, updatedAt }] |
| GET | …/stats/summary | stats:read | range | { range, current, previous, changePercent } (streams, listeners, followers, saves) |
| GET | …/stats/streams | stats:read | range, recordingId? | { range, granularity, points[{ date, value }] } |
| GET | …/stats/listeners | stats:read | range | same |
| GET | …/stats/geography | stats:read | range, limit | [{ countryCode, streams, listeners }] |
| GET | …/stats/sources | stats:read | range | [{ source, streams, sharePercent }] |
| GET | …/stats/retention | stats:read | range, recordingId | [{ positionPercent, listenersPercent }] |
| GET | …/stats/followers | stats:read | range | [{ date, followers, gained, lost }] |
| GET | …/stats/top-recordings | stats:read | range, limit | [{ recordingId, title, streams, listeners }] |
| GET | …/earnings | earnings:read | range | `{ range, sources[{ source (streams |
| GET | …/payouts/balance | earnings:read | — | { available[], pending[] } |
| GET | …/payouts | earnings:read | page | [{ id, status, amount, requestedAt, paidAt }] |
| GET | …/mart/products | mart:manage | page | [{ id, title, type, status, price, salesCount, updatedAt }] |
| GET | …/funding | funding:manage | — | { id, slug, url, isActive, message, goal, raised, supporterCount } or null |
| GET | …/live | live:manage | page, status? | [{ id, title, status, isTicketed, scheduledAt, ticketsSold, peakViewers }] |
| GET | …/ads/campaigns | ads:manage | page | [{ id, name, objective, status, budget, spent, startsAt, endsAt }] |
| GET | …/ads/report | ads:manage | range | { range, impressions, clicks, clickThroughPercent, spend[], series[] } |
… is /v1/studio/profiles/:profileId. Write actions on catalogue, mart, funding, live and ads live in their own modules, which ask studio's permission check.
Dashboards (per person, per profile)
| Method | Path | Body | Response | Errors |
|---|---|---|---|---|
| GET | …/dashboards | — | DashboardView[] | |
| POST | …/dashboards | { name, isDefault?, rangePreset?, customFrom?, customTo?, granularity?, comparePrevious?, widgets?[] } | 201 DashboardView | STUDIO_DASHBOARD_LIMIT, VALIDATION_FAILED |
| PATCH | …/dashboards/:dashboardId | any of the above except widgets | DashboardView | STUDIO_DASHBOARD_NOT_FOUND, STUDIO_RANGE_INVALID |
| PUT | …/dashboards/:dashboardId/widgets | { widgets: [{ kind, width?, height?, recordingId? }] } (≤ 24, order = position) | DashboardView | STUDIO_DASHBOARD_NOT_FOUND |
| DELETE | …/dashboards/:dashboardId | — | { status: "ok" } | STUDIO_DASHBOARD_NOT_FOUND |
Widget kinds: totals, streams, listeners, geography, sources, retention, followers, top_recordings, earnings, payouts, uploads, catalogue, mart, funding, live, ads, goals, milestones.
Goals and milestones
| Method | Path | Permission | Body / query | Response | Errors |
|---|---|---|---|---|---|
| GET | …/goals | stats:read | page, status? | GoalView[] | |
| POST | …/goals | stats:read (earnings:read for earnings) | { title, metric, targetValue (string), currency? (earnings only), recordingId?, startsOn?, endsOn? } | 201 GoalView | STUDIO_GOAL_LIMIT, VALIDATION_FAILED |
| PATCH | …/goals/:goalId | stats:read | { title?, targetValue?, archive?: true } | GoalView | STUDIO_GOAL_NOT_FOUND, STUDIO_GOAL_INVALID, STUDIO_GOAL_TRANSITION_INVALID |
| DELETE | …/goals/:goalId | stats:read | — | { status: "ok" } | STUDIO_GOAL_NOT_FOUND |
| GET | …/milestones | stats:read | page | [{ id, metric, recordingId, threshold, reachedAt }] |
Metrics: streams, listeners, followers, saves, mart_sales, earnings. GoalView carries currentValue, percent (0–100), status (active → achieved|expired|archived), read every 10 minutes by a job.
Socket namespace /studio
| Direction | Event | Payload | Notes |
|---|---|---|---|
| client → server | studio:join | { profileId } | Ack { profileId }; needs a studio role. Joins studio:<profileId> plus a room per tier the role allows. |
| client → server | studio:leave | { profileId } | Ack { profileId } |
| server → client | asset:progress | { assetId, kind, status, stage, percent, recordingId, releaseId, error, at } | catalog:manage |
| server → client | release:status | { releaseId, title, status, reason, at } | everyone on the team |
| server → client | sale:made | `{ kind (mart | beat |
| server → client | stream:milestone | { metric, recordingId, threshold, total, at } | stats:read |
Events published
studio.member.joined, studio.member.role_changed, studio.member.removed, studio.goal.achieved, studio.milestone.reached.
Analytics
All under /v1/studio/profiles/:profileId, permission stats:read unless noted. Scope query: contentKind=recording|release|episode|video|live with contentId (must belong to the profile, else STUDIO_CONTENT_NOT_FOUND), or neither for the whole profile. Range query as for insights.
| Method | Path | Query | Response |
|---|---|---|---|
| GET | /analytics/engagement | range, scope | { range, scope, current, previous, change, revenue[{ amount, perThousandStreamsMinor }] }; totals are streams, qualifiedStreams, uniqueListeners, completionRate, skipRate (0..1), averageListenMs, saves, likes, playlistAdds, shares, followsGained; change is percent for counts and percentage points for rates; revenue only with earnings:read |
| GET | /analytics/engagement/series | range, scope, granularity | { range, scope, granularity, points[] } |
| GET | /analytics/sources | range, scope | [{ source (search, playlist, profile, album, radio, recommendation, discover_shelf, moment, share_link, together, dj_set, library, other), streams, listeners, sharePercent }] |
| GET | /analytics/demographics | range, scope, dimension=country|city|age_range|gender|device|platform|plan, limit | { dimension, rows[{ key, label, listeners, streams, sharePercent }] } (small groups withheld) |
| GET | /analytics/segments | range, scope | { current{ newListeners, returningListeners, superfans, …Percent }, change } |
| GET | /analytics/playlists | range, page | page of { playlistId, title, ownerName, isEditorial, followers, streamsFromPlaylist, addedAt } |
| GET | /analytics/top-content | range, page, kind | page of { kind, id, title, streams, uniqueListeners, completionRate } |
| GET | /analytics/realtime | scope | { windowMinutes: 60, streams, listeners (peak minute), points[{ minute, streams, listeners }] }, no-store |
| GET | /analytics/releases/:releaseId/curve | hours (≤ 168, default 72) | { releaseId, points[{ hour, streams, listeners, cumulativeStreams }] } |
| GET | /analytics/placements | limit | [{ shelfCode, shelfName, placement, countryCode, itemType, itemId, itemTitle, position, computedAt }] |
| GET | /health | — (studio:view) | { status (good|warning|at_risk|restricted), activeStrikes, restrictions[], lastReviewedAt } |
| GET | /health/violations | page (catalog:manage) | page of { id, kind, severity, status, summary, contentKind, contentId, createdAt, resolvedAt } |
CSV exports
| Method | Path | Body / query | Response | Errors |
|---|---|---|---|---|
| POST | /exports | { kind (engagement_daily|sources|demographics|top_content|playlists|earnings|placements), from, to, contentKind?, contentId? } (earnings needs earnings:read) | 202 ExportView | STUDIO_EXPORT_BUSY (3 open per profile), STUDIO_RANGE_INVALID, STUDIO_CONTENT_NOT_FOUND |
| GET | /exports | page | page of ExportView | |
| GET | /exports/:exportId | — | ExportView { id, kind, contentKind, contentId, from, to, status (queued|running|completed|failed|expired), progressPercent, rowCount, byteSize, expiresAt, createdAt, completedAt } | STUDIO_EXPORT_NOT_FOUND |
| GET | /exports/:exportId/download | — | { url (signed, 15 min), expiresAt, fileName } | STUDIO_EXPORT_NOT_READY |
Built by studio.export on the studio queue; progress is pushed as export:progress (payload ExportView, stats:read) on /studio. Files are kept STUDIO_EXPORT_TTL_HOURS and capped at STUDIO_EXPORT_MAX_ROWS rows. studio.analytics-warm (daily, analytics queue) pre-caches the 28-day engagement, segments and country cards for profiles active yesterday.