types field selects which events are delivered. If left empty, all supported events are emitted.| header | Authorization | Authentication token (bearer token or API key). |
| { "organizationId" : Number, "secretHttp" : String, "webhookUrl" : String, "types" : ["DeviceActivation" / "DeviceDeactivation" / "DeviceBoot" / "DeviceStatus" / "DeviceTamperVibration" / "DeviceTamperRotations" / "DeviceTamperFaultyPin" / "DeviceLocked" / "MatterCommissioning" / "ThreadConnection"] } | ||
| status | 401 | Invalid authentication token |
| { "id" : Number, "secretHmac" : String } | ||
| header | Authorization | Bearer ab25e190-8c9a-4e3d-b77e-c25552f572fe |
{ "organizationId": 1, "secretHttp": "vuktWTDReGXCbFFz", "webhookUrl": "https://webhooks.athom.com/webhook/YYYYY", "types": ["DeviceActivation", "DeviceLocked"] } | ||
| status | 200 | |
| header | Access-Control-Expose-Headers | authorization, content-type |
| header | Access-Control-Allow-Headers | authorization, content-type |
| header | Access-Control-Allow-Methods | GET, POST, DELETE, OPTIONS, PUT |
| header | Access-Control-Allow-Origin | * |
| header | Strict-Transport-Security | max-age=31536000; includeSubDomains |
| header | X-Frame-Options | SAMEORIGIN |
| header | X-Content-Type-Options | nosniff |
| header | X-XSS-Protection | 1; mode=block |
| header | Content-Security-Policy | default-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none' |
| header | Referrer-Policy | no-referrer |
| header | Feature-Policy | self |
| header | Permissions-policy | interest-cohort=() |
{ "id": 2, "secretHmac": "Yh5vDHNGG9rV00wD2K9Emf0Va5iBkqsC" } | ||