Skip to main content

Documentation 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.

Use this endpoint to retrieve the full profile of the currently authenticated user. The response includes all stored fields from the user record — name, contact details, address, role, business name, profile picture, and subscription status. Authentication is required via a JWT stored in a cookie.

Endpoint

GET /user/loadProfile
Authentication: Required (JWT cookie) Request parameters: None

Example request

curl -X GET http://localhost:5000/user/loadProfile \
  -b cookies.txt

Success response

{
  "success": true,
  "message": "User details retreived successfully",
  "userDetails": {
    "_id": "64a1f2c3d4e5f6a7b8c9d0e1",
    "userName": {
      "firstName": "Jane",
      "lastName": "Doe"
    },
    "phoneNumber": 4155550100,
    "email": "jane.doe@example.com",
    "role": "Seeker",
    "address": {
      "line1": "123 Main St",
      "line2": "Apt 4B",
      "landmark": "Near Central Park",
      "city": "New York",
      "zipCode": "10001"
    },
    "businessName": "No Business Name Added",
    "profilePicture": "/public/static/Assets/Images/profile-icon.png",
    "profileStatus": "default",
    "Subscription_isActive": false
  }
}

Response fields

success
boolean
required
Indicates whether the request completed successfully.
message
string
required
Human-readable status message.
userDetails
object
required
The full profile record for the authenticated user.

GET /user/isLoggedIn

A lightweight endpoint to verify that the current session cookie is valid. Returns a 200 response with the decoded user if the JWT is valid, or 401 if the token is missing or expired. Authentication: Required (JWT cookie) Parameters: None
curl -X GET http://localhost:5000/user/isLoggedIn \
  -b cookies.txt
Returns the decoded user payload on success. Useful for client-side session checks — if the response is 200, the session is active.

Build docs developers (and LLMs) love