Skip to content
Docs

    List Organization Memberships

    GET/v1/organizations/{organization_id}/memberships

    List all memberships for an organization

    Path ParametersExpand Collapse
    organization_id: string
    Query ParametersExpand Collapse
    cursor: optional string

    Pagination cursor returned by a previous request

    limit: optional number

    Maximum number of items to return

    maximum100
    minimum10
    ReturnsExpand Collapse
    OrganizationMembershipList object { items, pagination }
    items: array of OrganizationMembership { id, created_at, organization_id, 3 more }
    id: string

    Membership ID.

    created_at: string

    When the membership was created.

    formatdate-time
    organization_id: string

    Organization ID.

    role: "owner" or "member"

    Role of the user in the organization.

    One of the following:
    "owner"
    "member"
    updated_at: string

    When the membership was updated.

    formatdate-time
    user_id: string

    User ID.

    List Organization Memberships

    curl https://api.nirvanalabs.io/v1/organizations/$ORGANIZATION_ID/memberships \
        -H "Authorization: Bearer $NIRVANA_LABS_API_KEY"
    {
      "items": [
        {
          "id": "987e6543-e89b-12d3-a456-426614174000",
          "created_at": "2025-01-01T00:00:00Z",
          "organization_id": "123e4567-e89b-12d3-a456-426614174000",
          "role": "owner",
          "updated_at": "2025-01-01T00:00:00Z",
          "user_id": "user_01H8GQBX3Z"
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }
    Returns Examples
    {
      "items": [
        {
          "id": "987e6543-e89b-12d3-a456-426614174000",
          "created_at": "2025-01-01T00:00:00Z",
          "organization_id": "123e4567-e89b-12d3-a456-426614174000",
          "role": "owner",
          "updated_at": "2025-01-01T00:00:00Z",
          "user_id": "user_01H8GQBX3Z"
        }
      ],
      "pagination": {
        "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
        "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
        "total_count": 125
      }
    }