I am able to generate a token using this code:
curl -X POST \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=33xxx&client_secret=xxxx64yG&scope=openid,AdobeID,read_organizations'
(Those are not my real client_id and client_secret, but I get back a token)
But, then when I try to use this token, it fails with:
-H 'X-Api-Key: 33xxxx' \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json'
{"error_code":"403003","message":"Api Key is invalid"}
I've tried with both "Authorization: ..."
and "Authorization: Bearer ..."
But, neither changes. Is there a different API key I should use?