Post anonymously via API?

Hmm… First time I am seeing this, but I believe it will be possible, but require a 2-step. So you’d first enable anonymous mode via the API, then post using the anonymous account via the API.

You might need to do some trial and error to figure it out, see How to reverse engineer the Discourse API for some tips.