check for config in api