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
Indicates whether the request completed successfully.
Human-readable status message.
Array of provider profile objects. Empty array if no providers are registered. Show provider object properties
Unique MongoDB document identifier for the provider.
Provider’s email address.
Always "Provider" for results from this endpoint.
Provider’s stored address. Primary street address line.
Apartment, suite, or unit number.
Nearby landmark or additional location context.
Business name for the provider. Defaults to "No Business Name Added".
Server path to the provider’s profile image.
Whether the provider has customised their profile. Either "updated" or "default".
Whether the provider currently has an active subscription.