Skip to main content
Participant
September 12, 2024

Unable to use API to generate images

  • September 12, 2024
  • 3 replies
  • 254 views

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?
 

3 replies

Kevin Stohlmeyer
Community Expert
Community Expert
September 12, 2024

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

Participant
September 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?

Kevin Stohlmeyer
Community Expert
Community Expert
September 12, 2024

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