Get Current User
Retrieve the currently authenticated dashboard user's information.
Endpoint
INFO
GET /api/v1/dashboard/me
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/dashboard/me \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "User retrieved",
"data": {
"id": 1,
"name": "Admin User",
"email": "admin@agency.com",
"role": "agency_admin",
"avatar_url": "https://api.daakey.com/storage/avatars/1.jpg",
"agency": {
"id": 1,
"name": "Downtown Agency",
"code": "DOWNTOWN01"
},
"partner": {
"id": 1,
"name": "Acme Car Rentals"
},
"permissions": [
"vehicles.view",
"vehicles.create",
"vehicles.edit",
"vehicles.delete",
"bookings.view",
"bookings.manage",
"clients.view",
"clients.edit"
],
"last_login_at": "2024-01-15T09:00:00Z",
"created_at": "2024-01-01T00:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}User Roles
| Role | Description |
|---|---|
super_admin | Full system access |
partner_admin | Partner-level management |
agency_admin | Agency-level management |
agency_staff | Limited agency access |