STARPECS / PUBLIC TOOLKIT

API Documentation & Playground

Interactive REST API v1 reference with multi-language snippets & live testing

Endpoints

POST/api/v1/totp

Generate a 6-digit or 8-digit TOTP code from a Base32 secret.

curl -X POST "http://localhost:3000/api/v1/totp" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{   "secret": "JBSWY3DPEHPK3PXP",   "label": "[email protected]",   "digits": 6,   "period": 30 }'

Live API Playground