curl --request GET \
--url https://api.example.com/api/users/getprofile{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.name": "<string>",
"data.address": "<string>",
"data.age": 123,
"data.dob": "<string>",
"data.phoneNumber": 123,
"data.authDetails": {
"data.authDetails.email": "<string>",
"data.authDetails.isProfileComplete": true
},
"data.createdAt": "<string>",
"data.updatedAt": "<string>"
}
}curl --request GET \
--url https://api.example.com/api/users/getprofile{
"success": true,
"message": "<string>",
"data": {
"data._id": "<string>",
"data.name": "<string>",
"data.address": "<string>",
"data.age": 123,
"data.dob": "<string>",
"data.phoneNumber": 123,
"data.authDetails": {
"data.authDetails.email": "<string>",
"data.authDetails.isProfileComplete": true
},
"data.createdAt": "<string>",
"data.updatedAt": "<string>"
}
}Retrieve the profile information for the authenticated user.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SidneyEmeka/church_management_system/llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET https://api.yourchurch.com/api/users/getprofile \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"success": true,
"message": "Profile found",
"data": {
"_id": "60d5ec49f1b2c72b8c8e4f3a",
"name": "John Doe",
"address": "123 Main Street, Springfield",
"age": 35,
"dob": "1989-05-15T00:00:00.000Z",
"phoneNumber": 5551234567,
"authDetails": {
"email": "[email protected]",
"isProfileComplete": true
},
"createdAt": "2024-03-15T10:30:00.000Z",
"updatedAt": "2024-03-15T10:30:00.000Z"
}
}
{
"success": false,
"message": "Profile not found",
"data": "You do not have any profile"
}
{
"success": false,
"message": "Acceess Denied",
"data": "Access Token not Found"
}
{
"success": false,
"message": "Acceess Denied",
"data": "Authorization missing"
}
{
"success": false,
"message": "Acccess Denied",
"data": "jwt expired"
}
{
"success": false,
"message": "Profile not found",
"data": "Database connection error"
}