MikiBelavista
MikiBelavista

Reputation: 2758

Why did my POST to AWS API Gateway failed?

I use POSTMAN to test my Cloudformation created APIs

POST https://6pppnxxxh.execute-api.eu-central-1.amazonaws.com/Prod/users

I got

{
    "message": "Missing Authentication Token"
}

My prod stage enter image description here

I doublechecked PROD Invoke URL. How to solve this problem? I tried with curl

 curl --header "Content-Type: application/json" --request POST --data '{ "emailaddress" : "[email protected],"first name" : "Aca","last name" : "Ljubascikic", "password" : "bbbac_96"}' https://6pppnxxxh.execute-api.eu-central-1.amazonaws.com/Prod/users

The same issue

{"message":"Missing Authentication Token"}

How to test from CLI?

Upvotes: 0

Views: 186

Answers (1)

Arun Kamalanathan
Arun Kamalanathan

Reputation: 8603

According to your screenshot /Prod/users is a PUT method and you are using POST in your command. I would confirm that first.

Hope this helps.

Upvotes: 1

Related Questions