Implementation of whitelist api