curl --request GET \
--url https://api.bunship.com/api/v1/organizations/{orgId}/members \
--header 'Authorization: Bearer <token>'{
"members": [
{
"id": "mbr_abc123",
"userId": "usr_cld2abc123def456",
"organizationId": "org_cld2abc123def456",
"role": "owner",
"user": {
"id": "usr_cld2abc123def456",
"email": "[email protected]",
"fullName": "John Doe",
"avatarUrl": "https://cdn.bunship.com/avatars/john.jpg"
},
"joinedAt": "2024-01-15T10:00:00Z"
},
{
"id": "mbr_def456",
"userId": "usr_xyz789ghi012345",
"organizationId": "org_cld2abc123def456",
"role": "member",
"user": {
"id": "usr_xyz789ghi012345",
"email": "[email protected]",
"fullName": "Jane Smith",
"avatarUrl": null
},
"joinedAt": "2024-02-01T14:30:00Z"
}
],
"total": 2
}
List all members of an organization
curl --request GET \
--url https://api.bunship.com/api/v1/organizations/{orgId}/members \
--header 'Authorization: Bearer <token>'{
"members": [
{
"id": "mbr_abc123",
"userId": "usr_cld2abc123def456",
"organizationId": "org_cld2abc123def456",
"role": "owner",
"user": {
"id": "usr_cld2abc123def456",
"email": "[email protected]",
"fullName": "John Doe",
"avatarUrl": "https://cdn.bunship.com/avatars/john.jpg"
},
"joinedAt": "2024-01-15T10:00:00Z"
},
{
"id": "mbr_def456",
"userId": "usr_xyz789ghi012345",
"organizationId": "org_cld2abc123def456",
"role": "member",
"user": {
"id": "usr_xyz789ghi012345",
"email": "[email protected]",
"fullName": "Jane Smith",
"avatarUrl": null
},
"joinedAt": "2024-02-01T14:30:00Z"
}
],
"total": 2
}
members:read permission.
members:read permission.Show member properties
{
"members": [
{
"id": "mbr_abc123",
"userId": "usr_cld2abc123def456",
"organizationId": "org_cld2abc123def456",
"role": "owner",
"user": {
"id": "usr_cld2abc123def456",
"email": "[email protected]",
"fullName": "John Doe",
"avatarUrl": "https://cdn.bunship.com/avatars/john.jpg"
},
"joinedAt": "2024-01-15T10:00:00Z"
},
{
"id": "mbr_def456",
"userId": "usr_xyz789ghi012345",
"organizationId": "org_cld2abc123def456",
"role": "member",
"user": {
"id": "usr_xyz789ghi012345",
"email": "[email protected]",
"fullName": "Jane Smith",
"avatarUrl": null
},
"joinedAt": "2024-02-01T14:30:00Z"
}
],
"total": 2
}
| Status | Code | Description |
|---|---|---|
401 | AUTHENTICATION_ERROR | Missing or invalid Bearer token |
403 | AUTHORIZATION_ERROR | Insufficient permissions (members:read required) |
404 | NOT_FOUND | Organization not found |
curl https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/members \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."