Skip to main content
GET
List the caller's saved analytics views
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

List the caller’s saved analytics views Analytics saved-views CRUD (BE-08). Postgres-backed (not BigQuery) — mounted ahead of the royalty analytics query middleware so these routes skip BigQuery dataset/currency resolution entirely. Every operation is scoped by BOTH tenant and the acting user (req.tenantUserId for non-admin artists/members, req.user.id for admins/owners); a view owned by a different tenant or user 404s rather than 403s, so existence is not leaked. Authorization:
  • Required role: user or higher

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Successfully retrieved the caller's saved views

SavedViews
object[]
totalItems
integer
totalPages
integer
Example:

1

currentPage
integer
Example:

1