Adding API call to header