Kullanıcı Detayı
UUID ile kullanıcı detayını getirir.
Endpoint
GET /api/v1/users/\{uuid\}
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
users.view- Tüm kullanıcıları görüntülemeusers.view.own- Sadece kendi profilini görüntüleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Kullanıcı UUID'si |
Response
Success Response (200 OK)
{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"is_active": true,
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z",
"detail": {
"first_name": "John",
"last_name": "Doe",
"phone": "+90 555 000 00 00"
},
"setting": {
"locale": "tr",
"timezone": "Europe/Istanbul"
},
"roles": [
{
"id": 1,
"name": "Super Admin",
"slug": "mgmt.superadmin",
"permissions": [...]
}
]
}
Error Responses
404 Not Found
{
"message": "User not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X GET https://api.example.com/api/v1/users/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer \{token\}"
Notes
.ownpermission'ı olan kullanıcılar sadece kendi profilini görüntüleyebilir- Silinmiş veya pasif kullanıcılar için 404 döner
Related Endpoints
- User List - Kullanıcı listesi
- Update User - Kullanıcı güncelle