Skip to main content
Question

Send 'body' instead of 'data' - POST Webhook

  • December 19, 2022
  • 5 replies
  • 1045 views

Hi All,

I have created a zap to send new leads from Fb to custom platform and as an action have chosen POST Webhook by Zapier. It looks pretty easy to use it but I still got issue “Status Code 400 Bad Request”:


Here is the zap config:
 


The url and auth headers are removed for showing example ;) but I am 100% sure that they are correct.

The only data field can cause the issue. In the docs of this custom platform I see that the “body” is required but in zap I found only “data” field. 

Is there any chance to find how Zapier sends my request?
Is it possible to declare body field not data?

Thanks for any tips!
Radek

 

Did this topic help you find an answer to your question?

5 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31450 replies
  • December 19, 2022

Hi @radek_t 

Good question.

Please link to the API endpoint documentation that you are trying to use.

 


  • Author
  • New
  • 2 replies
  • December 19, 2022

Hi @Troy Tessalone,

Unfortunately I can not share the link - API docs is locked only for users - but I can paste a pic. Here you are:
 

 
I think to change zap from “POST webhooks by Zapier” to “Run Javascript in Code by Zapier” and put fetch() function there. Is a good idea? 

  


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31450 replies
  • December 19, 2022

@radek_t 

Try wrapping all the contents in Data with “body” : {  }


  • Author
  • New
  • 2 replies
  • December 19, 2022

@Troy Tessalone
tried before submitting this question - the same error :)


Sadiq
  • New
  • 1 reply
  • March 29, 2023

@radek_t  were you able to find an answer?


Reply