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