@netxande, our REST API does not allow you to post as an arbitrary user in that way. The authentication token is used to identify the user in question and cannot be overridden.
If you are looking for additional flexibility here, you might consider using our plugin API to extend the server: https://pkg.go.dev/github.com/mattermost/mattermost-server/v5/plugin?tab=doc