Import existing Key

I am looking for a solution to accomplish the below use case.

Use case: import API key( client_id and client_secret) into my Apigee App.

Query1: Is this feature available in Apigee edge evaluation?

Query2: Getting 404 error while trying below curl command even though Authorization is working fine and my App is active.

https://api.enterprise.apigee.com/v1/organizations/tattwadarsibiswal-eval/developers/tattwadarsi.bis...

Reference: https://docs.apigee.com/api-platform/publish/import-existing-consumer-keys-and-secrets

Query3: Don't see Client Key & Secret key inputs in "App keys: Developer" page.

https://apidocs.apigee.com/docs/developer-app-keys/1/routes/organizations/%7Borg_name%7D/developers/...

Solved Solved
0 2 395
1 ACCEPTED SOLUTION

Former Community Member
Not applicable

I cannot confirm that you can not import an apikey to eval - at least for me it's working. Due to several restrictions of my working environment I'm using GCP cloud shell to execute the command with following curl statement:

curl -H 'Content-type:application/json' -u myuser@myorganization:MyEdgePassword https://api.enterprise.apigee.com/v1/organizations/my-private-eval/developers/helloworld@apigee.com/... -X POST -d \
'{
"consumerKey": "19sQPZSkQooYjDfOAXgwGt2kxwG7iODN",
"consumerSecret": "l8aAgQ4eptGAVrMS"
}'

So I guess your problem could be related to the headline: import existing key.

You cannot have an apikey more than once within one organization. If I try to insert the same key one again to another app I receive the following error:

{
  "code" : "keymanagement.service.ConsumerKeyAlreadyExists",
  "message" : "ConsumerKey already exists",
  "contexts" : [ ]
}

View solution in original post

2 REPLIES 2

Former Community Member
Not applicable

I cannot confirm that you can not import an apikey to eval - at least for me it's working. Due to several restrictions of my working environment I'm using GCP cloud shell to execute the command with following curl statement:

curl -H 'Content-type:application/json' -u myuser@myorganization:MyEdgePassword https://api.enterprise.apigee.com/v1/organizations/my-private-eval/developers/helloworld@apigee.com/... -X POST -d \
'{
"consumerKey": "19sQPZSkQooYjDfOAXgwGt2kxwG7iODN",
"consumerSecret": "l8aAgQ4eptGAVrMS"
}'

So I guess your problem could be related to the headline: import existing key.

You cannot have an apikey more than once within one organization. If I try to insert the same key one again to another app I receive the following error:

{
  "code" : "keymanagement.service.ConsumerKeyAlreadyExists",
  "message" : "ConsumerKey already exists",
  "contexts" : [ ]
}

Thank you Jaroslav for your inputs.

I am able to import keys into my eval application. There problem was related to missing /apps/ in URL.