How to fix Make an API call error (code 400)

I create Line Make an api call module. My setting is as attached in the picture
(I try test run and I think the problem is in the Body section with “text”: 22. Text because when i hard close it with normal text it works).

The error that i got is code 400 (runtime error). I also attached the error image in the attached.

Please help me suggest on how I can fix it. I try having ChatGPT help me for hours and it doesnt work. Your help really means a lot.

Thank you in advance! :grinning_face:

Welcome to the Make community!

Your variable text should be placed in a Transform to JSON module first.

To do this, you can try using the JSON “Transform to JSON” module —

Transforms any object to JSON.

For more information, see https://www.make.com/en/integrations/json, and https://www.make.com/en/help/app/json in the help centre.

Then, map the output of the JSON module into your JSON above.

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.

2 Likes

that’s work! thank you for your help :slight_smile:

1 Like