# Notification with smartThings api

**URL:** <https://community.smartthings.com/t/notification-with-smartthings-api/241890>\
**Category:** Support\
**Created:** [April 22, 2022, 7:20am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890 "2022-04-22T07:20:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.cho](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/peter.cho/32/156724_2.png) [@peter.cho](https://community.smartthings.com/u/peter.cho)\
**Post date:** [April 22, 2022, 7:20am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/1 "2022-04-22T07:20:32Z")

</div>

i am developing notification with smartThings api

i want to make notification with smartThing api Rules thru Postman

i google it for several days and search for official documents from Samsung smartThings

but i cannot find that how am i going to send body in postman

for example  
when doors open, notify me that ‘the door opened’

---

<div class="post-metadata">

**Author:** ![orangebucket](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/orangebucket/32/81590_2.png) [@orangebucket](https://community.smartthings.com/u/orangebucket)\
**Post date:** [April 22, 2022, 8:52am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/2 "2022-04-22T08:52:14Z")

</div>

I’ve been trying to get Notifications working via the Rules API for a long time but I just can’t get the syntax right. Every now and again I have another go in the hope it will suddenly become clear but it never does so I am stuck waiting for it to be documented.

---

<div class="post-metadata">

**Author:** ![guxdude](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@guxdude](https://community.smartthings.com/u/guxdude)\
**Post date:** [September 14, 2022, 5:20pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/3 "2022-09-14T17:20:20Z")

</div>

I also would like to be able to do a notification via the Rules API. This tutorial seems to demonstrate the lack of such capability.

> [@Advanced Automations with the Rules API](https://community.smartthings.com/t/advanced-automations-with-the-rules-api/201579):
>
> Advanced Rules API Tutorial We will use the rules API to create a trigger that will evaluate a condition then schedule to evaluate that condition again after a defined period of time. This rule could replace SmartApps like “Notify Me When” that were previously complex groovy apps. Requirements: Postman [PAT Token](https://account.smartthings.com/tokens) Getting Started Open Postman and add your PAT token to the header Refresher If you are new to the Rules API, you will need to supply the locationId you want to work with for most requests GET https://api.smartthings.com/v1/rules?locationId=yourID Will return a list of your existing rules Let’s Go Use Postman in a new tab to GET some device IDs. You will need to get a contact sensor and a light bulb. Once you have these, we are going to be sending a POST comman…

While the tutorial is supposed to show a ‘notify me when’ capability, the notification consists of turning on a light. Not really what people want to do.

@nayelyz is there any plan to implement an ability for an actual notification via app in the Rules API? The Rules creation in the app allows creating notifications even to specific users but this capability is missing from the Rules API. So, the Rules API has more extensive capability than creating Rules in the app but is also limited. Seems like anything you can do in the app should be available in the API. Perhaps we need an ‘app’ device that we can command?

thanks,  
Guy

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [September 15, 2022, 1:19am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/4 "2022-09-15T01:19:39Z")

</div>

Hi, Guy!

> [@guxdude](#):
>
> is there any plan to implement an ability for an actual notification via app in the Rules API?

This has been mentioned before by other developers. However, there isn’t an option to send notifications. I’ll ask the team again to know if there’s any update.

---

<div class="post-metadata">

**Author:** ![Nea](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Nea](https://community.smartthings.com/u/Nea)\
**Post date:** [November 5, 2022, 9:54am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/5 "2022-11-05T09:54:40Z")

</div>

Is there an update on this? Specifically, I am interested in showing a notification with text and image of a security camera when motion detected, doorbell ring, etc. This would be very useful on my Samsung phone or Samsung TV (Frame).

Thank you!

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [November 7, 2022, 7:23pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/6 "2022-11-07T19:23:37Z")

</div>

> [@Nea](#):
>
> This would be very useful on my Samsung phone or Samsung TV (Frame).

Welcome to the SmartThings Community, @Nea!  
You can send notifications using the Routines tool, or, are you using only the API/Rules API?

 ![Screenshot_20221107-125900_SmartThings](https://global.discourse-cdn.com/smartthings/original/3X/2/7/273022d407a098e955a74beb6bc37c2293444049.jpeg)

---

<div class="post-metadata">

**Author:** ![Nea](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@Nea](https://community.smartthings.com/u/Nea)\
**Post date:** [November 27, 2022, 5:41am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/7 "2022-11-27T05:41:49Z")

</div>

I attempted to use a routine but there was not enough control over the trigger and the notification was only sent to my phone, not my TV. I will attempt to use the API. Can you link the documentation please. Thank you!

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [November 28, 2022, 2:04pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/8 "2022-11-28T14:04:12Z")

</div>

> [@Nea](#):
>
> I will attempt to use the API. Can you link the documentation please. Thank you!

I was just asking because sending notifications from the [Rules API](https://developer.smartthings.com/docs/automations/rules) isn’t currently available. I’m discussing this with the engineering team.  
Also, AFAIK, notifications are only present in the mobile app. I don’t have any more information about notifications on the TV. In that case, you should contact SmartThings Customer Support to know if it’s possible using the Routines tool.

> **Open here to see their contact info**
>
> #### Through the SmartThings Web page
> 
> 1. Enter [this page](https://www.smartthings.com/)
> 2. Click on “Support” in the upper-right corner
> 3. Check if the URL includes your region. For example, `en-us` here: `https://support.smartthings.com/hc/en-us`
> 4. At the bottom, select “email” and describe your issue as detailed as possible.
> 5. Click on “submit”
> 
> * * *
> 
> #### From the ST app
> 
> 1. Open the SmartThings app
> 2. Go to the menu tab at the bottom-right corner.
> 3. On this page, select the option “contact us” and then go to “Report a problem”
> 4. Accept the generation of logs, fill up the form describing your issue as detailed as possible, and screen captures of the issue always help.
> 5. Click on “submit”. The Customer team will receive this info.
> 
> * * *
> 
> #### Via email
> 
> US: 1-866-813-2404  
> US: [support@smartthings.com](mailto:support@smartthings.com)  
> UK support 0333 0000333  
> UK: [support@smartthings.co.uk](mailto:support@smartthings.co.uk)  
> CA: support@smartthings.ca

---

<div class="post-metadata">

**Author:** ![Alwas](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Alwas](https://community.smartthings.com/u/Alwas)\
**Post date:** [November 28, 2022, 2:10pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/9 "2022-11-28T14:10:26Z")

</div>

> [@nayelyz](#):
>
> I’m discussing this with the engineering team.

Can you also ask about when Smartapps are coming back please, as Smartapps are disabled at the moment. Thanks @nayelyz 👍

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [November 28, 2022, 3:36pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/10 "2022-11-28T15:36:39Z")

</div>

Hi, @Alwas!  
Please, follow this thread:

> [@SmartApps for automation are no longer available](https://community.smartthings.com/t/smartapps-for-automation-are-no-longer-available/252080/):
>
> I am not able to find SmartApp for Automation option in project creation under Developer Workspace anymore. Are those going away @nayelyz

I recently posted an update there.

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [January 23, 2025, 2:29pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/11 "2025-01-23T14:29:32Z")

</div>

8 posts were split to a new topic: [Audio Notifications (TTS) with Rules API](https://community.smartthings.com/t/audio-notifications-tts-with-rules-api/294163)

---

<div class="post-metadata">

**Author:** ![Shayan\_Modiri](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/shayan_modiri/32/198332_2.png) [@Shayan\_Modiri](https://community.smartthings.com/u/Shayan_Modiri)\
**Post date:** [January 22, 2025, 3:15am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/18 "2025-01-22T03:15:08Z")

</div>

Any updates from the eng team?

Your own example on your API documentation doesn’t compile ([Rules | Developer Documentation | SmartThings](https://developer.smartthings.com/docs/automations/rules)). Can anyone ever save anything on your platform or this whole system is a gigantic bug?

I have been getting the same error for hours and there is no way to bypass it. I have no usage of word “type” in my code.

---

<div class="post-metadata">

**Author:** ![orangebucket](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/orangebucket/32/81590_2.png) [@orangebucket](https://community.smartthings.com/u/orangebucket)\
**Post date:** [January 22, 2025, 6:11am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/20 "2025-01-22T06:11:33Z")

</div>

> [@Shayan\_Modiri](#):
>
> I have been getting the same error for hours and there is no way to bypass it. I have no usage of word “type” in my code.

Are we still talking about the example code?

What error are you getting?

---

<div class="post-metadata">

**Author:** ![BrendonC](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/brendonc/32/209733_2.png) [@BrendonC](https://community.smartthings.com/u/BrendonC)\
**Post date:** [January 23, 2025, 7:26am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/21 "2025-01-23T07:26:30Z")

</div>

Hi @nayelyz,

Just wondering if you have heard back on this yet?

I haven’t found any way to show custom notifications on my TV through SmartThings.

Ring doorbell pro can show a notification on a button press, and like others have mentioned; when a washer is finished that will also send a notification. It seems like the underlying capability is present, but just not exposed.

Is there anyway to achieve this at the moment? and if not, are there any plans to make it available?

Thanks!

---

<div class="post-metadata">

**Author:** ![Shayan\_Modiri](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/shayan_modiri/32/198332_2.png) [@Shayan\_Modiri](https://community.smartthings.com/u/Shayan_Modiri)\
**Post date:** [January 24, 2025, 12:43am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/22 "2025-01-24T00:43:27Z")

</div>

Here is the super simple rule I’m trying to create:

```auto
{
    "name": "Turn on a switch based on another one",
    "actions": [
        {
            "if": {
                "equals": {
                    "left": {
                        "device": {
                            "devices": [
                                "A simple switch device-id"
                            ],
                            "component": "main",
                            "capability": "switch",
                            "attribute": "switch"
                        }
                    },
                    "right": {
                        "string": "on"
                    }
                },
                "then": [
                    {
                        "command": {
                            "devices": [
                                "Another simple switch device-id"
                            ],
                            "commands": [
                                {
                                    "component": "main",
                                    "capability": "switch",
                                    "command": "on",
                                    "arguments": []
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

```

I’m getting this error:  
`Error adding rule "Turn on a switch based on another one". 422 The request is malformed. Unknown target: Malformed body on line 1:59`

Can someone please explain what’s malformed here?

---

<div class="post-metadata">

**Author:** ![TapioX](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TapioX](https://community.smartthings.com/u/TapioX)\
**Post date:** [January 24, 2025, 6:25am UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/23 "2025-01-24T06:25:27Z")

</div>

> [@Shayan\_Modiri](#):
>
> `59`
> 
> Can someone please explain what’s malformed here?

If you are using AWA add only actions to rule.  
Example here:

> [@\[ST Edge\] Virtual Energy & Power Device Driver for calculating Total Energy Consumption](https://community.smartthings.com/t/st-edge-virtual-energy-power-device-driver-for-calculating-total-energy-consumption/285625/7):
>
> Use this rule if you are using AWA

---

<div class="post-metadata">

**Author:** ![Shayan\_Modiri](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/shayan_modiri/32/198332_2.png) [@Shayan\_Modiri](https://community.smartthings.com/u/Shayan_Modiri)\
**Post date:** [January 24, 2025, 10:44pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/24 "2025-01-24T22:44:36Z")

</div>

Thank you! This fixed the issue…

---

<div class="post-metadata">

**Author:** ![nileshlande12](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nileshlande12](https://community.smartthings.com/u/nileshlande12)\
**Post date:** [July 15, 2025, 2:31pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/25 "2025-07-15T14:31:57Z")

</div>

Any update on this topic regarding notification?

On my Samsung Bespoke refrigerator I have noticed that I don’t receive any push notifications on my phone when the fridge door is left open — even though the SmartThings app correctly shows the door status as “open.” and all notification with device are already enabled.

Also in the “Routines” section, the only trigger available for the refrigerator is temperature — there’s no option to select door status as a condition.

To work around this, I explored the SmartThings Rules API. I was able to successfully create a rule that detects when the door is open. But unfortunately, I couldn’t find any capability or command in the API to push a notification to the phone.

---

<div class="post-metadata">

**Author:** ![mocelet](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mocelet/32/195631_2.png) [@mocelet](https://community.smartthings.com/u/mocelet)\
**Post date:** [July 15, 2025, 2:43pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/26 "2025-07-15T14:43:42Z")

</div>

> [@nileshlande12](#):
>
> unfortunately, I couldn’t find any capability or command in the API to push a notification to the phone

Create a virtual switch, turn it on in rules API and create a routine in the app “if switch is on, notify”.

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [July 15, 2025, 3:23pm UTC](https://community.smartthings.com/t/notification-with-smartthings-api/241890/27 "2025-07-15T15:23:44Z")

</div>

Hi, @nileshlande12. Welcome to the SmartThings Community!

> [@nileshlande12](#):
>
> To work around this, I explored the SmartThings Rules API. I was able to successfully create a rule that detects when the door is open. But unfortunately, I couldn’t find any capability or command in the API to push a notification to the phone.

Sending push notifications isn’t supported through the Rules API. So, the suggestion from @mocelet is a good alternative.

> [@nileshlande12](#):
>
> Also in the “Routines” section, the only trigger available for the refrigerator is temperature — there’s no option to select door status as a condition.

This generally happens when the manufacturer doesn’t configure those capabilities to appear in those views.  
I remember another user mentioned his Fridge supported the notifications after the door was left open but it triggered after 5 minutes. It also made a “bip” sound. Have you checked if that is supported in yours?

[Next page](https://community.smartthings.com/t/notification-with-smartthings-api/241890.md?page=2)
