AdvancedApi
Get all registered decentral webhooks.
GET /api/decentralWebhook
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of webhook objects. |
Source code in nukiwebapi/advanced_api.py
11 12 13 14 15 16 17 18 19 20 | |
Create a new decentral webhook.
PUT /api/decentralWebhook
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
webhook_url
|
str
|
The HTTPS URL to receive webhooks. |
required |
webhook_features
|
List[str]
|
Features to trigger webhooks. Must be subset of: ["DEVICE_STATUS", "DEVICE_MASTERDATA", "DEVICE_CONFIG", "DEVICE_LOGS", "DEVICE_AUTHS", "ACCOUNT_USER"] |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
Unregister a decentral webhook.
DELETE /api/decentralWebhook/{id}
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
webhook_id
|
int
|
ID of the webhook to delete. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
Get a list of webhook logs for a given API key (descending order).
GET /api/key/{apiKeyId}/webhook/logs
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
api_key_id
|
int
|
API key ID. |
required |
id
|
str
|
Filter for older logs. |
None
|
limit
|
int
|
Maximum number of logs (max 100, default 50). |
50
|
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]]
|
List of webhook logs. |
Source code in nukiwebapi/advanced_api.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
Create asynchronous smartlock authorizations.
PUT /smartlock/auth/advanced
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth_data
|
dict
|
Smartlock authorization creation payload. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
101 102 103 104 105 106 107 108 109 110 111 112 113 | |
Execute a smartlock action with callback.
POST /smartlock/{smartlockId}/action/advanced
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
smartlock_id
|
str
|
Smartlock ID. |
required |
action_data
|
dict
|
Smartlock action payload. |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
Lock a smartlock (advanced).
POST /smartlock/{smartlockId}/action/lock/advanced
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
smartlock_id
|
str
|
Smartlock ID. |
required |
lock_data
|
dict
|
Optional payload. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
Unlock a smartlock (advanced).
POST /smartlock/{smartlockId}/action/unlock/advanced
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
smartlock_id
|
str
|
Smartlock ID. |
required |
unlock_data
|
dict
|
Optional payload. |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
API response dict. |
Source code in nukiwebapi/advanced_api.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |