1. Request OTP
curl -X POST https://api.useonion.xyz/v1/client-auth/otp \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "name": "Optional Name" }'
2. Verify OTP
curl -X POST https://api.useonion.xyz/v1/client-auth/verify \ -H "Content-Type: application/json" \ -d '{ "email": "[email protected]", "otp": "123456" }'
x-client-auth
3. Check Auth Status
curl -X GET https://api.useonion.xyz/v1/client-auth/status \ -H "x-client-auth: <JWT_TOKEN>"
4. Logout
curl -X POST https://api.useonion.xyz/v1/client-auth/logout \ -H "x-client-auth: <JWT_TOKEN>"
true
curl -X GET https://api.useonion.xyz/v1/transactions \ -H "x-api-key: sk_live_..."