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"
}
}
Authentication
Verify token
Verify the current authentication token and get user info
POST
/
verify
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"
}
}
This endpoint requires authentication. Include your JWT token in the request.
Response
Authorization status (“authorized” or “unauthorized”)
User information (only if authorized)
Show properties
Show properties
User’s first name
User’s last name
User’s username
User’s email
User role (
user, admin, or moderator)Profile picture URL (null if not set)
User’s country (null if not set)
User’s city (null if not set)
User’s passport ID (null if not set)
User’s phone number (null if not set)
User’s address (null if not set)
Profile verification status
User verification details including email and identity verification status
Array of liked post IDs
Account creation timestamp
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"
}
}
⌘I