# Non-admin user can not create topic by API Key

**URL:** https://meta.discourse.org/t/non-admin-user-can-not-create-topic-by-api-key/210272
**Category:** Support
**Created:** [November 27, 2021, 11:15am UTC](https://meta.discourse.org/t/non-admin-user-can-not-create-topic-by-api-key/210272 "2021-11-27T11:15:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Xiaodong\_Zhang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiaodong_zhang/32/241062_2.png) [@Xiaodong\_Zhang](https://meta.discourse.org/u/Xiaodong_Zhang)
#### Post date: [November 27, 2021, 11:15am UTC](https://meta.discourse.org/t/non-admin-user-can-not-create-topic-by-api-key/210272/1 "2021-11-27T11:15:03Z")

</div>

Sometimes I can not create a topic with non-admin users and API Key. My operations are as follows.  
I have tried these operations in two different physical machines.  
In one of them, the 4th step can succeed, but the other fails.

1. I deploy discourse in development mode from the latest source code.
2. I create an admin account and an API key with the following option  
 ![image](https://global.discourse-cdn.com/meta/original/3X/8/d/8d510411866c5ef6db887af247ac9aa8d68db9a3.png)
3. I use this API to create a topic with an admin user successfully.
4. I create a new non-admin user and then create a topic with the above API key. However, I get a 403 response. The server log is shown as follows.  
 ![image](https://global.discourse-cdn.com/meta/original/3X/1/b/1b6e459b0a5b268663820c43bc7eb87925283daf.png)

I have totally no idea why the server said “Unpermitted parameter”.  
Can anyone give me some advice to find the cause of such problem?  
Thanks!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 27, 2021, 11:29am UTC](https://meta.discourse.org/t/non-admin-user-can-not-create-topic-by-api-key/210272/2 "2021-11-27T11:29:26Z")

</div>

Does that user have write access to that category? Can the user create the topic in the ux?

---

<div class="post-metadata">

### Author: ![Xiaodong\_Zhang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiaodong_zhang/32/241062_2.png) [@Xiaodong\_Zhang](https://meta.discourse.org/u/Xiaodong_Zhang)
#### Post date: [November 27, 2021, 11:31am UTC](https://meta.discourse.org/t/non-admin-user-can-not-create-topic-by-api-key/210272/3 "2021-11-27T11:31:04Z")

</div>

This user can create topic with the same paremeter by using browser
