Skip to main content
Question

401 Error when creating a WordPress Post via Zapier Webhook

  • November 6, 2024
  • 2 replies
  • 63 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!

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • 34032 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