# Is there a way to post as an arbitrary user when creating a new post/topic using the Discourse API?

**URL:** <https://meta.discourse.org/t/is-there-a-way-to-post-as-an-arbitrary-user-when-creating-a-new-post-topic-using-the-discourse-api/61477>\
**Category:** Product Support\
**Created:** [24. April 2017 um 00:25 UTC](https://meta.discourse.org/t/is-there-a-way-to-post-as-an-arbitrary-user-when-creating-a-new-post-topic-using-the-discourse-api/61477 "2017-04-24T00:25:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![john-lynch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john-lynch/32/81514_2.png) [@john-lynch](https://meta.discourse.org/u/john-lynch)\
**Post date:** [24. April 2017 um 00:50 UTC](https://meta.discourse.org/t/is-there-a-way-to-post-as-an-arbitrary-user-when-creating-a-new-post-topic-using-the-discourse-api/61477/6 "2017-04-24T00:50:08Z")

</div>

Here’s what I see in the log:

```
Started POST "/posts.json?api_key=[FILTERED]&api_username=John&title=test3&category=15&raw=isatest3" for 99.4.166.235 at 2017-04-24 00:30:39 +0000
Processing by PostsController#create as JSON
  Parameters: {"api_key"=>"[FILTERED]", "api_username"=>"John", "title"=>"test3", "category"=>"15", "raw"=>"isatest3"}
Can't verify CSRF token authenticity
Completed 403 Forbidden in 44ms (Views: 0.2ms | ActiveRecord: 6.6ms)`

```

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-post-as-an-arbitrary-user-when-creating-a-new-post-topic-using-the-discourse-api/61477)._
