Skip to main content
Question

401 Error when creating a WordPress Post via Zapier Webhook

  • November 6, 2024
  • 2 replies
  • 29 views

Hi everyone,

I’m experiencing a 401 error when attempting to create a post on WordPress using a Webhook in Zapier. The error states, “Sorry, you are not allowed to create posts as this user.”

Here are some details:

  • User Role: Admin
  • Password: Confirmed as correct
  • Testing in Postman: The same request works successfully in Postman, so the credentials and endpoint seem to be correct.

In Zapier, here’s the setup:

{

  "title": "Title",

  "content": "Content",

  "status": "draft"

}

I’ve attached a screenshot of the error and setup configuration in Zapier for reference. Any insights on why this might be failing in Zapier but working in Postman would be greatly appreciated.

Thank you!

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

2 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30727 replies
  • November 6, 2024

@FraxBros 

Click the “Basic Auth” field label to see a tooltip with guidance.

The Basic Auth values need to be separated by a | rather than by a :

 


  • Author
  • New
  • 1 reply
  • November 6, 2024

Great thanks