At this point, both Lambda functions are connected to API Gateway. Let’s do a quick check before moving to full testing.
In API Gateway, click on /login → POST → Integration Request
Confirm Lambda Function shows loginFunction
Click on /songs → GET → Integration Request
Confirm Lambda Function shows getSongsFunction
Click on /songs → GET → Method Request
Confirm Authorization shows CognitoAuthorizer

API Gateway has a built-in test tool.
/login → POST → TEST (lightning bolt icon){
"email": "test@example.com",
"password": "Test@12345"
}
Status: 200 with idToken, accessToken, refreshToken in the response body/songs → GET → TESTStatus: 401 — the authorizer blocks the requestidToken/songs → GET → TESTAuthorization: <paste idToken here>
Status: 200 with the songs listIf all three tests pass, the setup is correct. Proceed to the Testing section for end-to-end testing with a real HTTP client.