curl --request GET \
--url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/profile-get \
--header 'Authorization: Bearer <token>'{
"success": true,
"status": 200,
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Ade",
"last_name": "Johnson",
"username": "adejohnson",
"phone_number": "+2348012345678",
"address": "12 Lagos Street, Ikeja",
"marital_status": "single",
"bio": "Escrow enthusiast",
"avatar": {
"avatar_url": "https://cdn.example.com/avatars/ade.jpg",
"storage_path": "avatars/a1b2c3d4/profile.jpg",
"status": "active"
},
"next_of_kin": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"first_name": "Bola",
"last_name": "Johnson",
"phone": "+2348098765432",
"address": "5 Abuja Close, Garki",
"relationship": "Spouse",
"created_at": "2026-01-10T12:00:00Z"
},
"created_at": "2026-01-01T09:00:00Z",
"updated_at": "2026-04-18T10:00:00Z"
}
}Returns the authenticated user’s full profile including avatar and next of kin. Phone number is included but cannot be changed via API — contact support to update it.
curl --request GET \
--url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/profile-get \
--header 'Authorization: Bearer <token>'{
"success": true,
"status": 200,
"data": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"first_name": "Ade",
"last_name": "Johnson",
"username": "adejohnson",
"phone_number": "+2348012345678",
"address": "12 Lagos Street, Ikeja",
"marital_status": "single",
"bio": "Escrow enthusiast",
"avatar": {
"avatar_url": "https://cdn.example.com/avatars/ade.jpg",
"storage_path": "avatars/a1b2c3d4/profile.jpg",
"status": "active"
},
"next_of_kin": {
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"first_name": "Bola",
"last_name": "Johnson",
"phone": "+2348098765432",
"address": "5 Abuja Close, Garki",
"relationship": "Spouse",
"created_at": "2026-01-10T12:00:00Z"
},
"created_at": "2026-01-01T09:00:00Z",
"updated_at": "2026-04-18T10:00:00Z"
}
}JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.