Skip to main content

Hello everyone,

I hope you can help me or provide a solution. I would like to create a contact in Superchat using a POST request via an API. Since the Superchat API documentation is only accessible to users, I have attached an image. I have already tried several approaches. In the header, I had "Authorization" and "X-API-Key" already set. However, whenever I use "Authorization," I encounter the following error: "Failed to create a request in Webhooks by Zapier. The app returned 'Unauthorized' (HTTP Status Code: 401)."

I also tried placing "Bearer" before MY API Token. I validated the JSON code using a JSON validator, and it appears to be correct. Nonetheless, nothing seems to work. I keep receiving the error "Invalid parameter: handles (HTTP Status Code: 400)."

Hi @VIktor1515 

Some attachments did not upload.

 


@Troy Tessalone 


@Troy Tessalone new version


@VIktor1515 

The Header needs to go in the Headers section.

 

 


I have 3 “--header “ should i put all 3 in Header ? 

@Troy Tessalone 


@VIktor1515 

Headers should be key value pairs as indicated by the section description.

You can use the +] button to add another pair.

Example

 


Hello @Troy Tessalone , Thanks you for this tip. "However, I'm still getting the error message Error Code 400... Could you possibly help me again?


@VIktor1515 

You have type as “phone” twice.

Check if the value for phone supports the character: +

 


Sorry @Troy Tessalone was the wrong image. This is my actual Json Code. The error message remains the same.


@Troy Tessalone I've made changes, but the error remains the same.


@VIktor1515 

Try using a CUSTOM POST request.

Put the JSON in the Data section.

 


@Troy Tessalone You're a genius, it worked. Thank you!! Wishing you a great weekend and see you soon.

Best regards, Viktor