> ## Documentation Index
> Fetch the complete documentation index at: https://nevermined.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List the authenticated user's active org memberships

> Returns all active memberships for the authenticated user. Used by the workspace switcher dropdown. Empty array when the user belongs to no active organizations. Requires a Nevermined API key or a Privy identity token.



## OpenAPI

````yaml /api-reference/organizations-openapi.json get /organizations/my-memberships
openapi: 3.0.0
info:
  title: Nevermined Organizations API
  description: >-
    Manage a Nevermined organization programmatically — members, tiers, groups &
    budgets, treasury wallets, customers, webhooks, analytics, and
    agent-discovery surfaces.
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.sandbox.nevermined.app/api/v1
    description: Sandbox
  - url: https://api.live.nevermined.app/api/v1
    description: Live
security: []
tags:
  - name: Organizations
    x-group: General
    description: Organization settings, members & roles, and workspace context.
  - name: Organizations - Billing
    x-group: Billing
    description: Tiers, subscriptions, invoices, checkout, and the public tier catalog.
  - name: Groups
    x-group: Groups & Budgets
    description: Organization groups, per-group budgets, and shared payment methods.
  - name: Organizations - Wallets
    x-group: Wallets
    description: Custodial stablecoin treasury wallets.
  - name: Organizations - Customers
    x-group: Customers
    description: The white-label customer CRM (Enterprise).
  - name: Organizations - Analytics
    x-group: Analytics
    description: Revenue, MRR, usage, conversion, and per-member metrics.
  - name: Organizations - Webhooks
    x-group: Webhooks
    description: Outbound webhook subscriptions and deliveries.
  - name: Organizations - Activity
    x-group: Activity
    description: The organization activity feed.
  - name: Organizations - Realtime
    x-group: Realtime
    description: Realtime WebSocket secret management (Enterprise).
  - name: Invitations
    x-group: Invitations
    description: Invite people to an organization.
  - name: Organizations - Integration
    x-group: Agent Discovery
    description: >-
      Public agent-discovery surfaces (llms.txt, agentic-instructions.md,
      ai-catalog.json).
paths:
  /organizations/my-memberships:
    get:
      tags:
        - Organizations
      summary: List the authenticated user's active org memberships
      description: >-
        Returns all active memberships for the authenticated user. Used by the
        workspace switcher dropdown. Empty array when the user belongs to no
        active organizations. Requires a Nevermined API key or a Privy identity
        token.
      operationId: OrganizationsController_getMyMemberships
      parameters: []
      responses:
        '200':
          description: Array of active memberships (may be empty)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MyMembershipDto'
        '401':
          description: Authenticated identity could not be resolved (BCK.AUTH.0002).
      security:
        - Authorization: []
components:
  schemas:
    MyMembershipDto:
      type: object
      properties:
        orgId:
          type: string
          example: org-abc123
          description: Organization ID
        orgName:
          type: string
          example: Acme Corp
          description: Organization display name
        role:
          type: string
          example: Member
          description: Role of the authenticated user in this organization
          enum:
            - Admin
            - Member
        orgType:
          type: string
          example: Lapsed
          description: Organization type
          enum:
            - Premium
            - Enterprise
            - Lapsed
            - Other
        isAdmin:
          type: boolean
          example: false
          description: Whether the user is an admin of this organization
        hasSubscriptionHistory:
          type: boolean
          example: false
          description: >-
            True when the org has at least one organizationSubscription row —
            i.e. the org has previously been associated with a paid tier
            (active, past_due, trialing, lapsed, or canceled). Combined with
            `orgType === Lapsed` it distinguishes "subscription expired" (block
            resource creation) from "free org that never subscribed" (allow
            within free caps).
        group:
          nullable: true
          description: >-
            The caller's active group in this org plus its shared team budget,
            so a buyer/agent can see the team cap before spending. `null` when
            the caller belongs to no active group.
          type: object
          allOf:
            - $ref: '#/components/schemas/MyMembershipGroupDto'
      required:
        - orgId
        - orgName
        - role
        - orgType
        - isAdmin
        - hasSubscriptionHistory
    MyMembershipGroupDto:
      type: object
      properties:
        groupId:
          type: string
          example: grp-9f2a1c
          description: The caller's active group ID in this org.
        name:
          type: string
          example: Marketing
          description: Group display name.
        budgets:
          description: >-
            The TEAM's shared remaining budgets, one entry per configured
            currency. An EMPTY array means the group has NO budget configured;
            an ABSENT field means the budgets could not be read (unknown — do
            NOT treat as 'no cap'; the ceiling is still enforced at charge
            time).
          type: array
          items:
            $ref: '#/components/schemas/MyMembershipBudgetDto'
      required:
        - groupId
        - name
    MyMembershipBudgetDto:
      type: object
      properties:
        currency:
          type: string
          example: usd
          description: Currency of this budget.
        remainingBudgetCents:
          type: string
          example: '150000'
          description: >-
            The TEAM's shared remaining budget for this currency this period, in
            minor units, floored at 0. Shared by every active group member — the
            team ceiling, NOT a personal allowance.
      required:
        - currency
        - remainingBudgetCents
  securitySchemes:
    Authorization:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Get the organization info for a user](/docs/api-reference/organizations/get-the-organization-info-for-a-user.md)
- [List organization activity events](/docs/api-reference/organizations--activity/list-organization-activity-events.md)
- [Accept an organization invitation](/docs/api-reference/invitations/accept-an-organization-invitation.md)
- [API error codes](/docs/development-guide/api-errors/codes.md)
- [Organizations & Workspaces](/docs/integrate/patterns/organizations.md)
