# HTTP Bindings in Perspective with JSON

**URL:** <https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 19, 2023, 6:37pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361 "2023-09-19T18:37:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Wall](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Adam\_Wall](https://forum.inductiveautomation.com/u/Adam_Wall)\
**Post date:** [September 19, 2023, 6:37pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361/1 "2023-09-19T18:37:14Z")

</div>

Hi-

I would like to attach an api to a table in my perspective view. When I bind a custom prop to the call, I am able to get the html version of the response. I can also get the json version of the response but I must specify this in the URL. I would like to use the headers option (example below) to add my content type and my pagination information but it's not working with the example below. There isn't any examples online on how to use the headers section, is my setup correct?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/a/da2431714d137614b6a9923aa045a8c9520cf3da.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 19, 2023, 7:30pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361/2 "2023-09-19T19:30:15Z")

</div>

What's not working?

Getting useful answers here is going to depend on the behavior/requirements of the API you're talking to, and you have provided no documentation or information about it.

---

<div class="post-metadata">

**Author:** ![Adam\_Wall](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Adam\_Wall](https://forum.inductiveautomation.com/u/Adam_Wall)\
**Post date:** [September 19, 2023, 9:37pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361/3 "2023-09-19T21:37:46Z")

</div>

Hi Kevin!

The API is operating and validated but the problem stems from me not fully knowing what is being sent to the API. Are there debugging options within ignition to see when my API calls are made and what the information/headers I am sending over?

When I add an API that is working and open it in the browser (checking network browser properties), the API calls appear to be hidden within the perspective page request.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 19, 2023, 9:43pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361/4 "2023-09-19T21:43:32Z")

</div>

The API calls are made from the gateway, not the browser. You won't see them there.

You'll have to use Wireshark or some kind of proxy to actually see what's being sent.

It might help to get your headers figured out using a script and `system.net.httpClient` and then set up a binding afterwards. Just a little easier to iterate on.

---

<div class="post-metadata">

**Author:** ![Adam\_Wall](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Adam\_Wall](https://forum.inductiveautomation.com/u/Adam_Wall)\
**Post date:** [September 19, 2023, 9:51pm UTC](https://forum.inductiveautomation.com/t/http-bindings-in-perspective-with-json/79361/5 "2023-09-19T21:51:02Z")

</div>

The system.net.httpClient helped me debug, Thanks Kevin!
