First call in 5 minutes
- Developer account — an approved HADİ membership, identity verification, two-step verification and an account at least 30 days old. Create an app in the console; Tier 0 (sandbox) opens immediately.
- Keys — public clients (mobile, SPA) have no secret. Generate the DPoP key on the device (WebCrypto,
extractable: falsein browsers). Server clients useprivate_key_jwt; noclient_secretin production. - Authorize with PAR — post the parameters to
POST /par, then redirect the user tohttps://auth.sandbox.hadisosyal.com/authorize?client_id=…&request_uri=…. - Code → tokens —
POST /tokenwith the PKCEcode_verifierand aDPoPheader. Onuse_dpop_nonce, retry with the returnedDPoP-Nonce. - First call —
GET https://me.api.sandbox.hadisosyal.com/v1/mewithAuthorization: DPoP …,DPoP: …,HADI-Version: 2027-01-15.
The SDKs (TypeScript, Dart, Python) handle PKCE, DPoP, nonces and refresh rotation for you.