Rotate a webhook's signing secret
Dashboard-only
DeviceGrant), and use the Device Control endpoints.The previous secret stops verifying signatures immediately - update your endpoint's verification key before or right after calling this.
Authorization
sessionAuth A session token for an existing account, obtained from POST /auth/login (see the Authentication endpoints) - not an API key. Endpoints marked with this scheme reject API key callers outright, regardless of what that key is granted. Outside the Authentication endpoints themselves, everything requiring this scheme manages dashboard resources (schedules, rules, grants, keys, device configuration) and mirrors what a human does in the Nexalware web app - it is not meant to be automated by a third-party integration the way the Device Control endpoints are.
In: header
Path Parameters
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/webhooks/whk_x1y2z3/rotate-secret"{ "webhookId": "string", "secret": "string"}Register a webhook POST
Delivers every event type (relay_changed, telemetry, device_online/offline, schedule_fired) to `url`, scoped to whatever `keyId` already has a DeviceGrant for - no separate scope to configure. `keyId` is not a secret - it's the same value [List your account's API keys](/docs/reference/api-keys/list-your-accounts-api-keys) returns for each key (e.g. `key_9f8e7d6c`), not the key's raw secret value. No key yet? [Create an API key](/docs/reference/api-keys/create-an-api-key) first, then grant it device access before a webhook on it will deliver anything - see [Create a Scoped Device Grant](/docs/guides/create-a-scoped-device-grant). See [Receiving Webhooks](/docs/reference/receiving-webhooks) for how to receive and verify what gets delivered here. The signing secret is returned once, at creation only, and cannot be recovered afterward - rotate it with POST /:webhookId/rotate-secret if it's lost.
Update a webhook's URL or enabled state PATCH
Next Page