{"slug":"otp-openverbs-com-v1-verify-f45495","title":"Verify a submitted TOTP code against a base32 secret, scanning ±window time step","host":"otp.openverbs.com","method":"POST","resource":"https://otp.openverbs.com/v1/verify","category":"code","description":"Verify a submitted TOTP code against a base32 secret, scanning ±window time steps (default ±1) to tolerate clock drift. Returns valid plus the matching step offset (delta). A code that does not match is a successful result with valid=false — not an error.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":457,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"code":"example","period":1,"secret":"example","timestamp":1},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"algorithm":{"description":"HMAC algorithm. Default SHA1.","enum":["SHA1","SHA256","SHA512"],"type":"string"},"code":{"description":"The submitted OTP code.","maxLength":12,"minLength":1,"type":"string"},"digits":{"description":"Number of code digits. Default 6.","maximum":10,"minimum":6,"type":"integer"},"period":{"description":"Time step in seconds. Default 30.","maximum":86400,"minimum":1,"type":"integer"},"secret":{"description":"Base32-encoded shared secret.","maxLength":1024,"minLength":1,"type":"string"},"t0":{"description":"Epoch start offset in seconds. Default 0.","minimum":0,"type":"integer"},"timestamp":{"description":"Unix time in seconds. Default: now.","minimum":0,"type":"integer"},"window":{"description":"Steps of drift tolerance each side. Default 1.","maximum":20,"minimum":0,"type":"integer"}},"required":["secret","code"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":457,"error":null}],"description_full":"Verify a submitted TOTP code against a base32 secret, scanning ±window time steps (default ±1) to tolerate clock drift. Returns valid plus the matching step offset (delta). A code that does not match is a successful result with valid=false — not an error.","last_updated":"2026-09-06T08:12:29.925Z","schemes":["exact"]}