{"success":true,"message":"rAiads API is running","endpoints":{"GET /health":"Check database connection","POST /api/auth/register":"Create a viewer account on the authServer, through this server (advertisers can't sign up)","POST /api/auth/login":"Log in (sets an httpOnly session cookie)","POST /api/auth/logout":"Log out (removes the session cookie)","GET /api/auth/me":"Current user (session cookie)","GET|PATCH /api/advertisers/me":"Advertiser: own profile","GET /api/advertisers/me/dashboard":"Advertiser: dashboard numbers","GET /api/advertisers/options":"Admin: what the advertiser pages show","GET /api/advertisers":"Admin: list advertisers (?status, ?search, ?page, ?limit)","GET /api/advertisers/:id":"Admin: one advertiser","POST /api/advertisers":"super_admin: create advertiser","PATCH /api/advertisers/:id":"super_admin: update advertiser","PATCH /api/advertisers/:id/status":"super_admin: approve/suspend/reactivate","POST /api/advertisers/:id/balance":"super_admin: add to an advertiser's balance","DELETE /api/advertisers/:id":"super_admin: delete advertiser","GET /api/admin/dashboard":"Admin: dashboard numbers","GET /api/notifications":"Super admin or advertiser: what waits for them (the bell and pop-ups)","GET /api/inbox":"Viewer: their notifications (announcements and decisions about them); POST /api/inbox/seen marks them read","GET /api/activity":"super_admin: the activity log (who changed what, when)","GET /api/transactions":"Viewer: every movement of their points (rewards, held rewards paid, cash-outs)","GET|POST|DELETE /api/announcements":"Admins read; super_admin writes or takes down an announcement","GET /api/campaigns/options":"Choices, limits and text for the campaign pages","GET /api/campaigns":"Advertiser: own campaigns. Admin: all (?status, ?advertiser_id, ?search, ?page, ?limit)","GET /api/campaigns/:id":"One campaign with its videos and budget history","POST /api/campaigns":"Advertiser or super_admin: create a campaign (JSON settings, optional starting budget)","PATCH /api/campaigns/:id":"Owner advertiser or super_admin: change the settings","PATCH /api/campaigns/:id/status":"super_admin: approve/reject/pause. Advertiser: pause/resume own","POST /api/campaigns/:id/videos":"Owner advertiser or super_admin: upload videos (multipart: videos, up to 20)","PATCH /api/campaigns/:id/videos":"Owner advertiser or super_admin: order and weight the videos","POST /api/campaigns/:id/budget":"Owner advertiser or super_admin: move budget in from, or back to, the balance","DELETE /api/campaigns/:id":"Owner advertiser or super_admin: delete the campaign and its videos","GET /api/payments/options":"Advertiser or admin: what the payment page shows (Stripe on or off, limits, balance)","GET /api/payments":"Advertiser: own card payments. Admin: all (?status, ?advertiser_id, ?page, ?limit)","POST /api/payments/checkout":"Advertiser: start a Stripe checkout to add money to the balance -> { url }","POST /api/payments/confirm":"Advertiser: back from Stripe, check the payment and add it to the balance once","POST /api/payments/webhook":"Stripe only: payment events (signed)","GET /api/payouts/options":"Advertiser or admin: text and numbers for the payment requests page","GET /api/payouts":"Advertiser: own viewer payment requests. Admin: all (?status, ?advertiser_id, ?search, ?page, ?limit)","GET /api/payouts/:id":"One payment request with the videos it pays for","POST /api/payouts/decide":"Advertiser (own) or super_admin: approve or reject requests { ids, decision, reason? }","GET /api/settings":"Admin: platform settings (daily video limit, rewards, video rules, payment requests, card payments)","PATCH /api/settings":"super_admin: change platform settings { key: value }","GET /api/ads":"Advertiser: own ads. Admin: all ads (?status, ?advertiser_id, ?search, ?page, ?limit)","GET /api/ads/options":"Limits and text for the ad form","POST /api/ads/validate":"Check an ad form before uploading","GET /api/ads/:id":"One ad (advertisers: own only)","POST /api/ads":"Advertiser or super_admin: create ad (multipart: video file)","PATCH /api/ads/:id":"Owner advertiser or super_admin: edit ad","PATCH /api/ads/:id/status":"super_admin: approve/reject/pause. Advertiser: pause/resume own","DELETE /api/ads/:id":"Owner advertiser or super_admin: delete ad","GET /api/verifications/options":"Viewer or super_admin: what the identity form accepts","GET /api/verifications/me":"Viewer: own identity request and the admin's reply","POST /api/verifications/me":"Viewer: send identity details (multipart: front, back)","GET /api/verifications/me/documents/:side":"Viewer: own document image","GET /api/verifications":"Advertiser (own viewers) or super_admin: list requests (?status, ?search, ?page, ?limit)","GET /api/verifications/:id":"Advertiser (own viewers) or super_admin: one request with its history","GET /api/verifications/:id/documents/:side":"Advertiser (own viewers) or super_admin: document image","PATCH /api/verifications/:id/decision":"Advertiser (own viewers) or super_admin: approve/reject/ask for a new upload, with a reply","GET /api/viewers":"Advertiser (own) or admin: list viewers (?filter, ?search, ?page, ?limit)","GET /api/viewers/:id":"Advertiser (own) or admin: one viewer","GET /api/viewers/:id/ads-watched":"Advertiser (own viewers, own ads) or super_admin: the ads a viewer watched","PATCH /api/viewers/:id":"Advertiser (own) or super_admin: change a viewer's email, username or password","PATCH /api/viewers/:id/status":"Advertiser (own) or super_admin: suspend or reactivate a viewer","PATCH /api/viewers/:id/advertiser":"super_admin: move a viewer to an advertiser","DELETE /api/viewers/:id":"Advertiser (own) or super_admin: delete a viewer and their ID documents","GET /api/viewer-rules":"Viewer, advertiser or admin: the rules viewers must follow","PATCH /api/viewer-rules":"Advertiser (own) or super_admin: change the rules","GET /api/risk-flags":"Advertiser (own viewers) or admin: abuse patterns to review (?status, ?viewer_id)","PATCH /api/risk-flags/:id":"Advertiser (own viewers) or super_admin: dismiss or mark handled","GET /api/risk-flags/viewers/:id":"Advertiser (own) or super_admin: a viewer's recent sign-ins and devices","GET /api/license/status":"Advertiser: own license. Admin: ?advertiser_id","GET /api/license/connection":"super_admin: is the license server reachable","POST /api/license/advertisers/:id":"super_admin: give an advertiser a license key","DELETE /api/license/advertisers/:id":"super_admin: take the key off an advertiser","GET /api/watch/ads":"Viewer: the ads they can watch now","GET /api/watch/next":"Viewer: the one ad to watch next, picked by its campaign's rules","POST /api/watch/ads/:id/start":"Viewer: start watching an ad","POST /api/watch/sessions/:id/complete":"Viewer: finish, which saves the view and pays the reward","GET /api/watch/history":"Viewer: own views and earnings","GET /api/watch/summary":"Viewer: everything the Home page shows (can watch, today, next ad, money, identity, last views)","GET /api/reports/options":"Advertiser or admin: the reports, periods and campaigns to filter by","GET /api/reports/:key":"Advertiser (own) or admin: one report (?period&from&to&advertiser_id&campaign_id); ?format=csv downloads it","GET /api/views":"Advertiser: every view of their ads (who, which video, when, reward, network). Admin: all (?advertiser_id); super admin also sees the IP addresses","GET|PATCH /api/account":"Website viewer: own account (passed on to the authServer)"}}