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 fetch all users registered with the Provider role on BidAuc. This is useful when you want to browse available service providers before posting a job or placing a bid — no account or login is required to call it. The response returns the full profile object for each provider.

Endpoint

GET /user/getAllProviders
Authentication: Not required Request parameters: None

Example request

curl -X GET http://localhost:5000/user/getAllProviders

Success response

{
  "success": true,
  "message": "All Providers fetched successfully",
  "providers": [
    {
      "_id": "64a1f2c3d4e5f6a7b8c9d0e1",
      "userName": {
        "firstName": "Carlos",
        "lastName": "Rivera"
      },
      "phoneNumber": 4155550199,
      "email": "carlos.rivera@example.com",
      "role": "Provider",
      "address": {
        "line1": "88 Oak Avenue",
        "city": "Austin",
        "zipCode": "78701"
      },
      "businessName": "Rivera Electrical Services",
      "profilePicture": "/public/static/Assets/uploads/profile-pictures/1716652800000-293847561.jpg",
      "profileStatus": "updated",
      "Subscription_isActive": true
    }
  ]
}

Response fields

success
boolean
required
Indicates whether the request completed successfully.
message
string
required
Human-readable status message.
providers
object[]
required
Array of provider profile objects. Empty array if no providers are registered.

Build docs developers (and LLMs) love