# User API key instead of Admin API key?

**URL:** <https://meta.discourse.org/t/user-api-key-instead-of-admin-api-key/59713>\
**Category:** WordPress\
**Created:** [March 22, 2017, 8:39pm UTC](https://meta.discourse.org/t/user-api-key-instead-of-admin-api-key/59713 "2017-03-22T20:39:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 23, 2017, 2:41am UTC](https://meta.discourse.org/t/user-api-key-instead-of-admin-api-key/59713/4 "2017-03-23T02:41:03Z")

</div>

> [@jamescobalt](#):
>
> It went back and forth between that and “connected” as I switched between tabs or reloaded the page. It did this whether or not I was using the Admin API key or User API key, but at least it worked with the Admin key.

I’ve only ever seen that happen when doing development on my local computer - with Discourse in development mode. The plugin is making an API call to Discourse when the options page is refreshed. If the response is bad you’ll get the not-connected notice.

If you’re willing to post all WordPress posts to Discourse under a single Discourse username, what you’re trying to do should be able to work without producing any errors. You’ll have to make sure that the Discourse username is not set on WordPress for any users other than the one whose username/API key you are using. When creating posts, users will see a warning at the top of the page saying that they haven’t set their Discourse username. That notice could be disabled.

---

_[View the full topic](https://meta.discourse.org/t/user-api-key-instead-of-admin-api-key/59713)._
