Ensure you have:
CloudWatch Logs allows you to centralize logs from all of your applications and AWS services and see them as a single, consistent flow of events ordered by time. CloudWatch Logs for Amazon API Gateway offers three levels of detail:
- Errors only: Only generates logs for requests that result in an error response
- Errors and info: Generates logs for all requests made to the backend API
- Request and response: Generates logs that include headers and parts of the request and response bodies
For more information, see Amazon CloudWatch Logs.
To set up Amazon CloudWatch execution logs to troubleshoot backend API request errors: