# Post anonymously via API?

**URL:** <https://meta.discourse.org/t/post-anonymously-via-api/159759>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [August 4, 2020, 8:56am UTC](https://meta.discourse.org/t/post-anonymously-via-api/159759 "2020-08-04T08:56:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [August 5, 2020, 12:39pm UTC](https://meta.discourse.org/t/post-anonymously-via-api/159759/3 "2020-08-05T12:39:14Z")

</div>

Yes, you can post anonymously via the API. You will either have to use an “all users” api key or a “user specific” api key for the actual anonymous username, not the original username of the user.

```plaintext
curl -i -sS -X POST "http://localhost:3000/posts.json" \
-H "Content-Type: multipart/form-data;" \
-H "Api-Key: 48656cfb5197594c71525452e78a403208c4d1a123f60408b765d9c6bd1a9450" \
-H "Api-Username: anonymous1" \
-F "title=b5d39ea5124 4684a27917c d1b81ea2e9e" \
-F "raw=6d9392121129f0ce504583d74e056f5d fe4cf67228216d302509deeca33f0ebc 690106384b6a4204151572e9d4e9da45"

HTTP/1.1 200 OK

```

---

_[View the full topic](https://meta.discourse.org/t/post-anonymously-via-api/159759)._
