# Wordpress - Statuts code error : 401

**URL:** <https://community.make.com/t/wordpress-statuts-code-error-401/11771>\
**Category:** Questions\
**Tags:** wordpress\
**Created:** [June 5, 2023, 9:42am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771 "2023-06-05T09:42:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 5, 2023, 9:42am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/1 "2023-06-05T09:42:15Z")

</div>

Good morning,

I am looking to use MAKE to share articles from my site on different social networks.  
I installed the extension on my site but when I try to connect with wordpress on make I get a 401 error.

On my site I tried to deactivate iThemes Security and Wordfence but I still have the error.

I found a similar thread on the forum but it doesn’t seem to be resolved. [WordPress connection issue - Nerd-Zone - Make Community](https://community.make.com/t/wordpress-connection-issue/1150/7)  
I contacted support but haven’t heard back yet.  
My site is hosted by IONOS.

Thank you for your help

 ![Capture d’écran 2023-06-05 113528](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/9/9e257233cefc65c5625d98ad0a1a288e004185c6.png)

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 5, 2023, 10:19am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/2 "2023-06-05T10:19:07Z")

</div>

Hey @Valentin_Hbt, sorry to hear you’re having problems!

401 errors with WordPress are a tricky area, and often not anything to do with Make - [this post on WPBeginner](https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-401-error-in-wordpress-solutions/) covers a lot of the potential causes.

If none of the suggestions help, then I’d recommend trying to access the WordPress API using Postman. If that also doesn’t work then it strongly suggests it’s a problem on the WordPress side.

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 5, 2023, 12:25pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/3 "2023-06-05T12:25:17Z")

</div>

Thank you for your reply.  
I had found these sites that refer to the 401 error but the error being sent to make I didn’t think they were related.  
I did some operations like disabling Wordfence and itheme security but it still returns the 401 error.

I am going to contact my host, what should I ask them?

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 5, 2023, 1:26pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/4 "2023-06-05T13:26:25Z")

</div>

I just did a test with Postman and itheme security activity and here is the result:

 ![Capture d’écran 2023-06-05 151316](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/6/6a488d54a9c7df0526c109a549a07a6c93cdd558.png)

When I deactivate itheme I have a result on postman:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/6/6bcd547c2da48479f45162f546b715557d3b0a91.png)

But when I connect the wordpress I have a 404 error

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 5, 2023, 1:32pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/5 "2023-06-05T13:32:02Z")

</div>

404 is a “path not found” error.

I would suggest double-checking the path - remember, you should be entering a base URL, not a full API endpoint URL

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 5, 2023, 1:35pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/6 "2023-06-05T13:35:27Z")

</div>

ok I just have to put [https://staugustin.fr/wp-json/](https://staugustin.fr/wp-json/) ?  
Sorry I’m not a dev

EDIT : always a 401 error with /wp-json/ but Postman send this :

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/5/547daedcd85e1ba985c1b54704f3964874dbf1c2.png)

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 8, 2023, 12:56pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/7 "2023-06-08T12:56:38Z")

</div>

Good morning,  
I had IONOS support on the phone.  
When explaining the problem, the interlocutor asked me if the solution needed root host access to work.  
Currently in my offer this is not the case.  
thanks in advance

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 8, 2023, 4:17pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/8 "2023-06-08T16:17:00Z")

</div>

Looking into this further … 👀

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 8, 2023, 4:33pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/9 "2023-06-08T16:33:55Z")

</div>

@Valentin_Hbt can you confirm that you’ve installed the [Make plugin for WordPress](https://wordpress.org/plugins/integromat-connector/)?

If you have, then please try using Postman to GET a result from the following endpoint (this is the same endpoint that’s used to validate your Make connection to WordPress):

`https://staugustin.fr/wp-json/wp/v2/users/me`

Under the Headers tab in Postman you’ll need to add a Header called `Authorization` with the value:

`Bearer: <Your API key>`

(change `<Your API key>` for your key - don’t include the \<\> brackets)

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 9, 2023, 6:40am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/10 "2023-06-09T06:40:05Z")

</div>

Good morning,  
Thank you for your reply.  
The Make extension is well installed on my site.  
What doesn’t work is the connection.

I did the test on postman and here is the result :

 ![Capture d’écran 2023-06-09 083620](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/8/8ac6ae15f8d1fe51dfb8556054696d8f6afa6169.png)

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 9, 2023, 9:12am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/11 "2023-06-09T09:12:49Z")

</div>

Silly question, but I have to ask … you’re 100% sure that the API key you’ve entered is correct?

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 9, 2023, 9:15am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/12 "2023-06-09T09:15:15Z")

</div>

Yes

 ![Capture d’écran 2023-06-09 111359](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/23dcb4e354eb510add91fba6a48f8312b3091d23.png)

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 9, 2023, 9:37am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/13 "2023-06-09T09:37:09Z")

</div>

Apologies, the header info I gave you for authentication was incorrect!

Try Postman again, removing the Authentication header and adding header called `iwc-api-key` with just the value of your API Key.

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 9, 2023, 12:18pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/14 "2023-06-09T12:18:19Z")

</div>

Like that ? :

 ![Capture d’écran 2023-06-09 141206](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/3/323940cffddeb5c63c3cc764b5aadb4fca22ed1a.png)

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 9, 2023, 3:44pm UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/15 "2023-06-09T15:44:27Z")

</div>

That’s it … but I notice you have a trailing “.” at the end of your API key that’s not show in the Make plugin screenshot you included earlier.

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 12, 2023, 6:17am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/16 "2023-06-12T06:17:24Z")

</div>

Good morning,

Thank you for your reply.  
I redid without the “.” but the result is the same.

 ![Capture d’écran 2023-06-09 141206](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/d/d17e1254f8dd87597f33794d1119613b47cbe4f4.png)

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 12, 2023, 7:58am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/17 "2023-06-12T07:58:19Z")

</div>

If you’re 100% certain that the API key is correct then the fact that this is happening with Postman as well as with Make suggests that it’s something in your hosting provider’s configuration. Some WordPress hosting providers block any unexpected headers, which might cause this problem.

We may be able to diagnose this further …

Could you download the log file from the Make plugin page? As an extra security step, send it to me as a DM rather than replying here.

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 12, 2023, 8:39am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/18 "2023-06-12T08:39:16Z")

</div>

Thank you for your reply.  
The key is correct, I simply copy paste from make into wordpress, nothing more.  
I’m in contact with my host but technically I don’t know what to ask him.  
It’s Ionos, a host that doesn’t just do wordpress.  
Can you explain to me clearly what I have to ask them to unlock? Is root access required?

I looked at the side of the log file but I don’t see anything wrong.  
I send it to you in PM  
THANKS

---

<div class="post-metadata">

**Author:** ![DavidGurr\_Make](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/davidgurr_make/32/4624_2.png) [@DavidGurr\_Make](https://community.make.com/u/DavidGurr_Make)\
**Post date:** [June 13, 2023, 7:45am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/19 "2023-06-13T07:45:09Z")

</div>

The line `codes: 3()` when requesting `/wp-json/wp/v2/users/me` indicates that the Make plugin hasn’t been able to find any Admin user. Which is strange, as you obviously have Admin access to install the plugin and to download the logs!

Something is interfering with the processing of the WordPress REST API. Have you disabled all other plugins? One likely suspect is the Advanced Access Manager (AAM) plugin which has wide-reaching effects on user privileges and REST API access.

---

<div class="post-metadata">

**Author:** ![Valentin\_Hbt](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@Valentin\_Hbt](https://community.make.com/u/Valentin_Hbt)\
**Post date:** [June 13, 2023, 7:50am UTC](https://community.make.com/t/wordpress-statuts-code-error-401/11771/20 "2023-06-13T07:50:58Z")

</div>

Good morning,  
Thank you for your reply.  
I have the AAM extension but my account is full access administrator.  
I will dig this with my developer.  
I come back to you.  
thanks again

[Next page](https://community.make.com/t/wordpress-statuts-code-error-401/11771.md?page=2)
