/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 Parameter | Type | Description |
---|---|---|
new_api_key | string | Indicates the value assigned to the new API key. |
new_key_id | string | Indicates the ID assigned to the new API key. |
error | int | Indicates 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.
🔓
API Auth
Open Recipe
from uplynk_api2_auth import Call
print(Call('/api2/owners/api-key/add'))
{
"new_api_key": "a735c56ea4014685bc74c0a375236cc5",
"new_key_id": "af54986547374c36a64776bec97d6ac2",
"error": 0
}