add HTTP options to API calls