Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Unable to use API to generate images

New Here ,
Sep 12, 2024 Sep 12, 2024

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?
 
Bug Unresolved
TOPICS
Imaging
174
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
3 Comments
Community Expert ,
Sep 12, 2024 Sep 12, 2024

@chris_2734 are you an Enterprise customer that has a contract for the API? It is only available to enterprise customers.

Translate
Report
New Here ,
Sep 12, 2024 Sep 12, 2024

Hi @Kevin Stohlmeyer no, but I'm happy to become a paying customer. Can you point me to the correct place to become an enterprise customer?

Translate
Report
Community Expert ,
Sep 12, 2024 Sep 12, 2024
LATEST

@chris_2734 Enterprise customers have a starting enrollment of 100 users. Individuals cannot become an enterprise customer unfortunately.

Translate
Report