I think you misunderstood the API. This endpoint is not to create an user. It will generate an invite link and send it to the user’s email. Once clicked, the user will be able to register.
To create manually an user, It should be this endpoint: Discourse API Docs