# How can an API user create posts as another user?

**URL:** <https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968>\
**Category:** Development\
**Created:** [17 juni 2016 om 18:03 UTC](https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968 "2016-06-17T18:03:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [16 oktober 2020 om 18:10 UTC](https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968/11 "2020-10-16T18:10:08Z")

</div>

If you create an API key for “All Users”:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/2/b2e5021d5d51987452e22a5f93fc8662aaed52f4.png)

You can then specify the username you want to create posts for via the `Api-Username` header when making the api request.

---

_[View the full topic](https://meta.discourse.org/t/how-can-an-api-user-create-posts-as-another-user/45968)._
