Skip to main content

API v2- FileMaker

  • August 20, 2019
  • 3 replies
  • 2552 views

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?

This topic has been closed for replies.

3 replies

Ayelet
Forum|alt.badge.img
  • monday.com Team Member
  • August 20, 2019

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?


  • Author
  • New Participant
  • August 20, 2019

I am using it from my code.


dipro
Forum|alt.badge.img
  • Leader
  • August 21, 2019

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!