List memberships
Request headers
string
required
Bearer token from your Clerk session. Example:
Bearer eyJhbGc...Response
Returns a JSON array. Each element has the following shape:string
required
Membership record ID.
string
required
The authenticated user’s ID.
string
required
Always
"ACTIVE" for records returned by this endpoint.string
required
ID of the organization this membership belongs to.
string
required
ISO 8601 timestamp when the membership was created.
object
required
The organization record.
object
required
The role assigned to you in this organization.
Example
Get active organization ID
activeOrganizationId stored in your user profile and confirming that you are still an active member. If the stored value is stale (e.g., you were removed), the API clears it and falls back to the first organization in your membership list, alphabetically. Returns null if you have no active memberships.
Request headers
string
required
Bearer token from your Clerk session.
Response
string or null
required
ID of the currently active organization, or
null if none is set or you have no memberships.Example
Get active organization summary
Request headers
string
required
Bearer token from your Clerk session.
Response
string or null
required
ID of the currently active organization, or
null if none is resolved.string or null
required
Display name of the active organization, or
null if none is resolved.Example
Get organization bundle
sortOrder, all roles ordered by slug, and all members ordered by createdAt. Also includes your own membership and role within the org.
Use this endpoint to populate organization settings screens or to inspect the full permission set for a given org before performing actions.
This endpoint returns
404 if you are not an active member of the requested organization. You cannot use it to inspect orgs you have not joined.Path parameters
string
required
ID of the organization to retrieve.
Request headers
string
required
Bearer token from your Clerk session.
Response
The response is anOrgMember record for your own membership, with the full organization and its nested collections included.
string
required
Your membership record ID.
string
required
Your user ID.
string
required
Always
"ACTIVE".object
required
Your assigned role in this organization. Same shape as the
role object in list memberships.object
required
The full organization record.
Error responses
Get user profile
null if no profile has been created yet. A profile is automatically provisioned the first time you create or join an organization, or when you call the upsertUserProfile action.
Request headers
string
required
Bearer token from your Clerk session.
Response
object or null
required
Your user profile, or
null if no profile record exists.Example
Get menu core
Request headers
string
required
Bearer token from your Clerk session.
Response
object or null
required
Your user profile. Same shape as the
profile field in get user profile.object[]
required
Your organization memberships. Same shape as the array returned by list memberships.
string or null
required
The currently active organization ID. Same value as get active organization ID.
