Keys are attached to a developer application and are used to grant access to a set of APIProducts. Multiple can be added to a developer application.
Method | Path | What |
---|---|---|
GET | /v1/developers/developer/apps/appname/keys | retrieve all keys of developer app |
POST | /v1/developers/developer/apps/appname/keys | creates new key for developer app |
GET | /v1/developers/developer/apps/appname/keys/key | retrieve key of developer app |
POST | /v1/developers/developer/apps/appname/keys/key | updates key of developer app |
DELETE | /v1/developers/developer/apps/appname/keys/key | deletes key of developer app |
For POST:
- content-type: application/json is required.
- consumerKey & consumerSecret can be provided to imported existing keys.
{
"consumerKey": "4DrmtHuaA9ywu4rGTr2C0CFcgr1iLPbu",
"consumerSecret": "4SOMItkaLErzH4n2",
"apiProducts" : [
{
"apiproduct" : "people",
"status" : "approved"
}, {
"apiproduct" : "prem1iumfish",
"status" : "approved"
}
],
"status": "approved"
}
fieldname | optional | purpose |
---|---|---|
consumerKey | mandatory | api key, used in apikey-based authentication |
consumerSecret | mandatory | api key secret, used in OAuth2 authentication |
apiProducts | mandatory | allowed APIProducts |
status | mandatory | status, requests will not be allowed if not set to "approved" |