After requesting an OTP withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/harshalw2003/BidAuc/llms.txt
Use this file to discover all available pages before exploring further.
POST /user/generateOtp, use this endpoint to create a new BidAuc account. The submitted OTP is validated against the record in the database, then a new user is created with the supplied profile details. On success, the server issues a JWT and writes it to an httpOnly cookie so subsequent requests are authenticated automatically.
Endpoint
Request body
The 10-digit phone number used to request the OTP.
The one-time password received for the phone number. In development this is always
"123456".Account role. Accepted values:
"Seeker" or "Provider".Email address for the account. Must be unique — registration fails if this email is already in use.
User’s first name.
User’s last name.
Example request
Response
Success — 200 OK
Confirmation that the account was created.
true on successful registration.Signed JWT for the new session. Also set as the
token cookie in the response.Errors
OTP expired —400 Bad Request
400 Bad Request
On a successful registration the server sets an
httpOnly cookie named token. Browsers send this cookie automatically with every subsequent request, so you do not need to manage the JWT manually in client-side code. When using curl, pass -c cookies.txt to save the cookie and -b cookies.txt to send it on later requests.