# Onesignal API only works in only 1 text block. "join" is not working

**URL:** <https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418>\
**Category:** Questions about Thunkable X\
**Created:** [July 27, 2020, 4:21pm UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418 "2020-07-27T16:21:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saramdl.gaunde021](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@saramdl.gaunde021](https://community.thunkable.com/u/saramdl.gaunde021)\
**Post date:** [July 27, 2020, 4:21pm UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418/1 "2020-07-27T16:21:35Z")

</div>

hey guys. i was looking forward to send push message by Onesignal API so hard.  
And now i just succeed but it is kinda weird so i need your help.

this is my code

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/35d6a915176fa03879b837d61a14614f5bf4d8f9.png)

and if i run it then the result message is like this.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/d/9dcd64ac1583f8fb658917d9567f3c717540c973.jpeg)

and i was thinking there were so many slash(/). so i just tried type in one block instead of ‘text join’ block.  
and boom. it works.

but i don’t understand.  
why text block include slash? i need ‘text join’ block.  
Please help.

References]  
API documents in One Signal : [Create notification](https://documentation.onesignal.com/reference/create-notification)  
former artical about this in the community : [Sending Notification to Specific User with Onesignal](http://community.thunkable.com/t/sending-notification-to-specific-user-with-onesignal/150022)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 28, 2020, 11:04am UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418/2 "2020-07-28T11:04:33Z")

</div>

I don’t think this is related to the text block @saramdl.gaunde021 or the join block, you simply have a mistake in your JSON.

The error message says: `unexpected character at line 1, column 10` which is the 10th character. If you count 10 letters in you have a `=` where you should have a `:`

Hope that helps.

---

<div class="post-metadata">

**Author:** ![saramdl.gaunde021](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@saramdl.gaunde021](https://community.thunkable.com/u/saramdl.gaunde021)\
**Post date:** [July 28, 2020, 11:37am UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418/3 "2020-07-28T11:37:19Z")

</div>

omg haha that was my mistake. but i still receive error message.

now i got  
“Message Notifications must have Any/English language content”  
despite the fact that i already have the content.

or other case of APIs (change user’s tag), if i do in the same way (which is not using join block) then i get right result. but if im do it with Join block, then the result is,

“There was a problem in the JSON you submitted.”,“unexpected end of JSON input”

---

<div class="post-metadata">

**Author:** ![fedegarcia30hzc97a](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@fedegarcia30hzc97a](https://community.thunkable.com/u/fedegarcia30hzc97a)\
**Post date:** [January 30, 2023, 8:39pm UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418/4 "2023-01-30T20:39:00Z")

</div>

Hi

Just worked this out, yopu just need to set URL, Headers and Body

In the body string just add all the neccesary query parameters, in my case youll find:

{“app\_id”: "YOUR APP ID HERE ",“included\_segments”: [“Active Users”],“contents”: {“en”: “THE MESSAGE TO DELIVER HERE”}}

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/a/3a2e0b4cd4c5a0e194957d97004c40c9127df0b6.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, 12:26pm UTC](https://community.thunkable.com/t/onesignal-api-only-works-in-only-1-text-block-join-is-not-working/705418/5 "2024-11-08T12:26:57Z")

</div>


