cURL
curl --request GET \ --url https://app.d-sports.org/api/dashboard/stats \ --header 'Authorization: Bearer <token>'
Returns enriched dashboard statistics for the authenticated user. Admins can pass a userId query parameter to view another user’s stats (impersonation).
userId
Clerk session token. Use Authorization: Bearer .
Target user ID for admin impersonation. Omit for the authenticated user's own stats.
{ success: true, data: }
Was this page helpful?