Skip to main content
Question

API HTTP Error Code: 400 Create a Contact in Superchat


Forum|alt.badge.img

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)."

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

12 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @VIktor1515 

Some attachments did not upload.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 2, 2023

Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 2, 2023

@Troy Tessalone new version


Troy Tessalone
Forum|alt.badge.img+14

@VIktor1515 

The Header needs to go in the Headers section.

 

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 3, 2023

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

@Troy Tessalone 


Troy Tessalone
Forum|alt.badge.img+14

@VIktor1515 

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

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

Example

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 3, 2023

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?


Troy Tessalone
Forum|alt.badge.img+14

@VIktor1515 

You have type as “phone” twice.

Check if the value for phone supports the character: +

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 3, 2023

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


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 3, 2023

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


Troy Tessalone
Forum|alt.badge.img+14

@VIktor1515 

Try using a CUSTOM POST request.

Put the JSON in the Data section.

 


Forum|alt.badge.img
  • Author
  • Beginner
  • 15 replies
  • November 3, 2023

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

Best regards, Viktor