APIs & Integrations

PGeorgia
Member

API call error: Bad Request

SOLVE

Users see this error "API call error:Bad Request" whenever they submit a form, however hubspot still collects their contact information and they still land on the thank you page but it sometimes leads to the submissions not landing in our email. 

 

Here's what we can see in the call log for the api key: 

 

HTTP 400 post /contactslistseg/v1/lists/1/add

 

Request :

Header:

User-Agent: WordPress/5.8; https://www.myproroofing.com
CDN-Loop: cloudflare; subreqs=1
Accept-Encoding: gzip
CF-Connecting-IP: 18.206.142.250
True-Client-IP: 18.206.142.250
X-HubSpot-Trace: 8c12df9128b2fcb3d8ff89b388a743ac
X-HubSpot-Correlation-Id: fc543219-fe22-4682-b05e-5f3527132060
X-HS-Internal-Request: 0
Content-Length: 17
X-Real-IP: 18.206.142.250
Content-Type: application/json
cf-worker: hubapi.com
CF-IPCountry: US
CF-RAY: 67a036f4a62c5b11-IAD
Accept: application/json
X-Forwarded-Proto: https
Connection: close
Referer: https://api.hubapi.com/contacts/v1/lists/1/add?hapikey=xxx
X-Request-Start: 1628168492.272
X-HS-Internal-User-Request: 0
Host: 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=1-610be12c-529a8f2836ed0ae1650fba19
X-Forwarded-For: 18.206.142.250, 172.70.34.212, 18.206.142.250
X-Scheme: https

 

Body:

{
"vids": [
143551
]
}

 

Response: 

Header:

X-HubSpot-RateLimit-Remaining: 98
X-HubSpot-RateLimit-Max: 100
X-HubSpot-RateLimit-Daily: 250000
X-HubSpot-RateLimit-Daily-Remaining: 249983
X-HubSpot-RateLimit-Interval-Milliseconds: 10000
X-HubSpot-RateLimit-Secondly: 10
X-HubSpot-RateLimit-Secondly-Remaining: 9
Content-Type: {"type":"application","subtype":"json","parameters":{"charset":"UTF-8"},"wildcardType":false,"wildcardSubtype":false}

 

Body:

{
"status": "error",
"message": "Can not operate manually on a dynamic list",
"correlationId": "fc543219-fe22-4682-b05e-5f3527132060"
}

 

We've also noticed this error: {"status":"error","message":"Can not operate manually on a dynamic list","correlationId":"fc543219-fe22-4682-b05e-5f3527132060"}

1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

API call error: Bad Request

SOLVE

Hello @PGeorgia,

 

Dynamic lists won’t let you manually add contacts, but any new or updated contacts would automatically get added to the list if they meet the criteria. Please check if the contact you were trying to add match the list criteria?

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

4 Replies 4
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

API call error: Bad Request

SOLVE

Hello @PGeorgia,

 

Dynamic lists won’t let you manually add contacts, but any new or updated contacts would automatically get added to the list if they meet the criteria. Please check if the contact you were trying to add match the list criteria?

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
jacek-francuz
Participant

API call error: Bad Request

SOLVE

@PGeorgia,

 

It looks like the contacts you are trying to add via the API do not meet the list criteria. Perhaps some obligatory fields are missing?

PGeorgia
Member

API call error: Bad Request

SOLVE

What do you exactly mean by list criteria? Bcause we didn't set up any. Is it the filters that are set upf for the lists? Because we only have this one: "Form submission ;has filled out Any form submission on Any page "

0 Upvotes
LSupplements
Member

API call error: Bad Request

SOLVE

I am in the same situation. Can someone help me please :(?

0 Upvotes