Search code examples
azurealexa-skills-kitaws-serverless

How to capture what Alexa console sends to the endpoint?


I am currently learning about the chatbots and developed two different skills. One has an endpoint on Azure and the other's endpoint is on AWS. Everything works fine. I would like to know if there is a way to see what the Alexa console sends to your endpoint (including the header)? The Alexa console only shows the body. I would like to capture header and body so I can test my endpoints with Postman.

enter image description here


Solution

  • POST / HTTP/1.1

    Content-Type : application/json;charset=UTF-8

    Host : your.application.endpoint

    Content-Length :

    Accept : application/json

    Accept-Charset : utf-8

    Signature:

    SignatureCertChainUrl: https://s3.amazonaws.com/echo.api/echo-api-cert.pem

    It's the HTTP HEADER that Alexa is sending with its Body

    For more info : Request and Response JSON Reference