Organizasyon Üyeleri
Organizasyonun üyelerini listeler.
Endpoint
GET /api/v1/organizations/\{uuid\}/members
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
organizations.view- Tüm organizasyonları görüntülemeorganizations.view.own- Sadece kendi organizasyonlarını görüntüleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Organizasyon UUID'si |
Response
Success Response (200 OK)
[
{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"email": "user@example.com",
"pivot": {
"organization_id": 1,
"user_id": 1,
"role": "admin",
"is_active": true,
"created_at": "2025-11-20T12:00:00.000000Z"
}
}
]
Error Responses
404 Not Found
{
"message": "Organization not found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X GET https://api.example.com/api/v1/organizations/550e8400-e29b-41d4-a716-446655440000/members \
-H "Authorization: Bearer \{token\}"
Notes
- Üyeler pivot tablo üzerinden ilişkilendirilir
- Pivot tabloda
roleveis_activebilgileri bulunur
Related Endpoints
- Üye Ekle - Organizasyona üye ekle
- Üye Güncelle - Üye bilgilerini güncelle