Ana içeriğe geç

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üleme
  • organizations.view.own - Sadece kendi organizasyonlarını görüntüleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
uuidstringEvetOrganizasyon 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 role ve is_active bilgileri bulunur