# Push notifications from the API to a specific user only

**URL:** <https://community.smartthings.com/t/push-notifications-from-the-api-to-a-specific-user-only/246414>\
**Category:** Developer Programs\
**Created:** [August 20, 2022, 8:26am UTC](https://community.smartthings.com/t/push-notifications-from-the-api-to-a-specific-user-only/246414 "2022-08-20T08:26:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damianeq](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Damianeq](https://community.smartthings.com/u/Damianeq)\
**Post date:** [August 20, 2022, 8:26am UTC](https://community.smartthings.com/t/push-notifications-from-the-api-to-a-specific-user-only/246414/1 "2022-08-20T08:26:49Z")

</div>

Hi

Thanks to the courtesy of one of the users, he helped me do the integration so that after the API I would send push notifications in the SmartThings application, everything works fine.

I have a question, how can I customize such a code so that a notification is sent only to a specific user? (on his private smartphone with the SmartThings app)

The code I have is:

**URL** : `https://api.smartthings.com/notification`  
**Method** : POST  
**Content Type** : JSON (default)  
**Body** :

```auto
{
    "locationId": "MY ID LOC",
    "type": "ALERT",
    "title": "Hello",
    "message": "World"
}

```

**Headers**  
`Authorization`: `Bearer MY API CODE`

---

<div class="post-metadata">

**Author:** ![Damianeq](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@Damianeq](https://community.smartthings.com/u/Damianeq)\
**Post date:** [August 23, 2022, 7:51pm UTC](https://community.smartthings.com/t/push-notifications-from-the-api-to-a-specific-user-only/246414/2 "2022-08-23T19:51:54Z")

</div>

Does anyone know the answer?

---

<div class="post-metadata">

**Author:** ![andresg](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/andresg/32/147443_2.png) [@andresg](https://community.smartthings.com/u/andresg)\
**Post date:** [August 25, 2022, 12:39am UTC](https://community.smartthings.com/t/push-notifications-from-the-api-to-a-specific-user-only/246414/3 "2022-08-25T00:39:06Z")

</div>

Hi, @Damianeq

This API endpoint you have shared is a beta feature and we cannot guarantee, at this point, that it won’t go away in the future. That is also the same reason why this is not documented on our [API specification](https://developer-preview.smartthings.com/docs/api/public). Currently, the only official way to set up a Push Notification is through the creation of a `Routine`, and you can notify any member on your `Location`.
