Question

Webhook - The app returned "Either 'phoneNumber' or 'userId' is required" error

  • 13 November 2021
  • 10 replies
  • 71 views

How to solve this problem (Connecting Zapier To interakt’s WhatsApp)

 


10 replies

Userlevel 4
Badge +4

Hey @Hem Doshi ,

 

What action  are you using of Webhooks by Zapier? Also Can you check on Interakt if you have any other user with same Id 1?

Hey @Hem Doshi ,

 

What action  are you using of Webhooks by Zapier? Also Can you check on Interakt if you have any other user with same Id 1?

 

Hi @jayeshkumarbhatia,

 

User id is unique.

Trigger: New or Updated Row in MySQL

Action: Webhooks (POST)

&

I am following this blog: https://www.interakt.shop/blog/connecting-zapier

Userlevel 4
Badge +4

Hey @Hem Doshi ,

 

In your headers can you use x-www-form-urlencoded instead of application/json

 

The other solution is Can you use below action in Webhook by Zapier Instead of POST? In this action send all the data in JSON.

 

The reason your action is failing because your request body and header value does not match. If your header value is application/json, than your data has to be in JSON. 

 

Please try both of my above solution and let me know if this works or not.

 

 

 

Hey @Hem Doshi ,

 

In your headers can you use x-www-form-urlencoded instead of application/json

 

The other solution is Can you use below action in Webhook by Zapier Instead of POST? In this action send all the data in JSON.

 

The reason your action is failing because your request body and header value does not match. If your header value is application/json, than your data has to be in JSON. 

 

Please try both of my above solution and let me know if this works or not.

 

 

 

  1. The same error occurs when using Content-Type: x-www-form-urlencoded
  2. The following error occurs when using Action Event: Custom Request
Userlevel 4
Badge +4

Hi @Hem Doshi ,

 

For the 2nd method, can you remove blank spaces from values? Also, Can you please verify your json here https://jsoneditoronline.org/ ?

 

Also, can you please try entering your API key in headers also? 

Hi @jayeshkumarbhatia ,

Hi @Hem Doshi ,

 

For the 2nd method, can you remove blank spaces from values? Also, Can you please verify your json here https://jsoneditoronline.org/ ?

 

Also, can you please try entering your API key in headers also? 

 

JSON format is correct & the API key is inserted in the header but same error occurs.

 

 

Userlevel 4
Badge +4

Hi @Hem Doshi ,

 

Can you post screenshot of your action setup? Also, Please hide your API keys, you should never share them on public platforms.

Hi @jayeshkumarbhatia ,

Hi @Hem Doshi ,

 

Can you post screenshot of your action setup? Also, Please hide your API keys, you should never share them on public platforms.

 

Step1:

 

 

Step2:

 

 

Step3:

 

Userlevel 4
Badge +4

Hi @Hem Doshi ,

 

Can you try changing header key name? As per Interakt API doc, you have to enter below key in Header. 

 

 

You can read here how to make API call here https://www.interakt.shop/resource-center/api-doc#User-Track-API

Hello @jayeshkumarbhatia ,

Thanks for your response.

 

This works when we do not select Data Pass-Through value or we select Data Pass-Through: False

Reply