POST/v3/webhooksCreate a v3 webhook

Create a webhook that subscribes on event types. We recommend an HMAC to validate the integrity of our messages. The HMAC is calculated by applying the secretHmac on the entire payload as string. It is provided to the webhook endpoint in the X-Bold-Hmac-SHA256 header. The secretHttp value is passed back via the X-Bold-Secret header. Refer to GET v2/events for the event output format your application will be receiving.
The types field selects which events are delivered. If left empty, all supported events are emitted.
headerAuthorizationAuthentication token (bearer token or API key).
{
"organizationId" : Number,
"secretHttp" : String,
"webhookUrl" : String,
"types" : ["DeviceActivation" / "DeviceDeactivation" / "DeviceBoot" / "DeviceStatus" / "DeviceTamperVibration" / "DeviceTamperRotations" / "DeviceTamperFaultyPin" / "DeviceLocked" / "MatterCommissioning" / "ThreadConnection"]
}

Response

status401Invalid authentication token
{
"id" : Number,
"secretHmac" : String
}

Example: Connect a v3 Webhook to our platform

POST/v3/webhooks

headerAuthorizationBearer ab25e190-8c9a-4e3d-b77e-c25552f572fe
{
"organizationId": 1,
"secretHttp": "vuktWTDReGXCbFFz",
"webhookUrl": "https://webhooks.athom.com/webhook/YYYYY",
"types": ["DeviceActivation", "DeviceLocked"]
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{
"id": 2,
"secretHmac": "Yh5vDHNGG9rV00wD2K9Emf0Va5iBkqsC"
}

Example: Reject a v3 Webhook whose URL is already used by a v2 webhook