Get Profile
Retrieve comprehensive profile information for the currently authenticated client. This endpoint returns detailed account data including personal information, verification status, and driver's license details.
The profile endpoint is essential for displaying user information throughout the app, such as in the profile screen, settings, or dashboard. It provides more detailed information than the /auth/me endpoint, including driver's license verification status which is crucial for determining booking eligibility.
Use this endpoint when you need to:
- Display the user's complete profile in the app
- Check if the user's driver's license is verified
- Show verification badges or completion indicators
- Pre-fill forms with existing user data
Endpoint
INFO
GET /api/v1/client/profile
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
X-Agency-Signature | {signature} | Yes |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/client/profile \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-H "X-Agency-Signature: {signature}"Response
Success (200)
json
{
"success": true,
"message": "Profile retrieved",
"data": {
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"phone": "+1234567890",
"avatar_url": "https://api.daakey.com/storage/avatars/1.jpg",
"phone_verified_at": "2024-01-01T00:00:00Z",
"email_verified_at": "2024-01-01T00:00:00Z",
"driver_license": {
"number": "DL123456",
"expiry_date": "2025-12-31",
"verified": true
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-15T00:00:00Z"
},
"meta": {
"agency_id": 123,
"agency_code": "AGENCY123"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}Error (401)
json
{
"success": false,
"message": "Unauthenticated",
"data": null,
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}