List organization members
GET
/organizations/:id/membersList the members of an organization. User objects contain public fields only and never include email.
| Auth | Not required |
|---|
Path parameters
idstringrequiredOrganization ID.
Query parameters
pagenumberPage number (1-based). Default 1.
perPagenumberItems per page. Default 20.
Response
| Field | Type | Description |
|---|---|---|
organizationMembers | OrganizationMember[] | Array of members (each includes user) |
pageInfo | object | Pagination info. |
Request
curl https://api.4s.link/organizations/ID/members \-H "Authorization: Bearer 4s_at_..."
Example response
{"organizationMembers": [{"id": "om1a2b3c-...","role": "ADMIN","title": "Software Engineer","startDate": "2024-04-01","endDate": null,"current": true,"user": { "id": "a1b2c3d4-...", "slug": "taro", "firstName": "太郎", "lastName": "山田", "avatarUrl": "https://.../avatar.png" }}],"pageInfo": { "totalCount": 100, "totalPages": 5, "page": 1, "perPage": 20 }}