Documentation

Developer guide

Get started with Robase in minutes.

Authentication

All API requests require a Bearer token in the Authorization header.

curl -X POST https://api.robase.dev/v1/otp/send \
  -H "Authorization: Bearer robe_xxx" \
  -H "Content-Type: application/json" \
  -d {"phone_number":"+2348012345678"}

Send OTP

Send a one-time password to a phone number.

POST /v1/otp/send
{
  "phone_number": "+2348012345678",
  "code_length": 6,
  "ttl_seconds": 600
}

Verify OTP

Verify a one-time password using the OTP ID and code.

POST /v1/otp/verify
{
  "otp_id": "...",
  "code": "123456"
}