Skip to main content
GET
Get Users
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Description: The /user/ endpoint retrieves user data with optional accounting information from cached data. Authorization:
  • Required role: admin or higher
Enhanced Accounting Support: When accounting=true, this endpoint now provides:
  • 95% faster performance: 10-50ms response vs previous 500-2000ms BigQuery approach
  • Cached accounting data: Returns Gross, Paid, Due values from UserAccounting table
  • Background processing: Automatically queues calculation for users without cached data
  • Transparent operations: Response includes metadata about cache status and queued calculations
Method: GET Query Parameters: Performance Notes:
  • Without accounting: Standard user list response
  • With accounting=true: Includes cached Gross, Paid, Due values with 95% faster performance
  • Users without cache: Return zeros with pendingCalculation: true and get queued for background processing

Code Examples

Authorizations

Authorization
string
header
required

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

Query Parameters

q
string

Search query to filter users

page
string

Page number for pagination

size
string

Number of users per page

accounting
enum<string>

Set to 'true' to include fast cached accounting data

Available options:
true,
false
attributes
string

Comma-separated list of attributes to include in the response

externalId
string

Filter users by external ID

role
string

Filter by user role(s), comma-separated for multiple

sort
enum<string>

Sort field (using accounting fields like 'gross', 'paid', 'due' requires accounting=true)

Available options:
createdAt,
updatedAt,
name,
split,
gross,
paid,
due
order
enum<string>
default:desc

this value determines the order for sorting the result, either ascending or descending

Available options:
asc,
desc
hasEmail
enum<string>

Filter users by email presence. true = users with linked User account, false = users without

Available options:
true,
false
hasPaymentSettings
enum<string>

Filter users by payment settings. true = users with payment method, false = users without

Available options:
true,
false
hasArtists
enum<string>

Filter users by artist linkage. true = users linked to artists, false = users not linked

Available options:
true,
false

Response

Success

message
string
Example:

"success"

Users
object[]
count
integer

Number of users in current page

totalUsers
integer

Total number of users

accountingMetadata
object

Metadata about accounting calculations (when accounting=true)