# Error 1006 when accessing HubSpot API

**URL:** <https://community.hubspot.com/t/error-1006-when-accessing-hubspot-api/82627>\
**Category:** APIs & Integrations\
**Tags:** integrations, crm\
**Created:** [June 5, 2023, 7:49am UTC](https://community.hubspot.com/t/error-1006-when-accessing-hubspot-api/82627 "2023-06-05T07:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nurinaf](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@nurinaf](https://community.hubspot.com/u/nurinaf)\
**Post date:** [June 5, 2023, 7:49am UTC](https://community.hubspot.com/t/error-1006-when-accessing-hubspot-api/82627/1 "2023-06-05T07:49:08Z")

</div>

Hi, so I have a private app that connects hubspot with a form in website. If user fills up this form, shortly our BE will hit hubspot API to save the data in our hubspot. It run well till May 29 and after that we are getting 1006.

Here’s the curl

Spoiler

```auto
curl --location --request POST 'https://api.hubapi.com/crm/v3/objects/companies/search' \
--header 'Authorization: Bearer {my secret key}' \
--header 'Content-Type: application/json' \
--data-raw '{
 "filters": [
 {
 "propertyName": "name",
 "value": "Some names",
 "operator": "EQ"
 }
 ]
}'

```

and we get this error

Spoiler

`error code: 1006`

Anyone can help me on how to resolve this issue?

---

<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:** [June 5, 2023, 12:44pm UTC](https://community.hubspot.com/t/error-1006-when-accessing-hubspot-api/82627/2 "2023-06-05T12:44:25Z")

</div>

Hi @nurinaf ,

Based on this [post](https://community.hubspot.com/t5/APIs-Integrations/Cloudflare-403-on-Search-API-IP-Banned/m-p/420841), the error might indicate that the IP that is used when accessing the API has been banned by Cloudflare.

You should probably reach out to HubSpot support to see if that is the case.
