api for getting config