Response mapping template can only map from the Integration Response to the Method Response.
Have you tried adding the input to the request as part of the payload that is passed onto the Step Function and have the Step Function return it back in the Integration Response? You should then be able to use the data from the incoming request in your mapping template, since it is now part of the integration response.
How to validate header values in the API Gateway request before the integrationAccepted AnswerEXPERTasked 2 years ago
How to define API Gateway to Eventbridge integration?Accepted Answerasked 6 months ago
pass headers from clients via method request to integration request with body intact for REST API in AWS API GatewayAccepted Answerasked 9 months ago
How to use Request Templates in API Gateway Websocket Integration?asked 25 days ago
Why aren't the HTTP headers passed from API Gateway to Step Functions?asked a year ago
API Gateway S3 Integration strip request headerasked 2 months ago
Api Gateway, parse a 429 Responseasked 6 months ago
API Gateway: AWS Service integration using IAM authorizationasked 4 months ago
API Gateway -> Kinesis Mapping IssueAccepted Answerasked 5 months ago
AWS API Gateway Integration Response Mapping Template using request bodyasked 2 months ago