satriam — api docs

[ kembali ke halaman utama ] | [ join our channel ]


1. Send Magic Link (Stage 1)

Endpoint:

POST https://satriam.satriadeveloperz.workers.dev/api/satriam/send-link

Headers:

Content-Type: application/json

Payload Body (JSON):

{
  "email": "target_email@gmail.com"
}

Response JSON:

{
  "success": true,
  "email": "target_email@gmail.com",
  "message": "Magic link autentikasi Alight Motion berhasil dikirim ke target_email@gmail.com. Periksa kotak masuk / spam."
}

2. Verify Magic Link & Activate Premium (Stage 2)

Endpoint:

POST https://satriam.satriadeveloperz.workers.dev/api/satriam/verify-link

Headers:

Content-Type: application/json

Payload Body (JSON):

{
  "email": "target_email@gmail.com",
  "magicLink": "https://alight-creative.firebaseapp.com/__/auth/action?mode=signIn&oobCode=..."
}

Response JSON:

{
  "success": true,
  "message": "Verifikasi berhasil! Akun Alight Motion telah aktif menjadi Premium.",
  "email": "target_email@gmail.com",
  "uid": "...",
  "membershipStatus": "PREMIUM_ACTIVE",
  "planName": "Alight Motion Pro / Member",
  "orderId": "satriam-c635099382bb",
  "validUntil": "2027-03-30T...",
  "features": [],
  "idToken": "eyJhbG...",
  "premium": true
}