question

newuser-0b77dbbf-ee4b-4f07-9c0d-bbdcb8cf3c99 avatar image

How to access Alexa custom skill POST HTTP header in AWS lambda function

I have an Alexa custom skill that has an AWS lambda function as an end point. When the skill POSTs a request to the end point, I would like the lambda function to route the request to a specific URL. I have a partial implementation working, but I really need access to the POST request HTTP header so that I can avoid having to replicate the header info manually. How can I do that? This is an Alexa Skills Kit event trigger, but I don't see how to get at the HTTP POST request header inside my lambda_function.py (USING PYTHON) code...

alexa skills kitlambdahelp
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

newuser-0b77dbbf-ee4b-4f07-9c0d-bbdcb8cf3c99 avatar image
newuser-0b77dbbf-ee4b-4f07-9c0d-bbdcb8cf3c99 answered

My skill ID is amzn1.ask.skill.9ffeebf5-239b-41cb-905f-31bb5b09b45e

10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.