# Auto generate password for account created through API?

**URL:** <https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540>\
**Category:** Development\
**Created:** [14 Octubre, 2016 10:07 UTC](https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540 "2016-10-14T10:07:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![foloex](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/foloex/32/63141_2.png) [@foloex](https://meta.discourse.org/u/foloex)\
**Post date:** [14 Octubre, 2016 14:05 UTC](https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540/8 "2016-10-14T14:05:42Z")

</div>

I hardly find any documentation about it, I did some try and retry on some guessed usage but I always ends up with “502 Bad Gateway”.

I tried:

- POST /invites
- POST /admin/invites
- POST /invite

I don’t get what’s the expected path and params for invitation.

I looked into [https://github.com/discourse/discourse\_api/blob/master/routes.txt](https://github.com/discourse/discourse_api/blob/master/routes.txt) but I don’t understand how to read it…

---

_[View the full topic](https://meta.discourse.org/t/auto-generate-password-for-account-created-through-api/51540)._
