I have added a mapping template to get the query param from the API.
{ "queryStringParameters": { #foreach($key in $input.params().querystring