This endpoint may be called to check if a user exists. The API key may be obtained from CareValidate.
curl "https://api.care360-next.carevalidate.com/api/v1/check-user?email=user%40example.com" -H "cv-api-key:<redacted>"
Results should look like the following if the email exists:
{ "status": 200, "success": true, "message": "Email already exists", "data": { "createdAt": "2024-01-01T00:00:00.000Z", "existsInCurrentOrganization": true, // or false "code": "EMAIL_EXISTS" } }
It may alternatively be called with phone number in E.164 format, although it must still be URL encoded
curl "https://api.care360-next.carevalidate.com/api/v1/check-user?phone-number=%2B15558675309" -H "cv-api-key:<redacted>"
Results should look like the following if the phone number exists:
{ "status": 200, "success": true, "message": "Phone number already exists", "data": { "createdAt": "2024-01-01T00:00:00.000Z", "existsInCurrentOrganization": true, // or false "code": "PHONE_NUMBER_EXISTS" } }
For either form, it will indicate when the user does not exist:
{ "status": 200, "success": false, "message": "User does not exist", "data": { "code": "USER_NOT_FOUND" } }
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article