# How to forward payload (no raw\_payload) to decode outside TTN?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218>\
**Category:** v2 Console\
**Created:** [October 27, 2019, 10:55am UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218 "2019-10-27T10:55:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lopic34](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lopic34/32/35697_2.png) [@lopic34](https://www.thethingsnetwork.org/forum/u/lopic34)\
**Post date:** [October 27, 2019, 10:55am UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218/1 "2019-10-27T10:55:36Z")

</div>

Hello,

**I need to decode payload outside of TTN** (over node-red or thingsboard).  
But I can’t find the TTN setting to received the payload.  
I have tried with “HTTP integration” (from TTN to HTTP callback server) and"TTN integration connector" in thingsboard but the problem is still the same:  
I get only “payload\_raw”, not payload I show in red bellow:

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/d/cd489f131325cae05d7ff972893f4c7bea772715.png)

For example, in HTTP callback I have:  
BODY  
{ mode: ‘JSON’ }  
HEADERS  
{ host: xxxxxxxxxx’,  
‘user-agent’: ‘http-ttn/2.6.0’,  
‘content-length’: ‘677’,  
‘content-type’: ‘application/json’,  
‘accept-encoding’: ‘gzip’ }  
BODY  
{ app\_id: ‘xxxxxx’,  
dev\_id: ‘xxxxxxxx’,  
hardware\_serial: ‘xxxxxxxxxx’,  
port: 3,  
counter: 190,  
payload\_raw: ‘AdyBBoIs/RM=’,  
payload\_fields: { port: 3 },  
metadata:  
{ time: ‘2019-10-26T07:16:06.512317647Z’,  
frequency: 867.3,  
modulation: ‘LORA’,  
data\_rate: ‘SF7BW125’,  
coding\_rate: ‘4/5’,  
gateways:  
[ { gtw\_id: ‘eui-xxxxxxxxx’,  
timestamp: 2063664339,  
time: ‘2019-10-26T07:16:06.489734Z’,  
channel: 4,  
rssi: -66,  
snr: 10,  
rf\_chain: 0,  
latitude: xxxxxxxx,  
longitude: 3.9148493,  
location\_source: ‘registry’ } ] },  
downlink\_url:  
‘[https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/xxxxxxx](https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/xxxxxxx)’ }

Can you tell how to get “payload” please ?

Have a good day!

Loic

---

<div class="post-metadata">

**Author:** ![grazy](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/grazy/32/45572_2.png) [@grazy](https://www.thethingsnetwork.org/forum/u/grazy)\
**Post date:** [October 27, 2019, 11:08am UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218/2 "2019-10-27T11:08:02Z")

</div>

Hi

payload\_raw is just the same payload encoded in base64.

Try to paste “AdyBBoIs/RM=” in this site [https://cryptii.com/pipes/base64-to-hex](https://cryptii.com/pipes/base64-to-hex) you will see you get the corresponding hex.  
There is plugin in node red to decode base64.

Nicolas

---

<div class="post-metadata">

**Author:** ![lopic34](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lopic34/32/35697_2.png) [@lopic34](https://www.thethingsnetwork.org/forum/u/lopic34)\
**Post date:** [October 27, 2019, 5:56pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218/3 "2019-10-27T17:56:04Z")

</div>

Thank a lot **grazy** , I will try the “node-red-node-base64”

---

<div class="post-metadata">

**Author:** ![lopic34](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/lopic34/32/35697_2.png) [@lopic34](https://www.thethingsnetwork.org/forum/u/lopic34)\
**Post date:** [October 29, 2019, 3:13pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218/4 "2019-10-29T15:13:11Z")

</div>

I confirm : it works now.  
raw\_payload is now ready to use (same as “payload” with [https://flows.nodered.org/node/node-red-contrib-ttn](https://flows.nodered.org/node/node-red-contrib-ttn))

The ticket can be close…

Thanks,

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [October 29, 2019, 5:09pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-forward-payload-no-raw-payload-to-decode-outside-ttn/31218/5 "2019-10-29T17:09:54Z")

</div>


