# Node red newby - change node - to string with payload parameter

**URL:** <https://discourse.nodered.org/t/node-red-newby-change-node-to-string-with-payload-parameter/46697>\
**Category:** General\
**Created:** [4 June 2021 09:35 UTC](https://discourse.nodered.org/t/node-red-newby-change-node-to-string-with-payload-parameter/46697 "2021-06-04T09:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spitzlbergerj](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/spitzlbergerj/32/17228_2.png) [@spitzlbergerj](https://discourse.nodered.org/u/spitzlbergerj)\
**Post date:** [4 June 2021 09:35 UTC](https://discourse.nodered.org/t/node-red-newby-change-node-to-string-with-payload-parameter/46697/1 "2021-06-04T09:35:56Z")

</div>

Hi,  
I am new to node red (Raspberry Pi, Node Red v1.3.5), have already read many docs. However, I can't find an answer to my current problem, which I'm sure is very trivial..

I want to query the status of a device (3d printer snapmaker) via http requests. To do this, I first need to get a token via an http request POST from the device. This works. This token must then be specified as a parameter in an http GET. Here I fail.

I have so far

- an injector (timestamp)
- a http request
  - POST
  - URL [http://192.168.178.163:8080/api/v1/connect](http://192.168.178.163:8080/api/v1/connect)
  - return parced JSON object

The answer is for example the following  
{"token":"c1f2751a-52de-4f5f-a147-909c8ff98ff4","readonly":false,"series":"Snapmaker 2.0 A350","headType":1,"hasEnclosure":true}

Now I add a http request GET. This must call the following URL [http://192.168.178.163:8080/api/v1/status?token=[token]](http://192.168.178.163:8080/api/v1/status?token=%5Btoken%5D)

For this I have set up a http request like this:

- Method GET
- URL [http://192.168.178.163:8080/api/v1/status?token={{payload.token.value}](http://192.168.178.163:8080/api/v1/status?token=%7B%7Bpayload.token.value%7D)}
- payload ignore
- return JSON object

But {{...}} is obviously not correct. I also tried it with three { with unfortunately the same result.

Unfortunately I do not get further here now.

Who can help me. Many thanks and sorry for this beginner question ....

Regards  
Sepp

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 June 2021 09:48 UTC](https://discourse.nodered.org/t/node-red-newby-change-node-to-string-with-payload-parameter/46697/2 "2021-06-04T09:48:37Z")

</div>

> [@spitzlbergerj](#):
>
> For this I have set up a http request like this:
> 
> - Method GET
> - URL [http://192.168.178.163:8080/api/v1/status?token={{payload.token.value}](http://192.168.178.163:8080/api/v1/status?token=%7B%7Bpayload.token.value%7D)}

> [@spitzlbergerj](#):
>
> {"token":"c1f2751a-52de-4f5f-a147-909c8ff98ff4","readonly":false,"series":"Snapmaker 2.0 A350","headType":1,"hasEnclosure":true}

as far as I can tell, the token is in `payload.token` not `payload.token.value`

i.e. use `http://192.168.178.163:8080/api/v1/status?token={{payload.token}}`

* * *

the best way to ensure accuracy when entering the path to a property is to use the features provided (copy path)...

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

[https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 August 2021 09:49 UTC](https://discourse.nodered.org/t/node-red-newby-change-node-to-string-with-payload-parameter/46697/3 "2021-08-03T09:49:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
