# Wordpress plugin - can't find admin api key

**URL:** https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730
**Category:** WordPress
**Created:** [May 24, 2016, 9:10am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730 "2016-05-24T09:10:06Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 9:10am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/1 "2016-05-24T09:10:06Z")

</div>

Hi,

I installed the discourse plugin on wordpress its asking me for the admin api key, where do I find it ?

Thanks 🙂

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [May 24, 2016, 10:08am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/2 "2016-05-24T10:08:20Z")

</div>

/admin/api

Or generate one from an admin user profile

---

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 10:11am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/3 "2016-05-24T10:11:53Z")

</div>

I have installed the plugin but there’s nothing when I go to the URL, I thought maybe it needs to be done back end but I couldn’t find anything

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [May 24, 2016, 10:29am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/4 "2016-05-24T10:29:45Z")

</div>

You go to that URL on your Discourse forum not WordPress.

---

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 10:35am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/5 "2016-05-24T10:35:55Z")

</div>

The discourse url is not yet setup as its asking for api key

---

<div class="post-metadata">

### Author: ![Grex315](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grex315/32/115868_2.png) [@Grex315](https://meta.discourse.org/u/Grex315)
#### Post date: [May 24, 2016, 10:40am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/6 "2016-05-24T10:40:20Z")

</div>

To generate an API key go to [yourdiscoursesite.com/admin/api](http://yourdiscoursesite.com/admin/api). That is where you can generate an api key for the WordPress plugin. There will be a button that says generate key.

---

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 10:42am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/7 "2016-05-24T10:42:36Z")

</div>

as I said the discourse site is not setup, plugin is installed but I can’t see discourse.. It gives me a 404 page not found

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 24, 2016, 4:04pm UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/8 "2016-05-24T16:04:59Z")

</div>

The wp-discourse plugin acts as an interface between a WordPress site and a Discourse forum. To get it to work, you need to first set up both a WordPress site and a Discourse forum. You will find the admin api key in the admin section of your forum at ‘[yourdiscoursesite.com/admin/api](http://yourdiscoursesite.com/admin/api)’.

The plugin’s [documentation](https://github.com/discourse/wp-discourse/wiki/Installation) about this is not very clear. I’ll try to add to it later this week.

---

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 4:17pm UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/9 "2016-05-24T16:17:14Z")

</div>

Hi Simon (@simon ),

Thanks for the reply, I did add it manually to composer.json is there anything else to do ?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 24, 2016, 4:34pm UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/10 "2016-05-24T16:34:50Z")

</div>

I’m not sure. You need to have a Discourse forum up and running to connect to your WordPress site. If you haven’t done that, you can follow either of these guides to do it:

> **[Discourse | DigitalOcean Marketplace 1-Click App](https://marketplace.digitalocean.com/apps/discourse)**
>
> The popular Ruby-on-Rails-based discussion platform

or:  
[discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

Once that is done you need to go to the Discourse site at `<yourforumdomain>/admin/api` and click on the button to generate a new api key. Copy and paste the api key into the Discourse **API Key** setting on your WordPress site.

---

<div class="post-metadata">

### Author: ![coffee\_lover](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@coffee\_lover](https://meta.discourse.org/u/coffee_lover)
#### Post date: [May 24, 2016, 4:41pm UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/11 "2016-05-24T16:41:37Z")

</div>

Okay Thanks I will try that .. Much appreciated !

---

<div class="post-metadata">

### Author: ![Yves\_Lauzin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yves_lauzin/32/126897_2.png) [@Yves\_Lauzin](https://meta.discourse.org/u/Yves_Lauzin)
#### Post date: [February 8, 2021, 4:29pm UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/12 "2021-02-08T16:29:54Z")

</div>

Hello, I take the discussion and have a question : I have a discourse site and a Wordpress site, the differences between the Api key for all users and only one is :  
All users ; all users could see and interact with both discourse and Wordpress  
One user means that when connected **this** user only can interact with both wordpress and Discourse.  
Am I right ?  
What is the risk to generate an all user Api key and giving all permissions ?  
Thanks

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 9, 2021, 2:23am UTC](https://meta.discourse.org/t/wordpress-plugin-cant-find-admin-api-key/44730/13 "2021-02-09T02:23:28Z")

</div>

Hey Yves, the API key is only used to set up the connection.

Once that connection is set up, any Wordpress user with posting permissions can publish their posts to discourse, depending on what “Publish” settings you have.

I suggest you generate an API key for a specific admin user and call it “Wordpress”.
