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