# HubSpot API v2 error

**URL:** https://forum.mautic.org/t/hubspot-api-v2-error/4131
**Category:** Product Support
**Created:** [June 30, 2016, 7:47am UTC](https://forum.mautic.org/t/hubspot-api-v2-error/4131 "2016-06-30T07:47:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nickwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nickwild/32/85_2.png) [@nickwild](https://forum.mautic.org/u/nickwild)
#### Post date: [June 30, 2016, 7:47am UTC](https://forum.mautic.org/t/hubspot-api-v2-error/4131/1 "2016-06-30T07:47:31Z")

</div>

Hi Gang,  
  
  
  
I already had a oneway sync working with hubspot on [mautic.net](http://mautic.net), but with the change over to v2 and the advent of two way syncing I am now getting a “The CSRF token is invalid” error when I tick the Pull Lead from Sync.  
  
  
  
Do you have any ideas?  
  
  
  
Thanks  
  
  
  
Nick

---

<div class="post-metadata">

### Author: ![nickwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nickwild/32/85_2.png) [@nickwild](https://forum.mautic.org/u/nickwild)
#### Post date: [June 30, 2016, 7:47am UTC](https://forum.mautic.org/t/hubspot-api-v2-error/4131/2 "2016-06-30T07:47:31Z")

</div>

Hi Gang,

I already had a oneway sync working with hubspot on [mautic.net](http://mautic.net), but with the change over to v2 and the advent of two way syncing I am now getting a “The CSRF token is invalid” error when I tick the Pull Lead from Sync.

Do you have any ideas?

Thanks

Nick

---

<div class="post-metadata">

### Author: ![nickwild](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nickwild/32/85_2.png) [@nickwild](https://forum.mautic.org/u/nickwild)
#### Post date: [July 20, 2016, 4:02am UTC](https://forum.mautic.org/t/hubspot-api-v2-error/4131/3 "2016-07-20T04:02:20Z")

</div>

Bump.

Any thoughts? I also cannot turn off the “pull from integration” to go back to one way syncing without getting the “The CSRF token is invalid” error. So the Hubspot API is completely broken.

This is on the hosted solution.

Thanks

Nick
