Skip to content

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.

Permissionownermanagereditoranalystfinance
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 ​

MethodPathPermissionBody / queryResponseErrors
GET/v1/studio/profiles——[{ profile, role, permissions }]
GET/v1/studio/profiles/:profileId/accessstudio:view—{ profileId, role, permissions }STUDIO_ACCESS_DENIED
GET/v1/studio/profiles/:profileId/teamstudio:viewpageMemberView[] { id, userId, role, title, joinedAt }
PATCH/v1/studio/profiles/:profileId/team/:memberIdteam:manage{ role?, title? }MemberViewSTUDIO_MEMBER_NOT_FOUND, STUDIO_ROLE_NOT_ASSIGNABLE
DELETE/v1/studio/profiles/:profileId/team/:memberIdteam:manage—{ status: "ok" }STUDIO_MEMBER_NOT_FOUND, STUDIO_ROLE_NOT_ASSIGNABLE
POST/v1/studio/profiles/:profileId/team/leavemember—{ status: "ok" }STUDIO_MEMBER_NOT_FOUND
GET/v1/studio/profiles/:profileId/team/invitationsteam:managepage, status?InvitationView[]
POST/v1/studio/profiles/:profileId/team/invitationsteam:manage{ userId, role, title?, message? }201 InvitationViewSTUDIO_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/:invitationIdteam:manage—{ status: "ok" }STUDIO_INVITATION_NOT_FOUND, STUDIO_INVITATION_CLOSED
GET/v1/me/studio-invitationsinviteepage, status?InvitationView[]
POST/v1/me/studio-invitations/:invitationId/acceptinvitee—InvitationViewSTUDIO_INVITATION_NOT_FOUND, STUDIO_INVITATION_CLOSED, STUDIO_MEMBER_EXISTS
POST/v1/me/studio-invitations/:invitationId/declineinvitee—InvitationViewsame

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

MethodPathPermissionQueryResponse
GET…/overviewstudio:viewrange{ range, catalogue, stats, earnings, uploads, upcomingLive, unavailable[] }; sections the role can't see are null; sections that failed are named in unavailable
GET…/catalogue/releasesstudio:viewpage, status?[{ id, title, type, status, artworkAssetId, releaseDate, trackCount, updatedAt }]
GET…/catalogue/draftscatalog:managepage[{ id, kind, title, currentStep, completedSteps, totalSteps, updatedAt }]
GET…/uploadscatalog:manage—[{ assetId, kind, fileName, status, stage, percent, recordingId, releaseId, updatedAt }]
GET…/stats/summarystats:readrange{ range, current, previous, changePercent } (streams, listeners, followers, saves)
GET…/stats/streamsstats:readrange, recordingId?{ range, granularity, points[{ date, value }] }
GET…/stats/listenersstats:readrangesame
GET…/stats/geographystats:readrange, limit[{ countryCode, streams, listeners }]
GET…/stats/sourcesstats:readrange[{ source, streams, sharePercent }]
GET…/stats/retentionstats:readrange, recordingId[{ positionPercent, listenersPercent }]
GET…/stats/followersstats:readrange[{ date, followers, gained, lost }]
GET…/stats/top-recordingsstats:readrange, limit[{ recordingId, title, streams, listeners }]
GET…/earningsearnings:readrange`{ range, sources[{ source (streams
GET…/payouts/balanceearnings:read—{ available[], pending[] }
GET…/payoutsearnings:readpage[{ id, status, amount, requestedAt, paidAt }]
GET…/mart/productsmart:managepage[{ id, title, type, status, price, salesCount, updatedAt }]
GET…/fundingfunding:manage—{ id, slug, url, isActive, message, goal, raised, supporterCount } or null
GET…/livelive:managepage, status?[{ id, title, status, isTicketed, scheduledAt, ticketsSold, peakViewers }]
GET…/ads/campaignsads:managepage[{ id, name, objective, status, budget, spent, startsAt, endsAt }]
GET…/ads/reportads:managerange{ 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) ​

MethodPathBodyResponseErrors
GET…/dashboards—DashboardView[]
POST…/dashboards{ name, isDefault?, rangePreset?, customFrom?, customTo?, granularity?, comparePrevious?, widgets?[] }201 DashboardViewSTUDIO_DASHBOARD_LIMIT, VALIDATION_FAILED
PATCH…/dashboards/:dashboardIdany of the above except widgetsDashboardViewSTUDIO_DASHBOARD_NOT_FOUND, STUDIO_RANGE_INVALID
PUT…/dashboards/:dashboardId/widgets{ widgets: [{ kind, width?, height?, recordingId? }] } (≤ 24, order = position)DashboardViewSTUDIO_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 ​

MethodPathPermissionBody / queryResponseErrors
GET…/goalsstats:readpage, status?GoalView[]
POST…/goalsstats:read (earnings:read for earnings){ title, metric, targetValue (string), currency? (earnings only), recordingId?, startsOn?, endsOn? }201 GoalViewSTUDIO_GOAL_LIMIT, VALIDATION_FAILED
PATCH…/goals/:goalIdstats:read{ title?, targetValue?, archive?: true }GoalViewSTUDIO_GOAL_NOT_FOUND, STUDIO_GOAL_INVALID, STUDIO_GOAL_TRANSITION_INVALID
DELETE…/goals/:goalIdstats:read—{ status: "ok" }STUDIO_GOAL_NOT_FOUND
GET…/milestonesstats:readpage[{ 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 ​

DirectionEventPayloadNotes
client → serverstudio:join{ profileId }Ack { profileId }; needs a studio role. Joins studio:<profileId> plus a room per tier the role allows.
client → serverstudio:leave{ profileId }Ack { profileId }
server → clientasset:progress{ assetId, kind, status, stage, percent, recordingId, releaseId, error, at }catalog:manage
server → clientrelease:status{ releaseId, title, status, reason, at }everyone on the team
server → clientsale:made`{ kind (martbeat
server → clientstream: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.

MethodPathQueryResponse
GET/analytics/engagementrange, 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/seriesrange, scope, granularity{ range, scope, granularity, points[] }
GET/analytics/sourcesrange, scope[{ source (search, playlist, profile, album, radio, recommendation, discover_shelf, moment, share_link, together, dj_set, library, other), streams, listeners, sharePercent }]
GET/analytics/demographicsrange, scope, dimension=country|city|age_range|gender|device|platform|plan, limit{ dimension, rows[{ key, label, listeners, streams, sharePercent }] } (small groups withheld)
GET/analytics/segmentsrange, scope{ current{ newListeners, returningListeners, superfans, …Percent }, change }
GET/analytics/playlistsrange, pagepage of { playlistId, title, ownerName, isEditorial, followers, streamsFromPlaylist, addedAt }
GET/analytics/top-contentrange, page, kindpage of { kind, id, title, streams, uniqueListeners, completionRate }
GET/analytics/realtimescope{ windowMinutes: 60, streams, listeners (peak minute), points[{ minute, streams, listeners }] }, no-store
GET/analytics/releases/:releaseId/curvehours (≤ 168, default 72){ releaseId, points[{ hour, streams, listeners, cumulativeStreams }] }
GET/analytics/placementslimit[{ shelfCode, shelfName, placement, countryCode, itemType, itemId, itemTitle, position, computedAt }]
GET/health— (studio:view){ status (good|warning|at_risk|restricted), activeStrikes, restrictions[], lastReviewedAt }
GET/health/violationspage (catalog:manage)page of { id, kind, severity, status, summary, contentKind, contentId, createdAt, resolvedAt }

CSV exports ​

MethodPathBody / queryResponseErrors
POST/exports{ kind (engagement_daily|sources|demographics|top_content|playlists|earnings|placements), from, to, contentKind?, contentId? } (earnings needs earnings:read)202 ExportViewSTUDIO_EXPORT_BUSY (3 open per profile), STUDIO_RANGE_INVALID, STUDIO_CONTENT_NOT_FOUND
GET/exportspagepage 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.

Plemuz API v2