Authentication

Verify Otp

Verify OTP and login/register user. Links device if X-Device-Id provided.

post/api/v1/auth/verify-otp

Request

  • Base URL: https://api.gemstoneaiapp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gemstoneaiapp.com/api/v1/auth/verify-otp
  • Auth: none declared

Headers

X-Device-Idinteger nullable

Request body

mobile_numberstring required

Full phone number with country code (e.g., '+911234567890')

phone_country_codestring required

Country code (e.g., '+91')

otp_codestring required

6-digit OTP sent to the user's mobile number

gemstone_idsinteger[] nullable

Optional list of IDs of gemstones uploaded anonymously. These will be attached to the user after verification.

Response

Successful Response

tokenstring required
refreshTokenstring required
gemstones_savedinteger nullable
is_new_userboolean nullable
promo_grantedstring nullable

Changes

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