API workflow principles