Replacing MASTER_KEY with REST_API_KEY