Adding headers to API calls