Core API
Start and check verifications, inspect status and account balance, and receive webhooks through one HTTP contract.
Start with the documented REST API and OpenAPI contract. For a ready code-entry interface, create a one-time hosted session on your backend and open the hosted page or mount it with embed.js.
Start and check verifications, inspect status and account balance, and receive webhooks through one HTTP contract.
Use the interactive guide to inspect request schemas, responses, error models, and authentication.
Create a one-time hosted session on your backend, then open /v/:token or mount the same flow inside your UI.
First create a hosted session on your backend. Pass its one-time token to embed.js, and the code-entry page renders inside your UI with postMessage events.
1<div id="otp-widget"></div> 2<script src="https://otpilot.ru/embed.js"></script> 3<script> 4 OTPilot.mount('#otp-widget', { token: hostedSessionToken }); 5 // otpilot:approved · otpilot:failed · otpilot:resize 6</script>
Use REST for backend control. The hosted page and embed.js reuse the same verification flow and require a session created securely by your backend.