Generate posty apikey only once and fix attribute name