Auth

Start signing in or signing up with a phone number

Sends a code through WhatsApp or Telegram, or returns a Telegram link. The answer is the same for new and existing numbers; an account is created after the first confirmed sign-in. Sets the otprun_login_challenge cookie that later calls need.

post/api/v1/auth/phone/start

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/auth/phone/start
  • Auth: none declared

Headers

User-Agentstring

Request body

channel'whatsapp' | 'telegram' required
localestring

Language of the code message and of the bot

phonestring

International number, required for WhatsApp, optional for Telegram

Response

OK

challenge_idstring uuid required
channel'whatsapp' | 'telegram' required
delivery'code' | 'link' required

code: enter the code from WhatsApp or Telegram; link: open tg_link and share the number with the bot

expires_atstring date-time required
resend_atstring date-time required

Earliest moment a new code can be requested

tg_linkstring required

Telegram link for delivery link, empty otherwise

Changes

No recorded changes to this operation across all 1 revision of this API.