persistence config in api