# Sending Notification to Specific User with Onesignal

**URL:** <https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022>\
**Category:** Tutorials and DIY Guides\
**Tags:** community, push-notifications, onesignal, webapi, expert, tutorial\
**Created:** [July 21, 2019, 12:58am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022 "2019-07-21T00:58:23Z")\
**Posts on this page:** 7\
**Page:** 5

<div class="post-metadata">

**Author:** ![rwplummer1yf4f](https://avatars.discourse-cdn.com/v4/letter/r/d6d6ee/32.png) [@rwplummer1yf4f](https://community.thunkable.com/u/rwplummer1yf4f)\
**Post date:** [June 15, 2021, 6:42am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/87 "2021-06-15T06:42:44Z")

</div>

That’s useful information and good to know. Thanks.

---

<div class="post-metadata">

**Author:** ![arwaibrahim](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/arwaibrahim/32/113034_2.png) [@arwaibrahim](https://community.thunkable.com/u/arwaibrahim)\
**Post date:** [August 10, 2021, 11:24am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/88 "2021-08-10T11:24:50Z")

</div>

This does send notifications to all users .Can u plz help

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [October 2, 2021, 6:24am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/89 "2021-10-02T06:24:29Z")

</div>

> [@arwaibrahim](#):
>
> This does send notifications to all users .Can u plz help

then

> [@bymaho](#):
>
> 1. if you want to send your notification everybody use this:
> 
> {  
> “app\_id”: “05a1a9c5-xxxx-xxxx-xxxxx-aad3xx5071f2”,  
> “included\_segments”: [“All”],  
> “data”: {“foo”: “bar”},  
> “contents”: {“en”: “English Message”}  
> }

---

<div class="post-metadata">

**Author:** ![imogenlawford1234](https://avatars.discourse-cdn.com/v4/letter/i/ecccb3/32.png) [@imogenlawford1234](https://community.thunkable.com/u/imogenlawford1234)\
**Post date:** [July 9, 2022, 4:30pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/90 "2022-07-09T16:30:57Z")

</div>

Hi Jacob,

I am trying to create a calendar app where each user can schedule notifications. Is there a way to use this method of sending an individual user a specific notification but at a scheduled time in the future?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Carlos\_Escobar](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/carlos_escobar/32/32404_2.png) [@Carlos\_Escobar](https://community.thunkable.com/u/Carlos_Escobar)\
**Post date:** [January 20, 2024, 2:16pm UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/91 "2024-01-20T14:16:51Z")

</div>

Hi Guys, today January 20 2024 I made it work with the help of the OneSignal API docs and postman to check the parameters and Headers of the API with the following block result, it works flawlessly!!! I hope it helps!!!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/08c8a3cc922a6640a9a277f0e3831561b49b2562.png)

---

<div class="post-metadata">

**Author:** ![wammytech](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@wammytech](https://community.thunkable.com/u/wammytech)\
**Post date:** [March 25, 2024, 11:16am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/92 "2024-03-25T11:16:13Z")

</div>

Certainly! Here’s the revised text in English:

* * *

**Tutorial: Sending Push Notifications to Specific Users via REST API in Thunkable**

For many months, perhaps years, I struggled to make the Push Notificator work using the REST API method. However, in January 2024, I came across the latest post and decided to give it another try.

After numerous unsuccessful attempts, I saw a glimmer of hope when revisiting the provided guidance. The key lay in the API call header, where I previously made mistakes. Initially, I was only including the “Authorization” and “Content-Type” headers. However, following a recent suggestion here, I realized that it was also necessary to add the “external\_id” header to the request.

Although I didn’t fully understand at the time, with the help of some API call responses, I soon identified why the previous attempts had failed. I removed the “accept” header and left only the following headers:

- `Authorization`: Bearer (your API key)
- `Content-Type`: application/json
- `external_id`: GetmypushId

I also understood that to send a push notification to a specific user, it was necessary to declare it as a list, even if it was only a single user to be notified. This is because when creating a JSON object, as it is in a list block, it is interpreted as an array , indicating the possibility of having numerous items inside.

By configuring the blocks in this way, I finally managed to make the API call and notify the specific user, even in test mode, without the need to download and install the application on the phone.

I sincerely hope that this approach resolves the problems of many other developers, just as it resolved mine.

Happy Thunking!

**Example API Call in JSON:**

```json
{
  "app_id": "your_app_id",
  "include_player_ids": ["user_id"],
  "contents": {"en": "Your notification message here"},
  "headings": {"en": "Notification Title"}
}

```

* * *

I hope this text better reflects your experience and is helpful to the Thunkable community! If you need anything else or have any questions, feel free to ask.

 ![Captura de ecrã 2024-03-25 105715](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/23f2782fdff9939317a6942105fe778a63a3c034.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:38am UTC](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022/93 "2024-11-08T11:38:54Z")

</div>

Closed on November 8, 2024, 11:38am UTC



[Previous page](https://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022.md?page=4)
