Get a specific user
GET
/user
This endpoint retrieves a specific user in your team. You can search by user ID or by email.
Responses
-
• 200 object
A specific user.
-
• 400
Bad Request -- Your request is invalid.
-
• 401
Unauthorized -- Your API key is wrong.
-
• 403
Forbidden -- The object requested is hidden for administrators only.
-
• 404
Not Found -- The specified object could not be found.
-
• 429
Too Many Requests -- You're requesting too many objects! Slow down!
-
• 500
Internal Server Error -- We had a problem with our server. Try again later.
-
• 503
Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
GET /user
curl \
-X GET https://api.usecollect.com/v1/user \
--user "username:password"
Response example (200)
{
"_id": "upKywNKgwyHx3hKfF",
"role": "admin",
"status": "active",
"email": "johndoe@example.com",
"firstName": "John",
"lastName": "Doe"
}