Authentication

API ReferenceVerifiedShare on

Authenticating each kind of caller.

HM Redowan1 min readUpdated 2026-12-04

Bu sayfanın Türkçe çevirisi editör incelemesinde. İngilizce sürüm gösteriliyor.

Device token

Obtained from POST /api/public/device/pair. Format pgd_ + 64 hex characters. Send it on every call:

http
Authorization: Bearer pgd_3f9c...

The server hashes the token with SHA-256 and looks up the device. Inactive devices get 403 device_inactive.

Teacher login

http
POST /api/public/teacher/login
Content-Type: application/json

{"password": "12345678"}

Response:

json
{"access_token": "...", "refresh_token": "...", "expires_in": 3600, "user": {"id": "..."}}
Bu sayfa yardımcı oldu mu?