Hi! I’m working on scenario where I take data from a webflow form, and I want to create a new contact in Intercom using that data form Webflow.
I do have about 60 custom attributes created in Intercom, out of which only about 30 are accessible from the “Create a Contact” pre-set module. The ones I need aren’t there, so I’m trying to do the whole thing (creating a new Contact) using “Make an API call” module instead.
I used Intercom’s documentation, but still getting 400 error. I can’t figure out what’s wrong with my request.
It copy-pasted everything 1:1 but for some reason it still doesn’t work. The custom attributes aren’t even in the request body yet. Here’s screenshot of make’s error:
You need to make sure that your payload is valid JSON, which means using double ", instead of single'
As a non-dev, I usually use JSfiddle to make sure my payloads have the correct syntax — it will callout what needs to be fixed (as in the screenshot below)
p.s. I found this thread when I was also looking for a solution for the 400 error with the ‘Make an API call’ Intercom module.
My error was due to a different reason — I was sending an array instead of a collection, because I had taken the payload from the ‘Create a Contact’ Intercom module as an example to build my own payload for the API call one.
So, take heed! If you make shortcuts like this, doublecheck the expected data structure