400 bad request on HTTP Module

I’m trying to use the HTTP module in Make.com to create a page inside a ClickUp Doc using the Create Page API. Despite validating everything, I keep receiving a 400 Bad Request error.

Here is the total flow

And here is the setup:

Where as you can see the variables, are filled and not empty

Any idea why this error keep appearing and how to solve it?

Thanks a lot.

Welcome to the Make community!

The variable might contain characters that are reserved JSON characters, so you’ll need to “escape” (encode) those special characters, otherwise they make the JSON invalid when you map the variable value in the JSON.

You can do this by passing the variable into a “Transform to JSON” module, and mapping the output in your JSON instead.

Alternatively, you can use the built-in function replace to replace those special characters with their escaped versions.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.