Auth

Start linking or changing the phone number of the account

Sends a code through WhatsApp or Telegram, or returns a Telegram link. A number that belongs to another account is refused with 409 phone_taken only after the code is confirmed. Sets the otprun_phone_bind cookie that later calls need. Answers 403 with code reauth_required when the sign-in is older than 15 minutes.

post/api/v1/me/phone/start

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/me/phone/start
  • Auth: HTTP bearer

Headers

User-Agentstring

Request body

channel'whatsapp' | 'telegram' required
localestring

Language of the code message and of the bot

phonestring required

International number to link

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.