Invoke APIGW

Job ID: 36501023

Budget: $10 – $30 USD

I am trying to invoke apigw with the aws cli command https://docs.aws.amazon.com/cli/latest/reference/apigateway/test-invoke-method.html
aws apigateway test-invoke-method --rest-api-id 1234123412 --resource-id 3gapai --http-method POST --path-with-query-string '/pets/1' --body {$passed in the key value}

It is returning 500 status code with message as Account mismatch with decrypt principal.