From f2a944bb33ac437963bb08aaf038184264d4e175 Mon Sep 17 00:00:00 2001 From: Zac West <74188+zacwest@users.noreply.github.com> Date: Mon, 18 Oct 2021 20:06:32 -0700 Subject: [PATCH] Add note for webhook_id inclusion (#1095) --- docs/api/native-app-integration/notifications.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/native-app-integration/notifications.md b/docs/api/native-app-integration/notifications.md index dee76ef0..e380c4b1 100644 --- a/docs/api/native-app-integration/notifications.md +++ b/docs/api/native-app-integration/notifications.md @@ -32,7 +32,8 @@ Your server should accept a HTTP POST payload like this: "registration_info": { "app_id": "io.home-assistant.iOS", "app_version": "1.0.0", - "os_version": "12.2" + "os_version": "12.2", + "webhook_id": "webhook_id_from_registration" }, "data": { "key": "value" @@ -40,6 +41,10 @@ Your server should accept a HTTP POST payload like this: } ``` +:::info +`webhook_id` will only be included from core-2021.11 or later. +::: + It should respond with a 201 status code assuming the notification was queued for delivery successfully. ### Errors