Add method to set header in API request