APIs & Integrations

PKostetskiy
Member

Receive "error code: 1016" in API call response

SOLVE

Hello there!

We have been using API endpoint 
"https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/<contactEmail>/" for a long time. But it seems it doesn't work anymore.
I got "error code: 1016"
Token is valid.
Any idea?

I will be grateful for any help!



0 Upvotes
1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

Receive "error code: 1016" in API call response

SOLVE

Hey, @PKostetskiy 👋 Looking at other posts with this error, it seems to be related to an IP being blocked by Cloudflare. Do you have access to HubSpot support with this portal? This, unfortunately, isn't something that the community can resolve. If so, I'd let them know this isn't a custom coding question, but is related to a reproducible error received when using this API. 

 

My quick test using the same endpoint:

Request

POST https://api.hubapi.com/contacts/v1/contact/vid/901
{
  "properties": [
    {
      "property": "ultimate_pet",
      "value": ";Fish"
    }
  ]
}

Response

...{
            "name": "ultimate_pet",
            "value": "Fish",
            "timestamp": 1736950244330,
            "sourceId": "959085",
            "source": "INTEGRATION",
            "sourceVid": [],
            "requestId": "5d7cd1ac-879f-4b6e-8d78-c34e424a4758"
        }
...

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

View solution in original post

0 Upvotes
2 Replies 2
Jaycee_Lewis
Solution
Community Manager
Community Manager

Receive "error code: 1016" in API call response

SOLVE

Hey, @PKostetskiy 👋 Looking at other posts with this error, it seems to be related to an IP being blocked by Cloudflare. Do you have access to HubSpot support with this portal? This, unfortunately, isn't something that the community can resolve. If so, I'd let them know this isn't a custom coding question, but is related to a reproducible error received when using this API. 

 

My quick test using the same endpoint:

Request

POST https://api.hubapi.com/contacts/v1/contact/vid/901
{
  "properties": [
    {
      "property": "ultimate_pet",
      "value": ";Fish"
    }
  ]
}

Response

...{
            "name": "ultimate_pet",
            "value": "Fish",
            "timestamp": 1736950244330,
            "sourceId": "959085",
            "source": "INTEGRATION",
            "sourceVid": [],
            "requestId": "5d7cd1ac-879f-4b6e-8d78-c34e424a4758"
        }
...

 

Best,

Jaycee

 

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
PKostetskiy
Member

Receive "error code: 1016" in API call response

SOLVE

Hi @Jaycee_Lewis !

Thank you for your reply!

Now I'm going to contact portal support. Hope they help me.
BTW this issue doesn't show up when I make calls to this API with testing account

0 Upvotes