Public
Playback
Dipakai player/viewer.
GET /player GET /playback/:stream/master.m3u8?key=customer_key&SID=viewer_key GET /playback/:stream/:quality/index.m3u8 GET /docs/api GET /customer/login GET /customer
M3U8 Runner
Dokumentasi ringkas endpoint frontend/backend. Endpoint management membutuhkan login dashboard, sedangkan playback dan player tetap publik.
Public
Dipakai player/viewer.
GET /player GET /playback/:stream/master.m3u8?key=customer_key&SID=viewer_key GET /playback/:stream/:quality/index.m3u8 GET /docs/api GET /customer/login GET /customer
Auth
Dipakai halaman login dan dashboard.
GET /api/auth/session POST /api/auth/login POST /api/auth/logout
Customer Auth
Dipakai customer untuk melihat link playback miliknya.
GET /api/customer-auth/session POST /api/customer-auth/login POST /api/customer-auth/logout GET /api/customer-portal/links
Protected
Butuh session cookie login.
GET /api/accounts GET /api/jobs POST /api/jobs/start POST /api/jobs/:id/stop GET /api/jobs/:id/logs DELETE /api/jobs/:id GET /api/files DELETE /api/files?path=... GET /api/viewers GET /api/viewers/sessions GET /api/customers POST /api/customers DELETE /api/customers/:id GET /api/customers/:id/master-link?stream=...
curl -X POST https://playlist.crxanode.com/api/auth/login \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"secret"}' \
-c cookies.txt
curl https://playlist.crxanode.com/api/viewers/sessions?stream=percin04 \ -b cookies.txt
curl "https://playlist.crxanode.com/api/customers/buyer-a/master-link?stream=percin043" \ -b cookies.txt
curl -X POST https://playlist.crxanode.com/api/customer-auth/login \
-H "Content-Type: application/json" \
-d '{"username":"buyer.a","password":"buyer-a-secret"}' \
-c customer-cookies.txt
DASHBOARD_USERNAME=admin DASHBOARD_PASSWORD=change-me DASHBOARD_SESSION_SECRET=change-me-too DASHBOARD_SESSION_TTL_SECONDS=43200 CUSTOMERS_PATH=./data/state/customers.json