# API Post Request Add Contact not working

**URL:** <https://community.hubspot.com/t/api-post-request-add-contact-not-working/55879>\
**Category:** APIs & Integrations\
**Created:** [April 28, 2022, 3:05pm UTC](https://community.hubspot.com/t/api-post-request-add-contact-not-working/55879 "2022-04-28T15:05:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JNagel](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@JNagel](https://community.hubspot.com/u/JNagel)\
**Post date:** [April 28, 2022, 3:05pm UTC](https://community.hubspot.com/t/api-post-request-add-contact-not-working/55879/1 "2022-04-28T15:05:45Z")

</div>

Hi out there,

I just connected my Wordpress fluent form with hubspot. The plugin is fetching the list and the attributes, but new form submissions are not added to the list.

I am not sure if the post request is not right or if some settings on hubspot or not right.

Here is the P ost request that received by hubspot but not creating a new contact (private information is XXXed out):

POST /contacts/v1/contact/

User-Agent: WordPress/5.9.3; [https://XXX.io](https://XXX.io)  
CDN-Loop: cloudflare; subreqs=1  
Accept-Encoding: gzip  
CF-Connecting-IP: 35.207.181.133  
True-Client-IP: XXX  
X-HubSpot-Trace: XXX  
X-HubSpot-Correlation-Id: XXX  
X-HS-Internal-Request: 1  
Content-Length: 533  
X-Real-IP: XXX  
Content-Type: application/json  
cf-worker: [hubapi.com](http://hubapi.com)  
CF-Ray: XXX  
CF-IPCountry: DE  
Accept: \*/\*  
X-Forwarded-Proto: https  
Connection: close  
Referer: [https://api.hubapi.com/contacts/v1/contact/?hapikey=XXX&properties%5B0%5D%5Bproperty%5D=email&properties%5B0%5D%5Bvalue%5D=XXX&properties%5B1%5D%5Bproperty%5D=firstname&properties%5B1%5D%5Bvalue%5D=XXX&properties%5B2%5D%5Bproperty%5D=lastname&properties%5B2%5D%5Bvalue%5D=XXX&properties%5B3%5D%5Bproperty%5D=company&properties%5B3%5D%5Bvalue%5D=XXX&properties%5B4%5D%5Bproperty%5D=analyzed\_energy\_consumption&properties%5B4%5D%5Bvalue%5D=Heating+%26+Cooling&properties%5B5%5D%5Bproperty%5D=why\_will\_you\_sign\_up\_for\_an\_account\_\_\_&properties%5B5%5D%5Bvalue%5D=analyze-energy-consumption-of-my-company-as-business-owner-energy-or-sustainability-manager&properties%5B6%5D%5Bproperty%5D=marketing\_newsletter&properties%5B6%5D%5Bvalue%5D=Yes&properties%5B7%5D%5Bproperty%5D=customer\_group&properties%5B7%5D%5Bvalue%5D=Free+Member](https://api.hubapi.com/contacts/v1/contact/?hapikey=XXX&properties%5B0%5D%5Bproperty%5D=email&properties%5B0%5D%5Bvalue%5D=XXX&properties%5B1%5D%5Bproperty%5D=firstname&properties%5B1%5D%5Bvalue%5D=XXX&properties%5B2%5D%5Bproperty%5D=lastname&properties%5B2%5D%5Bvalue%5D=XXX&properties%5B3%5D%5Bproperty%5D=company&properties%5B3%5D%5Bvalue%5D=XXX&properties%5B4%5D%5Bproperty%5D=analyzed_energy_consumption&properties%5B4%5D%5Bvalue%5D=Heating+%26+Cooling&properties%5B5%5D%5Bproperty%5D=why_will_you_sign_up_for_an_account___&properties%5B5%5D%5Bvalue%5D=analyze-energy-consumption-of-my-company-as-business-owner-energy-or-sustainability-manager&properties%5B6%5D%5Bproperty%5D=marketing_newsletter&properties%5B6%5D%5Bvalue%5D=Yes&properties%5B7%5D%5Bproperty%5D=customer_group&properties%5B7%5D%5Bvalue%5D=Free+Member)  
X-Request-Start: 1651156140.604  
X-HS-Internal-User-Request: 0  
Host: [api.hubapi.com](http://api.hubapi.com)  
CF-Visitor: {"scheme":"https"}  
X-HS-User-Request: 0  
CF-EW-Via: 15  
X-Forwarded-Port: 443  
X-Amzn-Trace-Id: Root=XXX  
X-Forwarded-For: 35.207.181.133, 172.70.250.228, 35.207.181.133  
X-Scheme: https

Any ideas how to get this working?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [April 29, 2022, 7:05pm UTC](https://community.hubspot.com/t/api-post-request-add-contact-not-working/55879/2 "2022-04-29T19:05:04Z")

</div>

Hi @JNagel

I would advise against using the contact API when a form is submitted. It is better to use [non-hubspot form](https://knowledge.hubspot.com/forms/use-non-hubspot-forms) tracking or use the [Form Submission API](https://legacydocs.hubspot.com/docs/methods/forms/submit_form) because the also stores the value of the HubSpot UTK cookie.

If you do use the Contact API, you will miss important data like the original source or pages viewed etc.
