# With Api how do you create topics and posts so owned by particular user

**URL:** https://meta.discourse.org/t/with-api-how-do-you-create-topics-and-posts-so-owned-by-particular-user/138235
**Category:** Support
**Created:** [January 10, 2020, 11:08am UTC](https://meta.discourse.org/t/with-api-how-do-you-create-topics-and-posts-so-owned-by-particular-user/138235 "2020-01-10T11:08:58Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [January 10, 2020, 5:41pm UTC](https://meta.discourse.org/t/with-api-how-do-you-create-topics-and-posts-so-owned-by-particular-user/138235/3 "2020-01-10T17:41:33Z")

</div>

> [@paultaylor](#):
>
> Does the correct user have to be specified as the _Api-Username_ for each post, and if so does that mean the user has to be an admin user (which they wouldnt be).

Set the `Api-Username` to the username that you want to publish the post. Use the All Users API key for the `Api-Key`.

---

_[View the full topic](https://meta.discourse.org/t/with-api-how-do-you-create-topics-and-posts-so-owned-by-particular-user/138235)._
