Forum Discussion

MagsR's avatar
MagsR
Qrew Trainee
3 years ago

JSON body for POST webhook

Hi,

I am trying to use webhooks to POST to an endpoint URL provided by a partner but am not having luck with the body, it keeps giving me an error saying the the Body is not a valid JSON object- any help would be appreciated! I am fairly new at using webhooks so completely lost with the body!

------------------------------
Magaly Reyes
------------------------------
  • Not sure if I can help but there could be other people on this forum who can. Can you find a way to capture that JSON and paste it into the forum and also tell us examples of what data you're trying to retrieve from the JSON.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
    • MagsR's avatar
      MagsR
      Qrew Trainee
      Hey Mark!

      Not sure if I am understanding..I am trying to actually send data to an API URL..basically whenever a record is created in our quickbase it will trigger to make a request and POST certain fields. I got everything up until the BODY of the make a request step, it keeps giving me errors for incorrect template. 
      All I did with the body is drag the fields from a previous step into the body so they're listed as;
      {{a.outbound_referral_company}}
      {{a.customer_full_name}}
      {{a.customer_phone}}
      {{ a.customer_email}}
      {{a.customer_date_of_birth}}

      how should I write the body so it can successfully post to the URL.

      ------------------------------
      Magaly Reyes
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        OK, I thought you were receiving, my mistake. Sorry can't help.

        ------------------------------
        Mark Shnier (YQC)
        mark.shnier@gmail.com
        ------------------------------