π’ GET - Team Members
Get Team Members
Get all team members and pending invitations for an organization
GET
Returns all active team members and pending invitations for the Settings - Team page.
This endpoint uses intelligent caching. Member data is cached for 5 minutes
and automatically refreshed via Clerk webhooks when members join/leave. Most
requests respond in ~10ms using cached data.
Path Parameters
The Clerk organization ID
Query Parameters
Maximum number of members to return
Pagination offset
Whether to include pending invitations
Bypass cache and fetch fresh data from Clerk API. Use sparingly as this is
slower (~200ms vs ~10ms).
Response
The organization ID
Whether the data was served from cache (true) or fetched fresh from Clerk
(false)
List of active team members
Total count of active members
List of pending invitations (if
include_pending=true)Member Object
| Field | Type | Description |
|---|---|---|
membership_id | string | Membership ID |
user_id | string | Clerk user ID |
first_name | string | Userβs first name |
last_name | string | Userβs last name |
email | string | Userβs email address |
image_url | string | URL to userβs profile image |
role | string | "org:admin" or "org:member" |
created_at | integer | Unix timestamp when user joined |
Pending Invitation Object
| Field | Type | Description |
|---|---|---|
id | string | Invitation ID |
email | string | Invited email address |
role | string | Role theyβll have when they join |
status | string | "pending" |
created_at | integer | Unix timestamp when invitation sent |
Performance
This endpoint uses smart caching for optimal performance:- Cache Hit (~95% of requests): ~10-20ms response time
- Cache Miss: ~200-300ms (fetches from Clerk, then caches)
- Cache Duration: 5 minutes
- Auto-Refresh: Clerk webhooks update cache in real-time when members change
force_refresh=true only when you need guaranteed fresh data (e.g., immediately after bulk operations).
Notes
- Requires authentication with a valid Clerk JWT token
- User must be a member of the organization to view members
- Pending invitations are only returned if
include_pending=true - Member data is automatically synced via Clerk webhook