Create API-Key

/owners/api-key/add

Generates an API key.

An API key generated by this method is immediately available for use.

Response parameters are described below.

Response ParameterTypeDescription
new_api_keystringIndicates the value assigned to the new API key.
new_key_idstringIndicates the ID assigned to the new API key.
errorintIndicates either an error code or 0 to indicate that the API key was created.

Sample request/response:

The Call() function, which is imported from API Auth (see below), prepares the message body and digital signature.

from uplynk_api2_auth import Call

print(Call('/api2/owners/api-key/add'))

{
	"new_api_key": "a735c56ea4014685bc74c0a375236cc5",
	"new_key_id": "af54986547374c36a64776bec97d6ac2",
	"error": 0
}