Discourse API, is it possible to create a Post through a different username?

I would like to create an post from my Admin API Key under a different username. The official API documentation under Discourse API Docs has no real field for that. Is it still possible somehow?

1 Like

If you have an “all users” API key then you can set the username it should act as in the Api-Username: header.

See the section “Authentication” on the API docs home page: https://docs.discourse.org/


If your ab Admin vs just a Moderator you can use “Change Ownership” from the wrench on the post.

Iirc there is a plugin as well to post under a different name.

Here it is