map building parameters to API