API Demo (Illustrative)

Demo responses shown for illustration purposes. Messages are simulated in the demo environment.

Start OTP

POST /v1/otp/start
Authorization: Bearer DEMO_KEY

{
  "to": "+2348012345678",
  "channel": ["sms", "whatsapp"],
  "sender_id": "WORKPENT",
  "purpose": "login",
  "expiry": 5
}
{
  "otp_id": "otp_demo_42f9",
  "status": "queued",
  "expires_in": 300
}

Verify OTP

POST /v1/otp/verify

{
  "otp_id": "otp_demo_42f9",
  "code": "123456"
}
{ "status": "verified" }

← Back