-
Notifications
You must be signed in to change notification settings - Fork 30
API Key API
abmagil edited this page Nov 28, 2012
·
9 revisions
This API returns JSON containing information about the API keys existing in the system.
(tdm component)/api/keys/(option)
URL | Operation |
---|---|
/api/keys/list | lists all existing API keys |
/api/keys/create | creates a new, random API key |
/api/keys/create/(keyvalue) | creates a new API key with the specified keyvalue |
/api/keys/delete/(keyvalue) | removes the API key with the specified keyvalue |
GET /api/keys/list
{ "keys": [ { "keyvalue": "(keyvalue)", }, (previous repeated for each key) ], "status": "(status string, "OK" or "ERROR")", "message": "(additional status details)" }
GET /api/keys/create (creates a random key - will be a UUID) or GET /api/keys/create/(keyvalue) (creates the given key)
{ "key": { "keyvalue": "(keyvalue)" }, "status": "(status string, "OK" or "ERROR")", "message": "(additional status details)" }
GET /api/keys/delete/(keyvalue)
{ "key": { "keyvalue": "(keyvalue)" }, "status": "(status string, "OK" or "ERROR")", "message": "(additional status details)" }