# Issue with Form API

**URL:** <https://community.hubspot.com/t/issue-with-form-api/14377>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [May 14, 2019, 11:40pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377 "2019-05-14T23:40:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfeng](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jfeng/32/41549_2.png) [@jfeng](https://community.hubspot.com/u/jfeng)\
**Post date:** [May 14, 2019, 11:40pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377/1 "2019-05-14T23:40:28Z")

</div>

Hi there,

I’m submitting info to a hubspot form via the API. I’ve submitted the hs\_context field, but page view tracking still isn’t working. I’m not sure how to check if I’ve correctly submitted the hs\_context and the hutk parameter.

 ![Screen Shot 2019-05-14 at 7.30.39 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/1/f1d2895c987fa501513a60af26e8ba97ca34050a.png)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 15, 2019, 1:55pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377/2 "2019-05-15T13:55:46Z")

</div>

Welcome, @jfeng.

I can confirm that the `hs_context` did not come through successfully, but I unfortunately don’t know of a way you can confirm other than observing the presence or absence of values for properties like [_First page seen_](https://app.hubspot.com/contacts/2215339/contact/38903901/properties?search=first+page+seen).

Could you share the URL encoded request URL you are submitting? The [v2 Forms API](https://developers.hubspot.com/docs/methods/forms/submit_form) endpoint you are using doesn’t accept raw JSON like the [v3 Forms API](https://developers.hubspot.com/docs/methods/forms/submit_form_v3) endpoint, so I’d like to confirm that the `hs_context` object is encoded properly.

---

<div class="post-metadata">

**Author:** ![jfeng](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jfeng/32/41549_2.png) [@jfeng](https://community.hubspot.com/u/jfeng)\
**Post date:** [May 15, 2019, 3:24pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377/3 "2019-05-15T15:24:14Z")

</div>

Thanks. We found the issue actually. We were not JSON encoding the hs\_context parameter.

[https://integrate.hubspot.com/t/not-able-to-track-page-views-from-my-site-on-contact-timeline-in-hubspot/3571/7](https://integrate.hubspot.com/t/not-able-to-track-page-views-from-my-site-on-contact-timeline-in-hubspot/3571/7)

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 15, 2019, 4:04pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377/4 "2019-05-15T16:04:00Z")

</div>

Glad to hear you found the solution, @jfeng!

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 16, 2019, 7:04pm UTC](https://community.hubspot.com/t/issue-with-form-api/14377/5 "2019-05-16T19:04:01Z")

</div>

Hey, again, @jfeng.

I forgot about [this endpoint](https://developers.hubspot.com/docs/methods/contacts/get_contact_by_utk), which allows you to check whether the `hutk` value is associated with a contact record. You can use this to help confirm whether you’re passing `hs_context` correctly.
