API Reference
Per-endpoint reference generated from the OpenAPI spec
This section is generated from the OpenAPI spec (info.version: 1.2.0). The interactive reference lives at api.k-otp.dev/docs and the raw spec at api.k-otp.dev/openapi/v1.json.
Base URL: https://api.k-otp.dev/v1
| Endpoint | Summary | Keys | Required scope |
|---|---|---|---|
POST /v1/issue | Issue OTP and queue outbound delivery | pk_ / sk_ | otp:issue |
POST /v1/verify | Verify OTP code | pk_ / sk_ | otp:verify |
GET /v1/status | Get OTP issue status | sk_ | otp:status |
GET /v1/issues | List OTP issues for the authenticated app | sk_ | otp:dashboard:read |
GET /v1/issues/{issueId} | Get an OTP issue for the authenticated app | sk_ | otp:dashboard:read |
GET /v1/credit-ledger | List wallet ledger entries for the authenticated app | sk_ | otp:ledger:read |
GET /v1/balance | Get wallet balance | sk_ | otp:balance |
GET /v1/templates | List available OTP templates | sk_ | otp:templates |
GET /v1/templates/{templateId} | Get template detail | sk_ | otp:templates |