Authorization.
Five key types
PKCE browser login flow
Desktop apps and scripts obtain azdt_ token safely without bundling client secrets.
1
Start handoff (POST /v1/auth/handoff/start)
Generate a random
code_verifier and its base64url SHA-256 code_challenge. Only zerodrive://auth and local http://127.0.0.1:<1024-65535>/callback redirects are accepted.2
Exchange code (POST /v1/auth/handoff/exchange)
device_token, account_id, and email (invalid or reused codes return 400 invalid_grant).OAuth scopes
mcp, vault:read, vault:write, vault:delete, offline_access (90d rotating zdr_), and openid email profile (GET /userinfo).
