Validate that the user may use an org as their workspace context
Checks active membership in the given org before the client flips its X-Current-Org-Id header. The literal value “personal” is always valid and returns currentOrgId: null without a database lookup. Returns 403 if the user is not an active member of the requested org. Requires a Nevermined API key or a Privy identity token.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Organization id to validate as the workspace context. Pass the literal value "personal" to select the no-org (personal) context, which always validates and returns currentOrgId: null.
"org-abc123"
Response
User is allowed to use this org context
Whether the user is allowed to use the requested org as their workspace context
true
The org ID that was validated, or null for personal context
"org-abc123"
Role of the user in the organization
Admin, Member "Member"
Name of the organization
"Acme Corp"
Type of the organization
Premium, Enterprise, Lapsed, Other "Lapsed"
Related topics
Get the organization info for a userOrganizations & WorkspacesWorkspaces & MembersList the authenticated user's active org membershipsAPI error codes