Docs

Everything you need to integrate

Start with the guides, keep the API reference open, and generate a client from the OpenAPI spec.

Quickstart in three steps

  1. 1

    Sign up in the console and create an sk_ secret key (or a pk_ public key with an allowed Origin).

  2. 2

    Call POST /v1/issue with the phone number, a purpose, and an idempotency key. Keep the issueId.

  3. 3

    Call POST /v1/verify with the issueId and the code your user typed. verified: true means done.

SDKs

The official SDK is one package, @k-otp/sdk, on npm: browser and server clients, React, Vue, and Svelte bindings, and ready-made verification forms. Install it with npm i @k-otp/sdk, or call the REST API with any HTTP client — the REST API is the contract.