Access headers/context variables with batch proccessing

Hello,

Is it anyway to access request headers or context variables within batch processing? We are trying to aggregate some API reguests with inline batch processing but we don’t know how can we access some of information within batch processing.

When users requests via https://test.api.tyk.com/[email protected], we would like to be able to call another API within the same request so when users hits that URL, we want, at the same time, run another API call to https://customer.domain.com and aggregate those 2 responses. To do that, we need to access last line from https://test.api.com which is mail, and put that mail in batch request. I know there is some context variables etc. but this does not work in batch processing. Is it anyway to access that information?

Thanks!