curl -X POST https://api-verifier-2.onrender.com/verify \
-H "Authorization: Bearer <your-token>"
{
"status": "authorized",
"user": {
"firstName": "John",
"lastName": "Doe",
"username": "johndoe",
"email": "user@example.com",
"role": "user",
"profilePic": "https://example.com/profile.jpg",
"country": "USA",
"city": "New York",
"passportId": "AB123456",
"phoneNumber": "+1234567890",
"address": "123 Main St",
"profileVerification": {
"requiresReview": false,
"status": "verified",
"rejectionReason": null
},
"verification": {
"overall": "fully_verified",
"email": {
"verified": true,
"verifiedAt": "2024-12-10T10:00:00.000Z"
},
"identity": {
"verified": true,
"verifiedAt": "2024-12-11T15:30:00.000Z"
}
},
"likedPosts": [],
"createdAt": "2024-01-15T10:30:00.000Z"
}
}
Verify the current authentication token and get user info
curl -X POST https://api-verifier-2.onrender.com/verify \
-H "Authorization: Bearer <your-token>"
{
"status": "authorized",
"user": {
"firstName": "John",
"lastName": "Doe",
"username": "johndoe",
"email": "user@example.com",
"role": "user",
"profilePic": "https://example.com/profile.jpg",
"country": "USA",
"city": "New York",
"passportId": "AB123456",
"phoneNumber": "+1234567890",
"address": "123 Main St",
"profileVerification": {
"requiresReview": false,
"status": "verified",
"rejectionReason": null
},
"verification": {
"overall": "fully_verified",
"email": {
"verified": true,
"verifiedAt": "2024-12-10T10:00:00.000Z"
},
"identity": {
"verified": true,
"verifiedAt": "2024-12-11T15:30:00.000Z"
}
},
"likedPosts": [],
"createdAt": "2024-01-15T10:30:00.000Z"
}
}
Show properties
user, admin, or moderator)curl -X POST https://api-verifier-2.onrender.com/verify \
-H "Authorization: Bearer <your-token>"
{
"status": "authorized",
"user": {
"firstName": "John",
"lastName": "Doe",
"username": "johndoe",
"email": "user@example.com",
"role": "user",
"profilePic": "https://example.com/profile.jpg",
"country": "USA",
"city": "New York",
"passportId": "AB123456",
"phoneNumber": "+1234567890",
"address": "123 Main St",
"profileVerification": {
"requiresReview": false,
"status": "verified",
"rejectionReason": null
},
"verification": {
"overall": "fully_verified",
"email": {
"verified": true,
"verifiedAt": "2024-12-10T10:00:00.000Z"
},
"identity": {
"verified": true,
"verifiedAt": "2024-12-11T15:30:00.000Z"
}
},
"likedPosts": [],
"createdAt": "2024-01-15T10:30:00.000Z"
}
}