Manojit Ghosh • about 7 years ago
code: 38191, title: Invalid HTTP header
Hi,
I am able to get a token through,
curl --location --request POST "https://test.api.amadeus.com/v1/security/oauth2/token" \
--data "client_id=REDACTED&client_secret=REDACTED&grant_type=client_credentials"
but I am unable to execute the following,
curl -X GET 'https://test.api.amadeus.com/v1/shopping/flight-destinations?origin=PAR&maxPrice=200' -H 'Authentication: Bearer REDACTED'
.
I keep getting the following error,
{
"errors": [
{
"code": "38191",
"title": "Invalid HTTP header",
"detail": "Missing or invalid format for mandatory Authorization header",
"status": "401"
}
]
}
I appreciate your cooperation.
Comments are closed.

0 comments