read and query rest functions for activation keys