verify.js
// Verify an OTANTIK code const res = await fetch('https://api.otantik.granlaku.com/v1/verify', { method: 'POST', headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ user_id: 'user_8231', code: '452917' }) }); const data = await res.json(); // { "verified": true, "expires_in": 27 }
POST
/v1/accounts
POST
/v1/verify
GET
/v1/accounts/:id
POST
/v1/accounts/:id/revoke