User Details
Retrieve detailed information about a dashboard user.
WARNING
Requires super-admin role.
Endpoint
INFO
GET /api/v1/dashboard/users/{user}
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
user | integer | User ID |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/dashboard/users/2 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "User retrieved",
"data": {
"id": 2,
"name": "Partner Admin",
"email": "admin@partner.com",
"role": "partner_admin",
"status": "active",
"avatar_url": "https://api.daakey.com/storage/avatars/2.jpg",
"partner": {
"id": 1,
"name": "Acme Car Rentals"
},
"agency": null,
"permissions": [
"agencies.view",
"agencies.create",
"agencies.edit",
"vehicles.view",
"vehicles.create",
"bookings.view"
],
"activity": {
"last_login_at": "2024-01-15T10:00:00Z",
"login_count": 45,
"actions_today": 12
},
"created_at": "2024-01-05T00:00:00Z",
"updated_at": "2024-01-15T00:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}