Create a webhook connection
Creates a webhook connection (a destination URL plus a generated HMAC signing secret) that alerts can target as a WEBHOOK notification channel. The signing secret is returned only in this response — store it securely; it cannot be retrieved again. The URL must be https and must resolve to a public address. Send an Idempotency-Key to retry safely: a retry under the same key returns the same connection and secret instead of creating another.
Request
- Base URL: https://api.particle.pro
- URL: https://api.particle.pro/v1/projects/{projectId}/webhooks/connections
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Path parameters
Project ID (base62-encoded).
Headers
A key you choose, such as a UUID, to retry this request safely. Resend the same key with the same request and the first response is returned with Idempotent-Replayed: true instead of the request running again, for 24 hours after it succeeded. The same key with a different request returns 422 idempotency_key_reused; a retry while the first request is still running returns 409 idempotency_key_in_use. A request that fails does not use up its key.
Request body
Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.