#161: Validate API call input.