Docs
Everything you need to integrate
Start with the guides, keep the API reference open, and generate a client from the OpenAPI spec.
Guides
Quickstart, key types, idempotency, error codes, and delivery status — step by step.
docs.k-otp.devAPI reference
Every endpoint, request field, and response, with the scopes each key needs.
api.k-otp.dev/docsOpenAPI 3.1 spec
Machine-readable contract for code generation, mocking, and contract tests.
Download openapi/v1.json
Quickstart in three steps
- 1
Sign up in the console and create an sk_ secret key (or a pk_ public key with an allowed Origin).
- 2
Call POST /v1/issue with the phone number, a purpose, and an idempotency key. Keep the issueId.
- 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.