API v2- FileMaker

Hello,
I am using “https://api.monday.com/v2/” as the URL and the following cURL options :
“-X POST” & ¶ &
“-H "Content-Type:application/json"” & ¶ &
“-H "Authorization:[APIv2_token]"” & ¶ &
“-d ‘{"query":"{boards {id}}"}’”

I try to make a query but I keep receiving an empty response. Can you tell me what is wrong?

Hey @ioanabancos ,
can you give this curl command a try?

curl -X POST -H "Content-Type:application/json" -H "Authorization:XXXXXXX" 'https://api.monday.com/v2' -d '{"query":"{boards{id}}"}'

are you using it from a shell tool or from your code?

I am using it from my code.

Hey @ioanabancos, thanks for that screenshot.

So, I’m not familiar with Filemaker, but I did go through the documentation a little to see what I could find. I suspect the issue here is with how you’re adding carriage returns to the cURL command.

First off, were you able to make this request work without constructing the cURL call using variables? Are you able to copy the request Ayelet posted and put it directly in the “Insert from URL” line?

If you are able to do this, then I suspect the issue is with how you’re constructing the call from your variables. When executing a shell command, carriage returns usually need to be escaped – I suspect adding ¶ between each option with no backslash is throwing the command off.

Do let me know if that helps!